diff options
author | Howard Chu <hyc@symas.com> | 2017-05-17 22:30:20 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-05-17 22:33:16 +0100 |
commit | 45e9838bb1f697a7b7d35e7abc6eb236ca7b625c (patch) | |
tree | e427c4ac1a79f942f2754d7d45f5de0fad68dd1d /external/unbound | |
parent | Merge pull request #2015 (diff) | |
download | monero-45e9838bb1f697a7b7d35e7abc6eb236ca7b625c.tar.xz |
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.
Diffstat (limited to 'external/unbound')
-rw-r--r-- | external/unbound/validator/val_secalgo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/external/unbound/validator/val_secalgo.c b/external/unbound/validator/val_secalgo.c index 256c3ff92..b55d4a62c 100644 --- a/external/unbound/validator/val_secalgo.c +++ b/external/unbound/validator/val_secalgo.c @@ -546,15 +546,15 @@ verify_canonrrset(sldns_buffer* buf, int algo, unsigned char* sigblock, /* do the signature cryptography work */ EVP_MD_CTX_init(&ctx); - if(EVP_VerifyInit(&ctx, digest_type) == 0) { - verbose(VERB_QUERY, "verify: EVP_VerifyInit failed"); + if(EVP_DigestInit(&ctx, digest_type) == 0) { + verbose(VERB_QUERY, "verify: EVP_DigestInit failed"); EVP_PKEY_free(evp_key); if(dofree) free(sigblock); 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) { - verbose(VERB_QUERY, "verify: EVP_VerifyUpdate failed"); + verbose(VERB_QUERY, "verify: EVP_DigestUpdate failed"); EVP_PKEY_free(evp_key); if(dofree) free(sigblock); return sec_status_unchecked; |