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

From neilc@svr1.postgresql.org (Neil Conway)
Subject pgsql: Some builds (depends on crypto engine support?) of OpenSSL 0.9.7x
Date
Msg-id 20050312065515.087075637D@svr1.postgresql.org
Whole thread Raw
List 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.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/contrib/pgcrypto:
        openssl.c (r1.12 -> r1.12.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/pgcrypto/openssl.c.diff?r1=1.12&r2=1.12.4.1)

pgsql-committers by date:

Previous
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Some builds (depends on crypto engine support?) of OpenSSL 0.9.7x
Next
From: t-ishii@pgfoundry.org (User T-ishii)
Date:
Subject: pgpool - pgpool: enhance debug message