From d6372e60e52936268f11966ae5c5abdea73ecc6f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 23 Apr 2026 11:55:59 +0200 Subject: [PATCH] vtls: fix comment typos and tidy up a type Pointed out by GitHub Code Quality Closes #21421 --- lib/vtls/vtls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index 1a3c433d1b..891facfabb 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -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)