Some builds (depends on crypto engine support?) of OpenSSL
authorNeil Conway <[email protected]>
Sun, 13 Mar 2005 23:46:27 +0000 (23:46 +0000)
committerNeil Conway <[email protected]>
Sun, 13 Mar 2005 23:46:27 +0000 (23:46 +0000)
commit2eb1957eb03a3cbbd5a902f4de5597b823b80730
treeab9640d2fdacc9303c6fa7282d7fd978a72751a3
parent09366ba98f6d8e8c2218545be778d8d3abba1f80
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