Some builds (depends on crypto engine support?) of OpenSSL

Neil Conway <neilc@samurai.com>

Commit: 826f14f6d319d02f1de8dd4cbcaa7112a6e9d2ff
Author: Neil Conway <neilc@samurai.com>
Date: 2005-03-13T23:46:27Z
Releases: 7.2.8
Some builds (depends on crypto engine support?) of OpenSSL
0.9.7x have EVP_DigestFinal function which which clears all of
EVP_MD_CTX.  This makes pgcrypto crash in functions which
re-use one digest context several times: hmac() and crypt()
with md5 algorithm.

Following patch fixes it by carring the digest info around
EVP_DigestFinal and re-initializing cipher.

Marko Kreen.

Files

PathChange+/−
contrib/pgcrypto/openssl.c modified +8 −1