-
Notifications
You must be signed in to change notification settings - Fork 2.5k
add support for OpenSSL 1.1.0 for BIO filter #3960
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
Conversation
Closes: libgit2#3959 Signed-off-by: Igor Gnatenko <[email protected]>
P.S. I have not tested it yet |
I would rather have us |
No need to use a
etc. |
Declaring functions in someone else's namespace is something you have to be very careful about, or you might end up overwriting the one hat libssl itself provides, depending on exactly how the libraries are loaded, like in the example above. |
so what should I do after all? |
Either would work, but if you prefer functions, they should be using the |
We want to program against the interface, so recreate it when we compile against pre-1.1 versions.
1d1b37e
to
2fd1dea
Compare
For older versions we can fall back on the deprecated ASN1_STRING_data.
2fd1dea
to
2f3adf9
Compare
My distribution just upgraded to 1.1 in the headers, so I've gone ahead and updated to what the kind of interfaces we program against. I also moved the creation of the method to the global initialisation function. Creating a new one on each connection is unsafe thread-wise and it's also a memory leak. |
We need to include the initialisation and construction functions in all backend, so we include this header when building against SecureTransport and WinHTTP as well.
Thanks for doing the 1.1 conversion. |
Closes: #3959
Signed-off-by: Igor Gnatenko [email protected]