mirror of
https://github.com/monero-project/monero.git
synced 2024-12-18 04:04:47 -05:00
unbound: update some EVP APIs to new names
Replace EVP_VerifyInit with EVP_DigestInit, and EVP_VerifyUpdate with EVP_DigestUpdate. Reported/requested by hyc, changed by mooo.
This commit is contained in:
parent
694470fae7
commit
45e9838bb1
8
external/unbound/validator/val_secalgo.c
vendored
8
external/unbound/validator/val_secalgo.c
vendored
@ -546,15 +546,15 @@ verify_canonrrset(sldns_buffer* buf, int algo, unsigned char* sigblock,
|
|||||||
|
|
||||||
/* do the signature cryptography work */
|
/* do the signature cryptography work */
|
||||||
EVP_MD_CTX_init(&ctx);
|
EVP_MD_CTX_init(&ctx);
|
||||||
if(EVP_VerifyInit(&ctx, digest_type) == 0) {
|
if(EVP_DigestInit(&ctx, digest_type) == 0) {
|
||||||
verbose(VERB_QUERY, "verify: EVP_VerifyInit failed");
|
verbose(VERB_QUERY, "verify: EVP_DigestInit failed");
|
||||||
EVP_PKEY_free(evp_key);
|
EVP_PKEY_free(evp_key);
|
||||||
if(dofree) free(sigblock);
|
if(dofree) free(sigblock);
|
||||||
return sec_status_unchecked;
|
return sec_status_unchecked;
|
||||||
}
|
}
|
||||||
if(EVP_VerifyUpdate(&ctx, (unsigned char*)sldns_buffer_begin(buf),
|
if(EVP_DigestUpdate(&ctx, (unsigned char*)sldns_buffer_begin(buf),
|
||||||
(unsigned int)sldns_buffer_limit(buf)) == 0) {
|
(unsigned int)sldns_buffer_limit(buf)) == 0) {
|
||||||
verbose(VERB_QUERY, "verify: EVP_VerifyUpdate failed");
|
verbose(VERB_QUERY, "verify: EVP_DigestUpdate failed");
|
||||||
EVP_PKEY_free(evp_key);
|
EVP_PKEY_free(evp_key);
|
||||||
if(dofree) free(sigblock);
|
if(dofree) free(sigblock);
|
||||||
return sec_status_unchecked;
|
return sec_status_unchecked;
|
||||||
|
Loading…
Reference in New Issue
Block a user