mirror of
https://github.com/curl/curl.git
synced 2026-07-04 21:37:16 +03:00
vtls: fix comment typos and tidy up a type
Pointed out by GitHub Code Quality Closes #21421
This commit is contained in:
parent
e418b42c82
commit
d6372e60e5
1 changed files with 3 additions and 3 deletions
|
|
@ -396,7 +396,7 @@ CURLcode Curl_ssl_easy_config_complete(struct Curl_easy *data)
|
|||
CURLcode Curl_ssl_conn_config_init(struct Curl_easy *data,
|
||||
struct connectdata *conn)
|
||||
{
|
||||
/* Clone "primary" SSL configurations from the esay handle to
|
||||
/* Clone "primary" SSL configurations from the easy handle to
|
||||
* the connection. They are used for connection cache matching and
|
||||
* probably outlive the easy handle */
|
||||
if(!clone_ssl_primary_config(&data->set.ssl.primary, &conn->ssl_config))
|
||||
|
|
@ -803,7 +803,7 @@ CURLcode Curl_pin_peer_pubkey(struct Curl_easy *data,
|
|||
pinned_hash_len = end_pos ?
|
||||
(size_t)(end_pos - pinned_hash) : strlen(pinned_hash);
|
||||
|
||||
/* compare base64 sha256 digests" */
|
||||
/* compare base64 sha256 digests */
|
||||
if(cert_hash_len == pinned_hash_len &&
|
||||
!memcmp(cert_hash, pinned_hash, cert_hash_len)) {
|
||||
DEBUGF(infof(data, "public key hash matches pinned value"));
|
||||
|
|
@ -823,7 +823,7 @@ CURLcode Curl_pin_peer_pubkey(struct Curl_easy *data,
|
|||
size_t size, pem_len;
|
||||
CURLcode pem_read;
|
||||
struct dynbuf buf;
|
||||
char unsigned *pem_ptr = NULL;
|
||||
unsigned char *pem_ptr = NULL;
|
||||
size_t left;
|
||||
FILE *fp = curlx_fopen(pinnedpubkey, "rb");
|
||||
if(!fp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue