mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +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:
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 ASN1_ITEM *it;
|
||||||
const EVP_MD *evp;
|
const EVP_MD *evp;
|
||||||
void *data;
|
void *data;
|
||||||
int len;
|
unsigned int len;
|
||||||
|
|
||||||
switch(method)
|
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)
|
if (ASN1_item_digest(it, evp, data, certfp, &len) != 1)
|
||||||
len = 0;
|
len = 0;
|
||||||
return len;
|
return (int) len;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue