summaryrefslogtreecommitdiff
path: root/lib/vtls/openssl.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-10-31 12:49:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-01 17:01:26 +0100
commit3f039dfd6f0a1d806b94cc2d5548926182485b7e (patch)
tree35ba93da831cc90582661f6ed63b3710a1570410 /lib/vtls/openssl.c
parent7399fa5b05ce897277b8713c659c939d068570a4 (diff)
downloadcurl-3f039dfd6f0a1d806b94cc2d5548926182485b7e.tar.gz
strcase: use curl_str(n)equal for case insensitive matches
No point in having two entry points for the same functions. Also merged the *safe* function treatment into these so that they can also be used when one or both pointers are NULL. Closes #9837
Diffstat (limited to 'lib/vtls/openssl.c')
-rw-r--r--lib/vtls/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index ad2efa558..dd9d24a7c 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -4364,7 +4364,7 @@ static size_t ossl_version(char *buffer, size_t size)
int count;
const char *ver = OpenSSL_version(OPENSSL_VERSION);
const char expected[] = OSSL_PACKAGE " "; /* ie "LibreSSL " */
- if(Curl_strncasecompare(ver, expected, sizeof(expected) - 1)) {
+ if(strncasecompare(ver, expected, sizeof(expected) - 1)) {
ver += sizeof(expected) - 1;
}
count = msnprintf(buffer, size, "%s/%s", OSSL_PACKAGE, ver);