mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
getinfo: access SSL internals via Curl_ssl
In the ongoing endeavor to abstract out all SSL backend-specific functionality, this is the next step: Instead of hard-coding how the different SSL backends access their internal data in getinfo.c, let's implement backend-specific functions to do that task. This will also allow for switching SSL backends as a runtime option. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
118b074fba
commit
69039fd1fa
12 changed files with 88 additions and 26 deletions
|
|
@ -681,6 +681,13 @@ static CURLcode Curl_axtls_random(struct Curl_easy *data,
|
|||
return CURLE_OK;
|
||||
}
|
||||
|
||||
static void *Curl_axtls_get_internals(struct ssl_connect_data *connssl,
|
||||
CURLINFO info UNUSED_PARAM)
|
||||
{
|
||||
(void)info;
|
||||
return connssl->ssl;
|
||||
}
|
||||
|
||||
const struct Curl_ssl Curl_ssl_axtls = {
|
||||
"axtls", /* name */
|
||||
|
||||
|
|
@ -705,6 +712,7 @@ const struct Curl_ssl Curl_ssl_axtls = {
|
|||
Curl_none_cert_status_request, /* cert_status_request */
|
||||
Curl_axtls_connect, /* connect */
|
||||
Curl_axtls_connect_nonblocking, /* connect_nonblocking */
|
||||
Curl_axtls_get_internals, /* get_internals */
|
||||
Curl_axtls_close, /* close */
|
||||
Curl_none_close_all, /* close_all */
|
||||
Curl_axtls_session_free, /* session_free */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue