- Notifications
You must be signed in to change notification settings - Fork5
Commitfcd93e4
committed
Support OpenSSL 1.1.0.
Changes needed to build at all:- Check for SSL_new in configure, now that SSL_library_init is a macro.- Do not access struct members directly. This includes some new code in pgcrypto, to use the resource owner mechanism to ensure that we don't leak OpenSSL handles, now that we can't embed them in other structs anymore.- RAND_SSLeay() -> RAND_OpenSSL()Changes that were needed to silence deprecation warnings, but were notstrictly necessary:- RAND_pseudo_bytes() -> RAND_bytes().- SSL_library_init() and OpenSSL_config() -> OPENSSL_init_ssl()- ASN1_STRING_data() -> ASN1_STRING_get0_data()- DH_generate_parameters() -> DH_generate_parameters()- Locking callbacks are not needed with OpenSSL 1.1.0 anymore. (Good riddance!)Also change references to SSLEAY_VERSION_NUMBER with OPENSSL_VERSION_NUMBER,for the sake of consistency. OPENSSL_VERSION_NUMBER has existed since timeimmemorial.Fix SSL test suite to work with OpenSSL 1.1.0. CA certificates must havethe "CA:true" basic constraint extension now, or OpenSSL will refuse them.Regenerate the test certificates with that. The "openssl" binary, used togenerate the certificates, is also now more picky, and throws an errorif an X509 extension is specified in "req_extensions", but that sectionis empty.Backpatch to 9.5 and 9.6, per popular demand. The file structure wassomewhat different in earlier branches, so I didn't bother to go furtherthan that. In back-branches, we still support OpenSSL 0.9.7 and above.OpenSSL 0.9.6 should still work too, but I didn't test it. In master, weonly support 0.9.8 and above.Patch by Andreas Karlsson, with additional changes by me.Discussion: <20160627151604.GD1051@msg.df7cb.de>1 parent18ae680 commitfcd93e4
File tree
51 files changed
+716
-539
lines changed- contrib
- pgcrypto
- sslinfo
- src
- backend/libpq
- interfaces/libpq
- test/ssl
- ssl
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+716
-539
lines changedLines changed: 22 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9538 | 9538 |
| |
9539 | 9539 |
| |
9540 | 9540 |
| |
9541 |
| - | |
9542 |
| - | |
9543 |
| - | |
| 9541 | + | |
| 9542 | + | |
| 9543 | + | |
9544 | 9544 |
| |
9545 | 9545 |
| |
9546 | 9546 |
| |
| |||
9554 | 9554 |
| |
9555 | 9555 |
| |
9556 | 9556 |
| |
9557 |
| - | |
| 9557 | + | |
9558 | 9558 |
| |
9559 | 9559 |
| |
9560 | 9560 |
| |
9561 |
| - | |
| 9561 | + | |
9562 | 9562 |
| |
9563 | 9563 |
| |
9564 | 9564 |
| |
9565 | 9565 |
| |
9566 | 9566 |
| |
9567 |
| - | |
| 9567 | + | |
9568 | 9568 |
| |
9569 |
| - | |
| 9569 | + | |
9570 | 9570 |
| |
9571 | 9571 |
| |
9572 | 9572 |
| |
9573 | 9573 |
| |
9574 | 9574 |
| |
9575 |
| - | |
9576 |
| - | |
9577 |
| - | |
| 9575 | + | |
| 9576 | + | |
| 9577 | + | |
9578 | 9578 |
| |
9579 | 9579 |
| |
9580 | 9580 |
| |
| |||
9644 | 9644 |
| |
9645 | 9645 |
| |
9646 | 9646 |
| |
9647 |
| - | |
9648 |
| - | |
9649 |
| - | |
| 9647 | + | |
| 9648 | + | |
| 9649 | + | |
9650 | 9650 |
| |
9651 | 9651 |
| |
9652 | 9652 |
| |
| |||
9659 | 9659 |
| |
9660 | 9660 |
| |
9661 | 9661 |
| |
9662 |
| - | |
| 9662 | + | |
9663 | 9663 |
| |
9664 | 9664 |
| |
9665 | 9665 |
| |
9666 |
| - | |
| 9666 | + | |
9667 | 9667 |
| |
9668 | 9668 |
| |
9669 | 9669 |
| |
| |||
9676 | 9676 |
| |
9677 | 9677 |
| |
9678 | 9678 |
| |
9679 |
| - | |
| 9679 | + | |
9680 | 9680 |
| |
9681 | 9681 |
| |
9682 | 9682 |
| |
9683 |
| - | |
| 9683 | + | |
9684 | 9684 |
| |
9685 | 9685 |
| |
9686 | 9686 |
| |
9687 |
| - | |
| 9687 | + | |
9688 | 9688 |
| |
9689 | 9689 |
| |
9690 |
| - | |
| 9690 | + | |
9691 | 9691 |
| |
9692 | 9692 |
| |
9693 | 9693 |
| |
9694 | 9694 |
| |
9695 |
| - | |
9696 |
| - | |
9697 |
| - | |
| 9695 | + | |
| 9696 | + | |
| 9697 | + | |
9698 | 9698 |
| |
9699 | 9699 |
| |
9700 | 9700 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1112 | 1112 |
| |
1113 | 1113 |
| |
1114 | 1114 |
| |
1115 |
| - | |
| 1115 | + | |
1116 | 1116 |
| |
1117 | 1117 |
| |
1118 |
| - | |
| 1118 | + | |
1119 | 1119 |
| |
1120 | 1120 |
| |
1121 | 1121 |
| |
|
Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
620 | 620 |
| |
621 | 621 |
| |
622 | 622 |
| |
623 |
| - | |
624 |
| - | |
625 |
| - | |
626 |
| - | |
627 |
| - | |
628 |
| - | |
629 |
| - | |
630 |
| - | |
631 |
| - | |
632 | 623 |
| |
633 | 624 |
| |
634 | 625 |
| |
|
Lines changed: 101 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 |
| |
44 | 47 |
| |
45 | 48 |
| |
| |||
199 | 202 |
| |
200 | 203 |
| |
201 | 204 |
| |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 |
| |
203 | 211 |
| |
204 | 212 |
| |
205 |
| - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
206 | 218 |
| |
207 | 219 |
| |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
208 | 266 |
| |
209 | 267 |
| |
210 | 268 |
| |
211 | 269 |
| |
212 | 270 |
| |
213 |
| - | |
| 271 | + | |
214 | 272 |
| |
215 | 273 |
| |
216 | 274 |
| |
217 | 275 |
| |
218 | 276 |
| |
219 | 277 |
| |
220 | 278 |
| |
221 |
| - | |
| 279 | + | |
222 | 280 |
| |
223 | 281 |
| |
224 | 282 |
| |
225 | 283 |
| |
226 | 284 |
| |
227 | 285 |
| |
228 | 286 |
| |
229 |
| - | |
| 287 | + | |
230 | 288 |
| |
231 | 289 |
| |
232 | 290 |
| |
233 | 291 |
| |
234 | 292 |
| |
235 | 293 |
| |
236 | 294 |
| |
237 |
| - | |
| 295 | + | |
238 | 296 |
| |
239 | 297 |
| |
240 | 298 |
| |
241 | 299 |
| |
242 | 300 |
| |
243 | 301 |
| |
244 | 302 |
| |
245 |
| - | |
| 303 | + | |
246 | 304 |
| |
247 | 305 |
| |
248 | 306 |
| |
249 | 307 |
| |
250 | 308 |
| |
251 | 309 |
| |
252 | 310 |
| |
253 |
| - | |
254 |
| - | |
255 |
| - | |
| 311 | + | |
256 | 312 |
| |
257 | 313 |
| |
258 | 314 |
| |
| |||
264 | 320 |
| |
265 | 321 |
| |
266 | 322 |
| |
| 323 | + | |
267 | 324 |
| |
268 | 325 |
| |
269 | 326 |
| |
| |||
273 | 330 |
| |
274 | 331 |
| |
275 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
276 | 339 |
| |
277 | 340 |
| |
278 | 341 |
| |
279 | 342 |
| |
280 |
| - | |
281 |
| - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
282 | 349 |
| |
283 |
| - | |
284 |
| - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
285 | 354 |
| |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
286 | 368 |
| |
| 369 | + | |
287 | 370 |
| |
288 | 371 |
| |
289 | 372 |
| |
| |||
979 | 1062 |
| |
980 | 1063 |
| |
981 | 1064 |
| |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
982 | 1069 |
| |
983 | 1070 |
| |
984 | 1071 |
| |
| |||
987 | 1074 |
| |
988 | 1075 |
| |
989 | 1076 |
| |
990 |
| - | |
| 1077 | + | |
991 | 1078 |
| |
992 | 1079 |
| |
993 | 1080 |
| |
| |||
1006 | 1093 |
| |
1007 | 1094 |
| |
1008 | 1095 |
| |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
1012 |
| - | |
1013 |
| - | |
1014 |
| - | |
1015 |
| - | |
1016 |
| - | |
1017 |
| - | |
1018 |
| - | |
1019 |
| - | |
1020 |
| - | |
1021 |
| - | |
1022 |
| - | |
1023 |
| - | |
1024 | 1096 |
| |
1025 | 1097 |
| |
1026 | 1098 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
454 | 454 |
| |
455 | 455 |
| |
456 | 456 |
| |
457 |
| - | |
| 457 | + | |
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 |
| - | |
| 236 | + | |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
| 239 | + | |
240 | 240 |
| |
241 | 241 |
| |
242 |
| - | |
| 242 | + | |
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
|
0 commit comments
Comments
(0)