Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt()
authorAlvaro Herrera
Sun, 27 Dec 2015 16:03:19 +0000 (13:03 -0300)
committerAlvaro Herrera
Sun, 27 Dec 2015 16:03:19 +0000 (13:03 -0300)
commit0a29cf693d385a60fb37c1f396af6fd8ffadc2e6
treea7ebeb4dacfbe702d4de932fbef8d1153c80b891
parent70ff73717004912a27506f31ef3c6aef77d64708
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.
contrib/pgcrypto/crypt-blowfish.c
contrib/pgcrypto/crypt-des.c