diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2021-03-13 21:01:23 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2021-03-13 21:02:41 +0100 |
commit | 940319c8f86c026bb8830ceb8dc45a2e08447960 (patch) | |
tree | 75dc65307422ec77e9371c07103c7729ed5c9e37 | |
parent | 70946a7ef758f282e3f5bce92f9622beef986790 (diff) | |
download | fetchmail-940319c8f86c026bb8830ceb8dc45a2e08447960.tar.gz fetchmail-940319c8f86c026bb8830ceb8dc45a2e08447960.tar.bz2 fetchmail-940319c8f86c026bb8830ceb8dc45a2e08447960.zip |
socket.c: SSL_use_PrivateKey_file <- SSL_use_RSAPrivateKey_file,
the latter is deprecated in OpenSSL 3, and the user might use some
other key than RSA.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | socket.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -94,7 +94,10 @@ fetchmail-6.4.18 (not yet released): * fetchmailconf: do not require fetchmail for -V. do not require Tk (Tkinter) for -d option. This is to fail more gracefully on incomplete installs. * TLS code: remove OPENSSL_NO_DEPRECATED macros to avoid portability issues - with OpenSSL v3. + with OpenSSL v3 - these are for development purposes, not production. +* TLS futureproofing: use SSL_use_PrivateKey_file instead of + SSL_use_RSAPrivateKey_file, the latter will be deprecated with OpenSSL v3, + and the user's key file might be something else than RSA. -------------------------------------------------------------------------------- fetchmail-6.4.17 (released 2021-03-07, 29998 LoC): @@ -1232,7 +1232,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck *remotename = xstrdup(buffer); } SSL_use_certificate_file(_ssl_context[sock], mycert, SSL_FILETYPE_PEM); - SSL_use_RSAPrivateKey_file(_ssl_context[sock], mykey, SSL_FILETYPE_PEM); + SSL_use_PrivateKey_file(_ssl_context[sock], mykey, SSL_FILETYPE_PEM); } if (SSL_set_fd(_ssl_context[sock], sock) == 0 |