Skip to content

Commit

Permalink
tls: cast size_t to int
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Dec 21, 2022
1 parent 0ff9585 commit a342c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls/openssl/sni.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct tls_cert *tls_cert_for_sni(const struct tls *tls, const char *sni)
}

nm = X509_get_subject_name(x509);
X509_NAME_get_text_by_NID(nm, NID_commonName, cn, sz);
X509_NAME_get_text_by_NID(nm, NID_commonName, cn, (int) sz);
if (!str_cmp(sni, cn))
break;

Expand Down

0 comments on commit a342c18

Please sign in to comment.