Commit 9d199b5d4e13e89a54175446ded3720350e7cef8

Authored by Perry Werneck
1 parent d5fa30f0
Exists in master and in 2 other branches develop, macos

ASN1_TIME_diff is no longer available on libcrypt.

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/network_modules/openssl/main.c
@@ -33,6 +33,7 @@ @@ -33,6 +33,7 @@
33 */ 33 */
34 34
35 #include "private.h" 35 #include "private.h"
  36 +#include <openssl/asn1.h>
36 37
37 static void openssl_network_reset(H3270 *hSession) { 38 static void openssl_network_reset(H3270 *hSession) {
38 39
@@ -291,6 +292,9 @@ static int openssl_network_connect(H3270 *hSession, LIB3270_NETWORK_STATE *state @@ -291,6 +292,9 @@ static int openssl_network_connect(H3270 *hSession, LIB3270_NETWORK_STATE *state
291 #endif 292 #endif
292 293
293 if(X509_cmp_current_time(next_update) == 1) { 294 if(X509_cmp_current_time(next_update) == 1) {
  295 +
  296 + trace_ssl(hSession,"CRL is valid\n");
  297 + /*
294 int day, sec; 298 int day, sec;
295 if(ASN1_TIME_diff(&day, &sec, NULL, next_update)) { 299 if(ASN1_TIME_diff(&day, &sec, NULL, next_update)) {
296 trace_ssl(hSession,"CRL is valid for %d day(s) and %d second(s)\n",day,sec); 300 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 @@ -298,6 +302,7 @@ static int openssl_network_connect(H3270 *hSession, LIB3270_NETWORK_STATE *state
298 trace_ssl(hSession,"Can't get CRL next update, discarding it\n"); 302 trace_ssl(hSession,"Can't get CRL next update, discarding it\n");
299 lib3270_openssl_crl_free(context); 303 lib3270_openssl_crl_free(context);
300 } 304 }
  305 + */
301 306
302 } else { 307 } else {
303 trace_ssl(hSession,"CRL is no longer valid\n"); 308 trace_ssl(hSession,"CRL is no longer valid\n");