OSDN Git Service

Some builds (depends on crypto engine support?) of OpenSSL
authorNeil Conway <neilc@samurai.com>
Sat, 12 Mar 2005 06:53:54 +0000 (06:53 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 12 Mar 2005 06:53:54 +0000 (06:53 +0000)
commit919594f3e23b1c8bb5e70a10d255d233bb237e11
treec2a8cc6173ea053805d11f38e6102872b5911afb
parent852ef58da93343005a57381d24ea28f14dfa2b6d
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