at master 35 lines 998 B view raw
1diff --git a/src/http.c b/src/http.c 2index bd08562..3a3592c 100644 3--- a/src/http.c 4+++ b/src/http.c 5@@ -327,10 +327,12 @@ static int op_poll_win32(struct pollfd *_fds,nfds_t _nfds,int _timeout){ 6 typedef ptrdiff_t ssize_t; 7 # endif 8 9+#if OPENSSL_VERSION_NUMBER < 0x10100000L 10 /*Load certificates from the built-in certificate store.*/ 11 int SSL_CTX_set_default_verify_paths_win32(SSL_CTX *_ssl_ctx); 12 # define SSL_CTX_set_default_verify_paths \ 13 SSL_CTX_set_default_verify_paths_win32 14+#endif 15 16 # else 17 /*Normal Berkeley sockets.*/ 18diff --git a/src/wincerts.c b/src/wincerts.c 19index 409a4e0..c355952 100644 20--- a/src/wincerts.c 21+++ b/src/wincerts.c 22@@ -33,6 +33,8 @@ 23 # include <openssl/err.h> 24 # include <openssl/x509.h> 25 26+#if OPENSSL_VERSION_NUMBER < 0x10100000L 27+ 28 static int op_capi_new(X509_LOOKUP *_lu){ 29 HCERTSTORE h_store; 30 h_store=CertOpenStore(CERT_STORE_PROV_SYSTEM_A,0,0, 31@@ -171,3 +173,4 @@ int SSL_CTX_set_default_verify_paths_win32(SSL_CTX *_ssl_ctx){ 32 } 33 34 #endif 35+#endif