mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
Fixed comparison of integers of different signs. (#544)
This commit is contained in:
parent
0a2cb20223
commit
3d47a51430
@ -5671,7 +5671,7 @@ SSLClient::verify_host_with_subject_alt_name(X509 *server_cert) const {
|
|||||||
|
|
||||||
auto count = sk_GENERAL_NAME_num(alt_names);
|
auto count = sk_GENERAL_NAME_num(alt_names);
|
||||||
|
|
||||||
for (auto i = 0; i < count && !dsn_matched; i++) {
|
for (decltype(count) i = 0; i < count && !dsn_matched; i++) {
|
||||||
auto val = sk_GENERAL_NAME_value(alt_names, i);
|
auto val = sk_GENERAL_NAME_value(alt_names, i);
|
||||||
if (val->type == type) {
|
if (val->type == type) {
|
||||||
auto name = (const char *)ASN1_STRING_get0_data(val->d.ia5);
|
auto name = (const char *)ASN1_STRING_get0_data(val->d.ia5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user