summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway2006-02-18 20:49:02 +0000
committerNeil Conway2006-02-18 20:49:02 +0000
commit0c853662bdd73ad7ffdcf9e87208b97679826119 (patch)
tree999b784aa566c3df82bbe2243c6c8fc83619fff4 /src
parenteb46ad568d176e36cdf7146bbb992841c4ca7496 (diff)
Patch from Marko Kreen:
pgcrypto crypt()/md5 and hmac() leak memory when compiled against OpenSSL as openssl.c digest ->reset will do two DigestInit calls against a context. This happened to work with OpenSSL 0.9.6 but not with 0.9.7+. Reason for the messy code was that I tried to avoid creating wrapper structure to transport algorithm info and tried to use OpenSSL context for it. The fix is to create wrapper structure. It also uses newer digest API to avoid memory allocations on reset with newer OpenSSLs. Thanks to Daniel Blaisdell for reporting it.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions