From b59288f88146b64ac5fda296675c523df11658b8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 15 Jul 2017 13:49:30 +0200 Subject: vtls: refactor out essential information about the SSL backends There is information about the compiled-in SSL backends that is really no concern of any code other than the SSL backend itself, such as which function (if any) implements SHA-256 summing. And there is information that is really interesting to the user, such as the name, or the curl_sslbackend value. Let's factor out the latter into a publicly visible struct. This information will be used in the upcoming API to set the SSL backend globally. Signed-off-by: Johannes Schindelin --- lib/vtls/mbedtls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/vtls/mbedtls.c') diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index d7e16177b..8a0f05b62 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -1039,8 +1039,7 @@ static void *Curl_mbedtls_get_internals(struct ssl_connect_data *connssl, } const struct Curl_ssl Curl_ssl_mbedtls = { - "mbedtls", /* name */ - CURLSSLBACKEND_MBEDTLS, + { CURLSSLBACKEND_MBEDTLS, "mbedtls" }, /* info */ 0, /* have_ca_path */ 0, /* have_certinfo */ -- cgit v1.2.3