mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00: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:
@@ -56,6 +56,13 @@ EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) {
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#if !HAVE_RSA_SET0_KEY && OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||||
int
|
int
|
||||||
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
|
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user