forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit17ec5fa
committed
Clear the OpenSSL error queue before cryptohash operations
Setting up an EVP context for ciphers banned under FIPS generatetwo OpenSSL errors in the queue, and as we only consume one fromthe queue the other is at the head for the next invocation: postgres=# select md5('foo'); ERROR: could not compute MD5 hash: unsupported postgres=# select md5('foo'); ERROR: could not compute MD5 hash: initialization errorClearing the error queue when creating the context ensures thatwe don't pull in an error from an earlier operation.Discussion:https://postgr.es/m/C89D932C-501E-4473-9750-638CFCD9095E@yesql.se1 parent59a32f0 commit17ec5fa
2 files changed
+13
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| 120 | + | |
| 121 | + | |
120 | 122 |
| |
| 123 | + | |
121 | 124 |
| |
122 | 125 |
| |
123 | 126 |
| |
| |||
182 | 185 |
| |
183 | 186 |
| |
184 | 187 |
| |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 |
| |
186 | 195 |
| |
187 | 196 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| 109 | + | |
109 | 110 |
| |
110 | 111 |
| |
| 112 | + | |
| 113 | + | |
111 | 114 |
| |
| 115 | + | |
112 | 116 |
| |
113 | 117 |
| |
114 | 118 |
| |
|
0 commit comments
Comments
(0)