mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 12:20:00 -04:00
Merge branch '3785-openssl-refactoring-15' into 'main'
Refactor OpenSSL ECDSA to use pkeypair Closes #3785 See merge request isc-projects/bind9!7332
This commit is contained in:
commit
a0d15e4e07
2 changed files with 263 additions and 625 deletions
|
|
@ -56,6 +56,13 @@ EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !HAVE_EVP_PKEY_GET0_EC_KEY && OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
static inline const EC_KEY *
|
||||
EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) {
|
||||
return (pkey->type == EVP_PKEY_EC ? pkey->pkey.ec : NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !HAVE_RSA_SET0_KEY && OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||
int
|
||||
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue