diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-01-11 00:18:39 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-01-11 00:18:39 +0100 |
commit | 2c470d55a7a2e3c8fffa836f15371421062e671f (patch) | |
tree | 861b86e5c5abd904e43bc4bbc36a7cb14f2421e6 /src/IO | |
parent | 09d1171d8d0b16f945df32ff4543c0a8baf4bb22 (diff) |
Report OpenSSL and mbedTLS versions
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/tls_mbedtls.c | 6 | ||||
-rw-r--r-- | src/IO/tls_openssl.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/IO/tls_mbedtls.c b/src/IO/tls_mbedtls.c index 51d6f3a5..fffa7bfe 100644 --- a/src/IO/tls_mbedtls.c +++ b/src/IO/tls_mbedtls.c @@ -4,7 +4,7 @@ * Copyright (C) 2011 Benjamin Johnson <obeythepenguin@users.sourceforge.net> * (for the https code offered from dplus browser that formed the basis...) * Copyright 2016 corvid - * Copyright (C) 2023 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2023-2024 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -44,6 +44,7 @@ #include <mbedtls/error.h> #include <mbedtls/oid.h> #include <mbedtls/x509.h> +#include <mbedtls/version.h> #if MBEDTLS_VERSION_NUMBER < 0x03000000 #include <mbedtls/net.h> /* net_send, net_recv */ #else @@ -354,6 +355,9 @@ static void Tls_remove_psk_ciphersuites() void a_Tls_mbedtls_init(void) { int ret; + char version[128]; + mbedtls_version_get_string_full(version); + MSG("TLS library: %s\n", version); /* As of 2.3.0 in 2016, the 'default' profile allows SHA1, RIPEMD160, * and SHA224 (in addition to the stronger ones), and the 'next' profile diff --git a/src/IO/tls_openssl.c b/src/IO/tls_openssl.c index 413ec4d5..c3e2673a 100644 --- a/src/IO/tls_openssl.c +++ b/src/IO/tls_openssl.c @@ -8,7 +8,7 @@ * (for the certificate hostname checking from wget) * Copyright (C) 2011 Benjamin Johnson <obeythepenguin@users.sourceforge.net> * (for the https code offered from dplus browser that formed the basis...) - * Copyright (C) 2023 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2023-2024 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,6 +53,7 @@ #include <openssl/rand.h> #include <openssl/err.h> #include <openssl/x509v3.h> /* for hostname checking */ +#include <openssl/crypto.h> /* OpenSSL_version */ #define CERT_STATUS_NONE 0 #define CERT_STATUS_RECEIVING 1 @@ -246,6 +247,7 @@ static void Tls_load_certificates() */ void a_Tls_openssl_init(void) { + MSG("TLS library: %s\n", OpenSSL_version(OPENSSL_VERSION)); SSL_library_init(); SSL_load_error_strings(); if (RAND_status() != 1) { |