]> granicus.if.org Git - postgresql/commit
Some builds (depends on crypto engine support?) of OpenSSL
authorNeil Conway <neilc@samurai.com>
Sat, 12 Mar 2005 06:54:31 +0000 (06:54 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 12 Mar 2005 06:54:31 +0000 (06:54 +0000)
commit8806b09b822238d448f9bd4900307b101fccd2ff
treee1080ac09236a2bfb445b0f7d79792451000191f
parentbdcf632d623f4234d6067d30a004ea1b22ad7a30
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