Thread: pgsql: Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()

pgsql: Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()

From
Alvaro Herrera
Date:
Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()

Both Blowfish and DES implementations of crypt() can take arbitrarily
long time, depending on the number of rounds specified by the caller;
make sure they can be interrupted.

Author: Andreas Karlsson
Reviewer: Jeff Janes

Backpatch to 9.1.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/51dd54ba79cc4b42a77c5246853a5794f44e1818

Modified Files
--------------
contrib/pgcrypto/crypt-blowfish.c |    3 +++
contrib/pgcrypto/crypt-des.c      |    3 +++
2 files changed, 6 insertions(+)