summaryrefslogtreecommitdiff
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-09-22 17:21:37 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-09-22 17:21:37 +0200
commit7362008c1cbd6bb3079eae2f8217cd905749dd57 (patch)
tree0dec331312bd557f6cf6b32c8077aef24b19b850 /lib/getinfo.c
parent1467dec14710b4939a2191fea5f75c872a25f2ed (diff)
downloadcurl-7362008c1cbd6bb3079eae2f8217cd905749dd57.tar.gz
CURLINFO_TLS_SESSION: always return backend info
... even for those that don't support providing anything in the 'internals' struct member since it offers a convenient way for applications to figure this out.
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 90ea45424..00873f6fb 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -290,7 +290,7 @@ static CURLcode getinfo_slist(struct SessionHandle *data, CURLINFO info,
void *internals = NULL;
*tsip = tsi;
- tsi->backend = CURLSSLBACKEND_NONE;
+ tsi->backend = Curl_ssl_backend();
tsi->internals = NULL;
if(!conn)
@@ -318,13 +318,11 @@ static CURLcode getinfo_slist(struct SessionHandle *data, CURLINFO info,
internals = conn->ssl[sockindex].handle;
#endif
if(internals) {
- tsi->backend = Curl_ssl_backend();
tsi->internals = internals;
}
/* NOTE: For other SSL backends, it is not immediately clear what data
- to return from 'struct ssl_connect_data'; thus, for now we keep the
- backend as CURLSSLBACKEND_NONE in those cases, which should be
- interpreted as "not supported" */
+ to return from 'struct ssl_connect_data'; thus we keep 'internals' to
+ NULL which should be interpreted as "not supported" */
}
break;
default: