mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:53:33 +03:00
tidy-up: miscellaneous
- badwords: replace stray synonyms with 'null-terminator'. - tests/FILEFORMAT.md: tidy up feature descriptions. - printf: replace stray `%i` masks with `%d` for consistency. - pytest: add comments for empty excepts to try silencing GitHub CodeQL warnings. - tool1394, unit1675: merge nested `if`s. - dnscache: fix typo in comment. - fix whitespace, indent and newlines. Closes #21921
This commit is contained in:
parent
849317ff5c
commit
952b04474c
31 changed files with 90 additions and 90 deletions
|
|
@ -208,7 +208,7 @@ CURLcode Curl_vtls_apple_verify(struct Curl_cfilter *cf,
|
|||
status = SecTrustSetOCSPResponse(trust, ocspdata);
|
||||
CFRelease(ocspdata);
|
||||
if(status != noErr) {
|
||||
failf(data, "Apple SecTrust: failed to set OCSP response: %i",
|
||||
failf(data, "Apple SecTrust: failed to set OCSP response: %d",
|
||||
(int)status);
|
||||
result = CURLE_PEER_FAILED_VERIFICATION;
|
||||
goto out;
|
||||
|
|
@ -254,7 +254,7 @@ CURLcode Curl_vtls_apple_verify(struct Curl_cfilter *cf,
|
|||
status = SecTrustEvaluate(trust, &sec_result);
|
||||
|
||||
if(status != noErr) {
|
||||
failf(data, "Apple SecTrust verification failed: error %i", (int)status);
|
||||
failf(data, "Apple SecTrust verification failed: error %d", (int)status);
|
||||
result = CURLE_PEER_FAILED_VERIFICATION;
|
||||
}
|
||||
else if((sec_result == kSecTrustResultUnspecified) ||
|
||||
|
|
|
|||
|
|
@ -2192,7 +2192,7 @@ static CURLcode ossl_verifyhost(struct Curl_easy *data,
|
|||
if((cnlen <= 0) || !cn)
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
else if((size_t)cnlen != strlen((char *)cn)) {
|
||||
/* there was a terminating zero before the end of string, this
|
||||
/* there was a null-terminator before the end of string, this
|
||||
cannot match and we return failure! */
|
||||
failf(data, "SSL: illegal cert name field");
|
||||
result = CURLE_PEER_FAILED_VERIFICATION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue