]> granicus.if.org Git - postgresql/commit
Some builds (depends on crypto engine support?) of OpenSSL
authorNeil Conway <neilc@samurai.com>
Sun, 13 Mar 2005 23:46:27 +0000 (23:46 +0000)
committerNeil Conway <neilc@samurai.com>
Sun, 13 Mar 2005 23:46:27 +0000 (23:46 +0000)
commit826f14f6d319d02f1de8dd4cbcaa7112a6e9d2ff
treeb5afe36d375dc31ac809dc9ccc073f644286fbd4
parent5e72d01d200f7d1ef51e1b63e6a8104354d2cb68
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.
contrib/pgcrypto/openssl.c