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:
parent
e3760ba710
commit
b28c26d965
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue