aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-02-23 19:03:03 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-02-23 19:03:03 -0500
commit332414a30e82caa8fbc6cd76903f286736594052 (patch)
tree9f74485828cace029cf9af1183709c6094ca74ac /include
parent3438ce7f468e837f98f51b798da15ff0a836cf43 (diff)
getinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION
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: https://github.com/curl/curl/issues/234 Reported-by: dkjjr89@users.noreply.github.com Bug: https://curl.haxx.se/mail/lib-2015-09/0127.html Reported-by: Michael König
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index a480bd062..e0d5c0f4e 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -2112,7 +2112,7 @@ typedef enum {
/* Information about the SSL library used and the respective internal SSL
handle, which can be used to obtain further information regarding the
- connection. Asked for with CURLINFO_TLS_SESSION. */
+ connection. Asked for with CURLINFO_TLS_SSL_PTR or CURLINFO_TLS_SESSION. */
struct curl_tlssessioninfo {
curl_sslbackend backend;
void *internals;
@@ -2172,9 +2172,10 @@ typedef enum {
CURLINFO_LOCAL_PORT = CURLINFO_LONG + 42,
CURLINFO_TLS_SESSION = CURLINFO_SLIST + 43,
CURLINFO_ACTIVESOCKET = CURLINFO_SOCKET + 44,
+ CURLINFO_TLS_SSL_PTR = CURLINFO_SLIST + 45,
/* Fill in new entries below here! */
- CURLINFO_LASTONE = 44
+ CURLINFO_LASTONE = 45
} CURLINFO;
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as