1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-20 15:22:01 +03:00

Fix signed/unsigned warning

This commit is contained in:
bel
2016-07-25 21:27:28 +02:00
parent e3d93fb4a1
commit 001817bba8

View File

@@ -11389,7 +11389,7 @@ ssl_get_client_cert_info(struct mg_connection *conn)
/* Calculate SHA1 fingerprint and store as a hex string */
ulen = 0;
ASN1_digest((int (*)())i2d_X509, digest, (char *)cert, buf, &ulen);
if (!hexdump2string(buf, ulen, str_finger, (int)sizeof(str_finger))) {
if (!hexdump2string(buf, (int)ulen, str_finger, (int)sizeof(str_finger))) {
*str_finger = 0;
}