aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2022-11-01 10:21:20 +0100
committerMatthias Andree <matthias.andree@gmx.de>2022-11-01 10:21:20 +0100
commita8c8d5de0f31ebf8d2c5664f53dc6cced50be682 (patch)
tree1daf1d70153cd2fd32b4e536babbc5331eed4085
parent2eb6f8a71170fabf8e37d7d27d1f8d430fbaafdc (diff)
downloadfetchmail-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.
-rw-r--r--socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index 43df13ce..67fdea57 100644
--- a/socket.c
+++ b/socket.c
@@ -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) {