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
getinfo with OpenSSL backend - No connection information available #234
Comments
This may be the right thing to do, yes. It also struck me that since we do not at all document what sort of internal handle you get back, no application can reliably use this anyway. We should fix that too. |
I took the question to the list just to see if there's anyone with thoughts (like for example Christian who brought the feature initially): http://curl.haxx.se/mail/lib-2015-04/0149.html |
I'm reluctant to change the existing code since it has been like this for a while already and there may be apps using it. |
I understand. Thanks! |
The two options are almost the same, except in the case of OpenSSL: CURLINFO_TLS_SESSION OpenSSL session internals is SSL_CTX *. CURLINFO_TLS_SSL_PTR OpenSSL session internals is SSL *. For backwards compatibility we couldn't modify CURLINFO_TLS_SESSION to return an SSL pointer for OpenSSL. Also, add support for the 'internals' member to point to SSL object for the other backends axTLS, PolarSSL, Secure Channel, Secure Transport and wolfSSL. Bug: #234 Reported-by: dkjjr89@users.noreply.github.com Bug: https://curl.haxx.se/mail/lib-2015-09/0127.html Reported-by: Michael König
@dkjjr89 I've added |
My understanding of OpenSSL (granted is limited) is that with a connection structure you can obtain the context that created the connection. I am not aware of a way to obtain an existing connection from a context structure. In version libcurl 7.41.0 I changed line 310 of lib/getino.c from:
To:
The text was updated successfully, but these errors were encountered: