Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 0244677cf1031d2f0e6af09b3ea9bb8f4157e340
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2015-12-27T16:03:19Z
Releases: 9.3.11
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.

Files

PathChange+/−
contrib/pgcrypto/crypt-blowfish.c modified +3 −0
contrib/pgcrypto/crypt-des.c modified +3 −0