From 328fe9afe0b6d30767243ef06801e951b87f1c0f Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 12 May 2020 09:56:44 -0300 Subject: [PATCH] Using standard macros for TLS version names. --- src/ssl/linux/init.c | 1 + src/ssl/negotiate.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ssl/linux/init.c b/src/ssl/linux/init.c index 80b9181..3f4f239 100644 --- a/src/ssl/linux/init.c +++ b/src/ssl/linux/init.c @@ -98,6 +98,7 @@ int ssl_ctx_init(H3270 *hSession, SSL_ERROR_MESSAGE * message) ssl_3270_ex_index = SSL_get_ex_new_index(0,NULL,NULL,NULL,NULL); + #ifdef SSL_ENABLE_CRL_CHECK // Enable CRL check diff --git a/src/ssl/negotiate.c b/src/ssl/negotiate.c index 3f51435..ba5ae44 100644 --- a/src/ssl/negotiate.c +++ b/src/ssl/negotiate.c @@ -144,19 +144,19 @@ static const struct ssl_protocol { { .id = SSL3_VERSION, - .description = "SSLv3" + .description = SSL_TXT_SSLV3 }, { .id = TLS1_VERSION, - .description = "TLSv1" + .description = SSL_TXT_TLSV1 }, { .id = TLS1_1_VERSION, - .description = "TLSv1.1" + .description = SSL_TXT_TLSV1_1 }, { .id = TLS1_2_VERSION, - .description = "TLSv1.2" + .description = SSL_TXT_TLSV1_2 }, { .id = DTLS1_VERSION, -- libgit2 0.21.2