- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit826f14f

Neil Conway
Some builds (depends on crypto engine support?) of OpenSSL
0.9.7x have EVP_DigestFinal function which which clears all ofEVP_MD_CTX. This makes pgcrypto crash in functions whichre-use one digest context several times: hmac() and crypt()with md5 algorithm.Following patch fixes it by carring the digest info aroundEVP_DigestFinal and re-initializing cipher.Marko Kreen.1 parent5e72d01 commit826f14f
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
| 76 | + | |
76 | 77 |
| |
77 | 78 |
| |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 |
| |
79 | 86 |
| |
80 | 87 |
| |
|
0 commit comments
Comments
(0)