From 332414a30e82caa8fbc6cd76903f286736594052 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Tue, 23 Feb 2016 19:03:03 -0500 Subject: getinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- packages/OS400/ccsidcurl.c | 1 + packages/OS400/curl.inc.in | 2 ++ 2 files changed, 3 insertions(+) (limited to 'packages/OS400') 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' -- cgit v1.2.3