From ed91a6f49ce57fc8c1dad8059cfda90cbfd3cdac Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 15 Oct 2019 17:18:19 -0300 Subject: [PATCH] Fixing WIN64 build. --- src/ssl/crl.c | 6 +++++- src/ssl/negotiate.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ssl/crl.c b/src/ssl/crl.c index 5281056..51829a6 100644 --- a/src/ssl/crl.c +++ b/src/ssl/crl.c @@ -28,10 +28,10 @@ */ #include +#include #include #include #include -#include #include #ifdef HAVE_LIBSSL @@ -120,7 +120,11 @@ int lib3270_get_crl_from_dist_points(H3270 *hSession, CRL_DIST_POINTS * dist_poi ASN1_STRING *uri = GENERAL_NAME_get0_value(gen, >ype); if(uri) { +#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) // OpenSSL 1.1.0+ const unsigned char * data = ASN1_STRING_get0_data(uri); +#else + const unsigned char * data = ASN1_STRING_data(uri); // ASN1_STRING_get0_data(uri); +#endif // OpenSSL 1.1.0+ if(data) { lib3270_string_array_append(uris,(char *) data); diff --git a/src/ssl/negotiate.c b/src/ssl/negotiate.c index ffe5831..8bc7816 100644 --- a/src/ssl/negotiate.c +++ b/src/ssl/negotiate.c @@ -34,6 +34,7 @@ #include +#include #if defined(HAVE_LIBSSL) @@ -49,7 +50,6 @@ #endif -#include #include #include #include -- libgit2 0.21.2