From 2c470d55a7a2e3c8fffa836f15371421062e671f Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 11 Jan 2024 00:18:39 +0100 Subject: Report OpenSSL and mbedTLS versions --- src/IO/tls_mbedtls.c | 6 +++++- src/IO/tls_openssl.c | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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 * (for the https code offered from dplus browser that formed the basis...) * Copyright 2016 corvid - * Copyright (C) 2023 Rodrigo Arias Mallo + * Copyright (C) 2023-2024 Rodrigo Arias Mallo * * 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 #include #include +#include #if MBEDTLS_VERSION_NUMBER < 0x03000000 #include /* 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 * (for the https code offered from dplus browser that formed the basis...) - * Copyright (C) 2023 Rodrigo Arias Mallo + * Copyright (C) 2023-2024 Rodrigo Arias Mallo * * 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 #include #include /* for hostname checking */ +#include /* 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) { -- cgit v1.2.3