summaryrefslogtreecommitdiff
path: root/packages/OS400
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 /packages/OS400
parent3438ce7f468e837f98f51b798da15ff0a836cf43 (diff)
downloadcurl-332414a30e82caa8fbc6cd76903f286736594052.tar.gz
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 'packages/OS400')
-rw-r--r--packages/OS400/ccsidcurl.c1
-rw-r--r--packages/OS400/curl.inc.in2
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c
index a32bc5df0..75b7570ea 100644
--- a/packages/OS400/ccsidcurl.c
+++ b/packages/OS400/ccsidcurl.c
@@ -679,6 +679,7 @@ curl_easy_getinfo_ccsid(CURL * curl, CURLINFO info, ...)
break;
case CURLINFO_TLS_SESSION:
+ case CURLINFO_TLS_SSL_PTR:
case CURLINFO_SOCKET:
break;
diff --git a/packages/OS400/curl.inc.in b/packages/OS400/curl.inc.in
index da3df4ad2..cd8f89f9e 100644
--- a/packages/OS400/curl.inc.in
+++ b/packages/OS400/curl.inc.in
@@ -1426,6 +1426,8 @@
d c X'0040002B'
d CURLINFO_ACTIVESOCKET... CURLINFO_SOCKET + 44
d c X'0050002C'
+ d CURLINFO_TLS_SSL_PTR... CURLINFO_SLIST + 45
+ d c X'0040002D'
*
d CURLINFO_HTTP_CODE... Old ...RESPONSE_CODE
d c X'00200002'