]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Some builds (depends on crypto engine support?) of OpenSSL
authorNeil Conway <neilc@samurai.com>
Sun, 13 Mar 2005 23:45:56 +0000 (23:45 +0000)
committerNeil Conway <neilc@samurai.com>
Sun, 13 Mar 2005 23:45:56 +0000 (23:45 +0000)
commitacb42e9cb91be1117f10662e4f0a1c51d5d55469
tree15e5409dff39ab0d37f5eddf3d499f295d20c97e
parent638eb4938c49c3376f9dfbd95f1c1f44f3808b4d
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