pgsql: Some builds (depends on crypto engine support?) of OpenSSL 0.9.7x

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Some builds (depends on crypto engine support?) of OpenSSL 0.9.7x
Date: 2005-03-12 06:53:55
Message-ID: 20050312065355.6B010563A7@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/contrib/pgcrypto:
openssl.c (r1.13 -> r1.14)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgcrypto/openssl.c.diff?r1=1.13&r2=1.14)

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2005-03-12 06:54:31 pgsql: Some builds (depends on crypto engine support?) of OpenSSL 0.9.7x
Previous Message Bruce Momjian 2005-03-12 06:28:59 Re: pgsql: Handle carriage returns and line feeds in COPY