summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Toorop <willem@nlnetlabs.nl>2019-04-02 12:45:04 +0200
committerWillem Toorop <willem@nlnetlabs.nl>2019-04-02 12:45:04 +0200
commita5e5ad83769ffb17714390c602a6bc7a47c295ba (patch)
treef4b893b2cd9655de68e2ec7e314e2f68cf4c7368
parent7d957a6b78897e3b15566a98788836a9288ff9ca (diff)
downloadldns-a5e5ad83769ffb17714390c602a6bc7a47c295ba.tar.gz
Get rid of some compiler warnings
-rw-r--r--dnssec_sign.c5
-rw-r--r--dnssec_verify.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/dnssec_sign.c b/dnssec_sign.c
index 8403b651..59ac6540 100644
--- a/dnssec_sign.c
+++ b/dnssec_sign.c
@@ -497,9 +497,10 @@ ldns_sign_public_evp(ldns_buffer *to_sign,
ldns_buffer_position(to_sign));
siglen = (unsigned int)siglen_sizet;
}
- } else
-#endif
+ } else {
+#else
if(md_type != NULL) {
+#endif
r = EVP_SignInit(ctx, md_type);
if(r == 1) {
r = EVP_SignUpdate(ctx, (unsigned char*)
diff --git a/dnssec_verify.c b/dnssec_verify.c
index ed07e4e0..b430ceef 100644
--- a/dnssec_verify.c
+++ b/dnssec_verify.c
@@ -2606,11 +2606,10 @@ ldns_verify_rrsig_evp_raw(const unsigned char *sig, size_t siglen,
ldns_buffer_begin(rrset),
ldns_buffer_position(rrset));
}
- } else
+ } else {
#else
- res = 0;
-#endif
if(digest_type) {
+#endif
EVP_VerifyInit(ctx, digest_type);
EVP_VerifyUpdate(ctx,
ldns_buffer_begin(rrset),