mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Merge pull request #1224 from botovq/improve-use-dsa
Do not use DSA API unless USE_DSA is set
This commit is contained in:
commit
a2bf32bb4e
1 changed files with 2 additions and 0 deletions
|
|
@ -195,6 +195,7 @@ void sldns_key_EVP_unload_gost(void)
|
||||||
}
|
}
|
||||||
#endif /* USE_GOST */
|
#endif /* USE_GOST */
|
||||||
|
|
||||||
|
#ifdef USE_DSA
|
||||||
/* Retrieve params as BIGNUM from raw buffer */
|
/* Retrieve params as BIGNUM from raw buffer */
|
||||||
static int
|
static int
|
||||||
sldns_key_dsa_buf_bignum(unsigned char* key, size_t len, BIGNUM** p,
|
sldns_key_dsa_buf_bignum(unsigned char* key, size_t len, BIGNUM** p,
|
||||||
|
|
@ -370,6 +371,7 @@ EVP_PKEY *sldns_key_dsa2pkey_raw(unsigned char* key, size_t len)
|
||||||
return evp_key;
|
return evp_key;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif /* USE_DSA */
|
||||||
|
|
||||||
/* Retrieve params as BIGNUM from raw buffer, n is modulus, e is exponent */
|
/* Retrieve params as BIGNUM from raw buffer, n is modulus, e is exponent */
|
||||||
static int
|
static int
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue