forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc82207a
committed
Use BIO_{get,set}_app_data instead of BIO_{get,set}_data.
We should have done it this way all along, but we accidentally gotaway with using the wrong BIO field up until OpenSSL 3.2. There,the library's BIO routines that we rely on use the "data" fieldfor their own purposes, and our conflicting use causes assortedweird behaviors up to and including core dumps when SSL connectionsare attempted. Switch to using the approved field for the purpose,i.e. app_data.While at it, remove our configure probes for BIO_get_data as wellas the fallback implementation. BIO_{get,set}_app_data have beenthere since long before any OpenSSL version that we still support,even in the back branches.Also, update src/test/ssl/t/001_ssltests.pl to allow for a minorchange in an error message spelling that evidently came in with 3.2.Tristan Partin and Bo Andreson. Back-patch to all supported branches.Discussion:https://postgr.es/m/CAN55FZ1eDDYsYaL7mv+oSLUij2h_u6hvD4Qmv-7PK7jkji0uyQ@mail.gmail.com1 parent10a5992 commitc82207a
File tree
8 files changed
+11
-27
lines changed- src
- backend/libpq
- include
- interfaces/libpq
- test/ssl/t
- tools/msvc
8 files changed
+11
-27
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12836 | 12836 |
| |
12837 | 12837 |
| |
12838 | 12838 |
| |
12839 |
| - | |
| 12839 | + | |
12840 | 12840 |
| |
12841 | 12841 |
| |
12842 | 12842 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1367 | 1367 |
| |
1368 | 1368 |
| |
1369 | 1369 |
| |
1370 |
| - | |
| 1370 | + | |
1371 | 1371 |
| |
1372 | 1372 |
| |
1373 | 1373 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1285 | 1285 |
| |
1286 | 1286 |
| |
1287 | 1287 |
| |
1288 |
| - | |
1289 | 1288 |
| |
1290 | 1289 |
| |
1291 | 1290 |
| |
|
Lines changed: 3 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
845 |
| - | |
846 |
| - | |
847 |
| - | |
848 |
| - | |
849 |
| - | |
850 | 845 |
| |
851 | 846 |
| |
852 | 847 |
| |
| |||
856 | 851 |
| |
857 | 852 |
| |
858 | 853 |
| |
859 |
| - | |
| 854 | + | |
860 | 855 |
| |
861 | 856 |
| |
862 | 857 |
| |
| |||
876 | 871 |
| |
877 | 872 |
| |
878 | 873 |
| |
879 |
| - | |
| 874 | + | |
880 | 875 |
| |
881 | 876 |
| |
882 | 877 |
| |
| |||
952 | 947 |
| |
953 | 948 |
| |
954 | 949 |
| |
955 |
| - | |
| 950 | + | |
956 | 951 |
| |
957 | 952 |
| |
958 | 953 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 | 69 |
| |
73 | 70 |
| |
74 | 71 |
| |
|
Lines changed: 3 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1815 | 1815 |
| |
1816 | 1816 |
| |
1817 | 1817 |
| |
1818 |
| - | |
1819 |
| - | |
1820 |
| - | |
1821 |
| - | |
1822 |
| - | |
1823 | 1818 |
| |
1824 | 1819 |
| |
1825 | 1820 |
| |
| |||
1828 | 1823 |
| |
1829 | 1824 |
| |
1830 | 1825 |
| |
1831 |
| - | |
| 1826 | + | |
1832 | 1827 |
| |
1833 | 1828 |
| |
1834 | 1829 |
| |
| |||
1858 | 1853 |
| |
1859 | 1854 |
| |
1860 | 1855 |
| |
1861 |
| - | |
| 1856 | + | |
1862 | 1857 |
| |
1863 | 1858 |
| |
1864 | 1859 |
| |
| |||
1968 | 1963 |
| |
1969 | 1964 |
| |
1970 | 1965 |
| |
1971 |
| - | |
| 1966 | + | |
1972 | 1967 |
| |
1973 | 1968 |
| |
1974 | 1969 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
776 | 776 |
| |
777 | 777 |
| |
778 | 778 |
| |
779 |
| - | |
| 779 | + | |
780 | 780 |
| |
781 | 781 |
| |
782 | 782 |
| |
| |||
881 | 881 |
| |
882 | 882 |
| |
883 | 883 |
| |
884 |
| - | |
| 884 | + | |
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
| |||
894 | 894 |
| |
895 | 895 |
| |
896 | 896 |
| |
897 |
| - | |
| 897 | + | |
898 | 898 |
| |
899 | 899 |
| |
900 | 900 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 |
| - | |
228 | 227 |
| |
229 | 228 |
| |
230 | 229 |
| |
| |||
502 | 501 |
| |
503 | 502 |
| |
504 | 503 |
| |
505 |
| - | |
506 | 504 |
| |
507 | 505 |
| |
508 | 506 |
| |
|
0 commit comments
Comments
(0)