- Notifications
You must be signed in to change notification settings - Fork5
Commit593d4e4
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 all supported branches, per popular demand. In back-branches,we still support OpenSSL 0.9.7 and above. OpenSSL 0.9.6 should still worktoo, but I didn't test it. In master, we only support 0.9.8 and above.Patch by Andreas Karlsson, with additional changes by me.Discussion: <20160627151604.GD1051@msg.df7cb.de>1 parentc99dd5b commit593d4e4
File tree
50 files changed
+707
-534
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.
50 files changed
+707
-534
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 | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 |
| |
45 | 48 |
| |
46 | 49 |
| |
| |||
51 | 54 |
| |
52 | 55 |
| |
53 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 |
| |
55 | 63 |
| |
56 | 64 |
| |
57 |
| - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
58 | 70 |
| |
59 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
60 | 118 |
| |
61 | 119 |
| |
62 | 120 |
| |
63 | 121 |
| |
64 | 122 |
| |
65 |
| - | |
| 123 | + | |
66 | 124 |
| |
67 | 125 |
| |
68 | 126 |
| |
69 | 127 |
| |
70 | 128 |
| |
71 | 129 |
| |
72 | 130 |
| |
73 |
| - | |
| 131 | + | |
74 | 132 |
| |
75 | 133 |
| |
76 | 134 |
| |
77 | 135 |
| |
78 | 136 |
| |
79 | 137 |
| |
80 | 138 |
| |
81 |
| - | |
| 139 | + | |
82 | 140 |
| |
83 | 141 |
| |
84 | 142 |
| |
85 | 143 |
| |
86 | 144 |
| |
87 | 145 |
| |
88 | 146 |
| |
89 |
| - | |
| 147 | + | |
90 | 148 |
| |
91 | 149 |
| |
92 | 150 |
| |
93 | 151 |
| |
94 | 152 |
| |
95 | 153 |
| |
96 | 154 |
| |
97 |
| - | |
| 155 | + | |
98 | 156 |
| |
99 | 157 |
| |
100 | 158 |
| |
101 | 159 |
| |
102 | 160 |
| |
103 | 161 |
| |
104 | 162 |
| |
105 |
| - | |
106 |
| - | |
107 |
| - | |
| 163 | + | |
108 | 164 |
| |
109 | 165 |
| |
110 | 166 |
| |
| |||
116 | 172 |
| |
117 | 173 |
| |
118 | 174 |
| |
| 175 | + | |
119 | 176 |
| |
120 | 177 |
| |
121 | 178 |
| |
| |||
125 | 182 |
| |
126 | 183 |
| |
127 | 184 |
| |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
128 | 191 |
| |
129 | 192 |
| |
130 | 193 |
| |
131 | 194 |
| |
132 |
| - | |
133 |
| - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
134 | 201 |
| |
135 |
| - | |
136 |
| - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
137 | 211 |
| |
| 212 | + | |
138 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
139 | 222 |
| |
140 | 223 |
| |
141 | 224 |
| |
| |||
831 | 914 |
| |
832 | 915 |
| |
833 | 916 |
| |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
834 | 921 |
| |
835 | 922 |
| |
836 | 923 |
| |
| |||
839 | 926 |
| |
840 | 927 |
| |
841 | 928 |
| |
842 |
| - | |
| 929 | + | |
843 | 930 |
| |
844 | 931 |
| |
845 | 932 |
| |
| |||
858 | 945 |
| |
859 | 946 |
| |
860 | 947 |
| |
861 |
| - | |
862 |
| - | |
863 |
| - | |
864 |
| - | |
865 |
| - | |
866 |
| - | |
867 |
| - | |
868 |
| - | |
869 |
| - | |
870 |
| - | |
871 |
| - | |
872 |
| - | |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 | 948 |
| |
877 | 949 |
| |
878 | 950 |
| |
|
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)