0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

Partially revert previous commit

The OpenSSL backend is the only one that assigns a non-constant
value to the length variable. Use the correct type for its
pointer and cast instead.

[ci skip]
This commit is contained in:
Aaron Jones 2016-04-27 21:49:55 +00:00
parent e3760ba710
commit b28c26d965
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

View file

@ -716,7 +716,7 @@ make_certfp(X509 *cert, uint8_t certfp[RB_SSL_CERTFP_LEN], int method)
const ASN1_ITEM *it;
const EVP_MD *evp;
void *data;
int len;
unsigned int len;
switch(method)
{
@ -756,7 +756,7 @@ make_certfp(X509 *cert, uint8_t certfp[RB_SSL_CERTFP_LEN], int method)
if (ASN1_item_digest(it, evp, data, certfp, &len) != 1)
len = 0;
return len;
return (int) len;
}
int