From 9d199b5d4e13e89a54175446ded3720350e7cef8 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 10 Nov 2021 19:22:12 -0300 Subject: [PATCH] ASN1_TIME_diff is no longer available on libcrypt. --- src/network_modules/openssl/main.c | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/src/network_modules/openssl/main.c b/src/network_modules/openssl/main.c index 814c568..7eb8cc6 100644 --- a/src/network_modules/openssl/main.c +++ b/src/network_modules/openssl/main.c @@ -33,6 +33,7 @@ */ #include "private.h" +#include static void openssl_network_reset(H3270 *hSession) { @@ -291,6 +292,9 @@ static int openssl_network_connect(H3270 *hSession, LIB3270_NETWORK_STATE *state #endif if(X509_cmp_current_time(next_update) == 1) { + + trace_ssl(hSession,"CRL is valid\n"); + /* int day, sec; if(ASN1_TIME_diff(&day, &sec, NULL, next_update)) { trace_ssl(hSession,"CRL is valid for %d day(s) and %d second(s)\n",day,sec); @@ -298,6 +302,7 @@ static int openssl_network_connect(H3270 *hSession, LIB3270_NETWORK_STATE *state trace_ssl(hSession,"Can't get CRL next update, discarding it\n"); lib3270_openssl_crl_free(context); } + */ } else { trace_ssl(hSession,"CRL is no longer valid\n"); -- libgit2 0.21.2