Commit 9d199b5d4e13e89a54175446ded3720350e7cef8
1 parent
d5fa30f0
Exists in
master
and in
2 other branches
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 | 33 | */ |
34 | 34 | |
35 | 35 | #include "private.h" |
36 | +#include <openssl/asn1.h> | |
36 | 37 | |
37 | 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 | 292 | #endif |
292 | 293 | |
293 | 294 | if(X509_cmp_current_time(next_update) == 1) { |
295 | + | |
296 | + trace_ssl(hSession,"CRL is valid\n"); | |
297 | + /* | |
294 | 298 | int day, sec; |
295 | 299 | if(ASN1_TIME_diff(&day, &sec, NULL, next_update)) { |
296 | 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 | 302 | trace_ssl(hSession,"Can't get CRL next update, discarding it\n"); |
299 | 303 | lib3270_openssl_crl_free(context); |
300 | 304 | } |
305 | + */ | |
301 | 306 | |
302 | 307 | } else { |
303 | 308 | trace_ssl(hSession,"CRL is no longer valid\n"); | ... | ... |