Commit 7b26407c223e0e70217210a8063e9baa70255312
1 parent
001840a6
Exists in
master
and in
3 other branches
Fixing build issues.
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
src/lib3270/ssl/ctx_init.c
| @@ -112,7 +112,12 @@ int lib3270_check_X509_crl(H3270 *hSession, SSL_ERROR_MESSAGE * message) | @@ -112,7 +112,12 @@ int lib3270_check_X509_crl(H3270 *hSession, SSL_ERROR_MESSAGE * message) | ||
| 112 | { | 112 | { |
| 113 | 113 | ||
| 114 | // https://stackoverflow.com/questions/23407376/testing-x509-certificate-expiry-date-with-c | 114 | // https://stackoverflow.com/questions/23407376/testing-x509-certificate-expiry-date-with-c |
| 115 | - const ASN1_TIME * next_update = X509_CRL_get0_nextUpdate(hSession->ssl.crl.cert); | 115 | + // X509_CRL_get_nextUpdate is deprecated in openssl 1.1.0 |
| 116 | + #if OPENSSL_VERSION_NUMBER < 0x10100000L | ||
| 117 | + const ASN1_TIME * next_update = X509_CRL_get_nextUpdate(hSession->ssl.crl.cert); | ||
| 118 | + #else | ||
| 119 | + const ASN1_TIME * next_update = X509_CRL_get0_nextUpdate(hSession->ssl.crl.cert); | ||
| 120 | + #endif | ||
| 116 | 121 | ||
| 117 | if(X509_cmp_current_time(next_update)) | 122 | if(X509_cmp_current_time(next_update)) |
| 118 | { | 123 | { |