-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build with openssl 1.1 on Windows #13
Comments
Here is a patch for anyone facing the same problem (by just disabling the cert store integration): diff -Nur opusfile-0.11/src/http.c opusfile-0.11-patched/src/http.c
--- opusfile-0.11/src/http.c 2018-09-14 23:25:45.000000000 +0200
+++ opusfile-0.11-patched/src/http.c 2018-09-27 15:42:55.161531800 +0200
@@ -327,10 +327,12 @@
typedef ptrdiff_t ssize_t;
# endif
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
/*Load certificates from the built-in certificate store.*/
int SSL_CTX_set_default_verify_paths_win32(SSL_CTX *_ssl_ctx);
# define SSL_CTX_set_default_verify_paths \
SSL_CTX_set_default_verify_paths_win32
+#endif
# else
/*Normal Berkeley sockets.*/
diff -Nur opusfile-0.11/src/wincerts.c opusfile-0.11-patched/src/wincerts.c
--- opusfile-0.11/src/wincerts.c 2017-04-22 06:01:35.000000000 +0200
+++ opusfile-0.11-patched/src/wincerts.c 2018-09-27 15:42:23.832739900 +0200
@@ -33,6 +33,8 @@
# include <openssl/err.h>
# include <openssl/x509.h>
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
+
static int op_capi_new(X509_LOOKUP *_lu){
HCERTSTORE h_store;
h_store=CertOpenStore(CERT_STORE_PROV_SYSTEM_A,0,0,
@@ -171,3 +173,4 @@
}
#endif
+#endif |
lazka
changed the title
Fails to build with openssl 1.1
Fails to build with openssl 1.1 on Windows
Sep 28, 2018
1480c1
referenced
this issue
in m-ab-s/media-autobuild_suite
Apr 4, 2020
1480c1
added a commit
to m-ab-s/mabs-patches
that referenced
this issue
Jul 19, 2020
From one of lazka's comment xiph/opusfile#13 (comment)
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
X509_LOOKUP and X509_LOOKUP_METHOD structs are opaque now from what I can see.
The text was updated successfully, but these errors were encountered: