diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-11-28 12:34:03 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-11-28 12:34:03 -0500 |
commit | 0bd682246a619fd8eb9b538f1af61afb991b06b4 (patch) | |
tree | 72a7cb173d51443454ef26f9d4e27525954341ac /src/tools | |
parent | b8a606e21b0619ac378558bdd258c54aee7cb4ed (diff) | |
download | postgresql-0bd682246a619fd8eb9b538f1af61afb991b06b4.tar.gz postgresql-0bd682246a619fd8eb9b538f1af61afb991b06b4.zip |
Use BIO_{get,set}_app_data instead of BIO_{get,set}_data.
We should have done it this way all along, but we accidentally got
away with using the wrong BIO field up until OpenSSL 3.2. There,
the library's BIO routines that we rely on use the "data" field
for their own purposes, and our conflicting use causes assorted
weird behaviors up to and including core dumps when SSL connections
are 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 well
as the fallback implementation. BIO_{get,set}_app_data have been
there 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 minor
change 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.com
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/msvc/Solution.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 20ce233af48..a7e5fdbda94 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -273,7 +273,6 @@ sub GenerateFiles || ($digit1 >= '1' && $digit2 >= '1' && $digit3 >= '0')) { print $o "#define HAVE_ASN1_STRING_GET0_DATA 1\n"; - print $o "#define HAVE_BIO_GET_DATA 1\n"; print $o "#define HAVE_BIO_METH_NEW 1\n"; print $o "#define HAVE_OPENSSL_INIT_SSL 1\n"; } |