summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-05-26 00:43:46 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-05-26 14:43:45 +0200
commit7f9c5af8b3c905ae9f96ab16b92049548ca407fb (patch)
tree1e29895cdfe01c43baa159e966a9ec39f5855999 /lib
parenta03ea6223950002eba8b1ef0df3133c62f387d6b (diff)
downloadcurl-7f9c5af8b3c905ae9f96ab16b92049548ca407fb.tar.gz
bearssl: explicitly initialize all fields of Curl_ssl
Also, add comments like the other vtls backends. Closes #7133
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/bearssl.c44
1 files changed, 23 insertions, 21 deletions
diff --git a/lib/vtls/bearssl.c b/lib/vtls/bearssl.c
index 40a5e7879..397698da4 100644
--- a/lib/vtls/bearssl.c
+++ b/lib/vtls/bearssl.c
@@ -840,30 +840,32 @@ static CURLcode bearssl_sha256sum(const unsigned char *input,
}
const struct Curl_ssl Curl_ssl_bearssl = {
- { CURLSSLBACKEND_BEARSSL, "bearssl" },
+ { CURLSSLBACKEND_BEARSSL, "bearssl" }, /* info */
0,
sizeof(struct ssl_backend_data),
- Curl_none_init,
- Curl_none_cleanup,
- bearssl_version,
- Curl_none_check_cxn,
- Curl_none_shutdown,
- bearssl_data_pending,
- bearssl_random,
- Curl_none_cert_status_request,
- bearssl_connect,
- bearssl_connect_nonblocking,
- Curl_ssl_getsock,
- bearssl_get_internals,
- bearssl_close,
- Curl_none_close_all,
- bearssl_session_free,
- Curl_none_set_engine,
- Curl_none_set_engine_default,
- Curl_none_engines_list,
- Curl_none_false_start,
- bearssl_sha256sum
+ Curl_none_init, /* init */
+ Curl_none_cleanup, /* cleanup */
+ bearssl_version, /* version */
+ Curl_none_check_cxn, /* check_cxn */
+ Curl_none_shutdown, /* shutdown */
+ bearssl_data_pending, /* data_pending */
+ bearssl_random, /* random */
+ Curl_none_cert_status_request, /* cert_status_request */
+ bearssl_connect, /* connect */
+ bearssl_connect_nonblocking, /* connect_nonblocking */
+ Curl_ssl_getsock, /* getsock */
+ bearssl_get_internals, /* get_internals */
+ bearssl_close, /* close_one */
+ Curl_none_close_all, /* close_all */
+ bearssl_session_free, /* session_free */
+ Curl_none_set_engine, /* set_engine */
+ Curl_none_set_engine_default, /* set_engine_default */
+ Curl_none_engines_list, /* engines_list */
+ Curl_none_false_start, /* false_start */
+ bearssl_sha256sum, /* sha256sum */
+ NULL, /* associate_connection */
+ NULL /* disassociate_connection */
};
#endif /* USE_BEARSSL */