diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2022-11-01 10:21:20 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2022-11-01 10:21:20 +0100 |
commit | a8c8d5de0f31ebf8d2c5664f53dc6cced50be682 (patch) | |
tree | 1daf1d70153cd2fd32b4e536babbc5331eed4085 /socket.c | |
parent | 2eb6f8a71170fabf8e37d7d27d1f8d430fbaafdc (diff) | |
download | fetchmail-a8c8d5de0f31ebf8d2c5664f53dc6cced50be682.tar.gz fetchmail-a8c8d5de0f31ebf8d2c5664f53dc6cced50be682.tar.bz2 fetchmail-a8c8d5de0f31ebf8d2c5664f53dc6cced50be682.zip |
wolfSSL: add run-time check of wolfSSL_lib_version_hex()
to not only check the OpenSSL compatibility version.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1113,6 +1113,12 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck if (*tmp) wolfSSL_Debugging_ON(); } } + { + int wver = wolfSSL_lib_version_hex(); + if (wver < LIBWOLFSSL_VERSION_HEX) { + report(stderr, GT_("Loaded wolfSSL library %#lx older than headers %#lx, refusing to work.\n"), (long)wver, (long)(LIBWOLFSSL_VERSION_HEX)); + } + } #endif if (ver < OPENSSL_VERSION_NUMBER) { |