]> git.ipfire.org Git - thirdparty/curl.git/commit
hostcheck: pass in pattern length too, to avoid a strlen call
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Feb 2022 16:27:09 +0000 (17:27 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Feb 2022 07:53:34 +0000 (08:53 +0100)
commitd15692ebbad5e9cfb871b0f7f51a73e43762cee2
tree72e0a7b99d566de09b9cec5f28736de3226f62e0
parent9bc3cebc9271c79f4ab229fecced1f54dec6bc3d
hostcheck: pass in pattern length too, to avoid a strlen call

Removes one strlen() call per SAN name in a cert-check.

Closes #8418
lib/vtls/hostcheck.c
lib/vtls/hostcheck.h
lib/vtls/openssl.c
lib/vtls/schannel_verify.c
lib/vtls/x509asn1.c
tests/unit/unit1397.c