diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-07-15 13:49:30 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-08-28 14:56:58 +0200 |
commit | b59288f88146b64ac5fda296675c523df11658b8 (patch) | |
tree | 844aecc8b3c588584731b31b0043a9e9e6ac894c /lib/vtls/gtls.c | |
parent | b0989cd3abaff4f9a0717b4875022fa79e33b481 (diff) |
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 <johannes.schindelin@gmx.de>
Diffstat (limited to 'lib/vtls/gtls.c')
-rw-r--r-- | lib/vtls/gtls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 498634b29..07de85d8f 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -1806,8 +1806,7 @@ static void *Curl_gtls_get_internals(struct ssl_connect_data *connssl, } const struct Curl_ssl Curl_ssl_gnutls = { - "gnutls", /* name */ - CURLSSLBACKEND_GNUTLS, + { CURLSSLBACKEND_GNUTLS, "gnutls" }, /* info */ 1, /* have_ca_path */ 1, /* have_certinfo */ |