diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-04-28 02:57:12 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-04-28 02:57:38 -0400 |
commit | 9f498de9a28e4a4a3f73108756fb7e50af9ec014 (patch) | |
tree | fa8eba981e9d8a5cd603fd1c378af99ddfd9c6ef /lib/getinfo.c | |
parent | ba06adc4c5aa25849b9024c21cc4c826c5bf9506 (diff) | |
download | curl-9f498de9a28e4a4a3f73108756fb7e50af9ec014.tar.gz |
mbedtls: Fix session resume
This also fixes PolarSSL session resume.
Prior to this change the TLS session information wasn't properly
saved and restored for PolarSSL and mbedTLS.
Bug: https://curl.haxx.se/mail/lib-2016-01/0070.html
Reported-by: Thomas Glanzmann
Bug: https://curl.haxx.se/mail/lib-2016-04/0095.html
Reported-by: Moti Avrahami
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 39189cb60..d4b01bf29 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -307,7 +307,7 @@ static CURLcode getinfo_slist(struct SessionHandle *data, CURLINFO info, #elif defined(USE_GSKIT) tsi->internals = (void *)conn->ssl[i].handle; #elif defined(USE_MBEDTLS) - tsi->internals = (void *)&conn->ssl[i].ssn; + tsi->internals = (void *)&conn->ssl[i].ssl; #elif defined(USE_NSS) tsi->internals = (void *)conn->ssl[i].handle; #elif defined(USE_OPENSSL) @@ -316,7 +316,7 @@ static CURLcode getinfo_slist(struct SessionHandle *data, CURLINFO info, (void *)conn->ssl[i].ctx : (void *)conn->ssl[i].handle); #elif defined(USE_POLARSSL) - tsi->internals = (void *)&conn->ssl[i].ssn; + tsi->internals = (void *)&conn->ssl[i].ssl; #elif defined(USE_SCHANNEL) tsi->internals = (void *)&conn->ssl[i].ctxt->ctxt_handle; #elif defined(USE_SSL) |