From 69039fd1fa3e65e2f5737b2a4044dcb8fbabb76d Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 23 Jun 2017 16:05:26 +0200 Subject: 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 --- lib/vtls/vtls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/vtls/vtls.h') diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h index de98df027..a814b72fb 100644 --- a/lib/vtls/vtls.h +++ b/lib/vtls/vtls.h @@ -24,6 +24,7 @@ #include "curl_setup.h" struct connectdata; +struct ssl_connect_data; struct Curl_ssl { const char *name; @@ -52,6 +53,7 @@ struct Curl_ssl { CURLcode (*connect)(struct connectdata *conn, int sockindex); CURLcode (*connect_nonblocking)(struct connectdata *conn, int sockindex, bool *done); + void *(*get_internals)(struct ssl_connect_data *connssl, CURLINFO info); void (*close)(struct connectdata *conn, int sockindex); void (*close_all)(struct Curl_easy *data); void (*session_free)(void *ptr); -- cgit v1.2.3