From 3eb3dbbf70d2ead39b89a5b3aec2102757fb49b6 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 16 Oct 2019 12:09:21 -0300 Subject: [PATCH] Fixing CRL download on fixed url. --- src/ssl/negotiate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ssl/negotiate.c b/src/ssl/negotiate.c index d392a47..92d046c 100644 --- a/src/ssl/negotiate.c +++ b/src/ssl/negotiate.c @@ -164,8 +164,11 @@ static int background_ssl_negotiation(H3270 *hSession, void *message) #ifdef SSL_CRL_URL // Load CRL from pre-defined URL - if(lib3270_crl_new_from_url(hSession, message, SSL_CRL_URL)) - return EACCES; + if(!hSession->ssl.crl.cert) + { + if(lib3270_crl_new_from_url(hSession, message, SSL_CRL_URL)) + return EACCES; + } #endif // SSL_CRL_URL -- libgit2 0.21.2