diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-05-04 12:10:39 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-04 22:31:19 +0200 |
commit | e66cca046cef20d00fba89260dfa6b4a3997233d (patch) | |
tree | 7bc1d35fa61b022ea481a7e891bcfa5c78b2fe48 /lib/vtls/gskit.c | |
parent | f8d608f38d00a129680f5535ed2f1e60fc226d30 (diff) | |
download | curl-e66cca046cef20d00fba89260dfa6b4a3997233d.tar.gz |
vtls: use unified "supports" bitfield member in backends
... instead of previous separate struct fields, to make it easier to
extend and change individual backends without having to modify them all.
closes #2547
Diffstat (limited to 'lib/vtls/gskit.c')
-rw-r--r-- | lib/vtls/gskit.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/vtls/gskit.c b/lib/vtls/gskit.c index afc90a859..a770565c1 100644 --- a/lib/vtls/gskit.c +++ b/lib/vtls/gskit.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -1353,12 +1353,8 @@ static void *Curl_gskit_get_internals(struct ssl_connect_data *connssl, const struct Curl_ssl Curl_ssl_gskit = { { CURLSSLBACKEND_GSKIT, "gskit" }, /* info */ - 0, /* have_ca_path */ - 1, /* have_certinfo */ - 1, /* have_pinnedpubkey */ - 0, /* have_ssl_ctx */ - /* TODO: convert to 1 and fix test #1014 (if need) */ - 0, /* support_https_proxy */ + SSLSUPP_CERTINFO | + SSLSUPP_PINNEDPUBKEY sizeof(struct ssl_backend_data), |