Finish refactoring after the removal of --with-ecdsa and --with-eddsa.
Missed inc3b8130fe8. (cherry picked from commit7fc4f926fb)
This commit is contained in:
committed by
Ondřej Surý
parent
78e4cc96d7
commit
f534519af5
@@ -228,12 +228,8 @@ dst_lib_init(isc_mem_t *mctx, const char *engine) {
|
||||
RETERR(dst__pkcs11rsa_init(&dst_t_func[DST_ALG_RSASHA512]));
|
||||
RETERR(dst__pkcs11ecdsa_init(&dst_t_func[DST_ALG_ECDSA256]));
|
||||
RETERR(dst__pkcs11ecdsa_init(&dst_t_func[DST_ALG_ECDSA384]));
|
||||
#ifdef HAVE_PKCS11_ED25519
|
||||
RETERR(dst__pkcs11eddsa_init(&dst_t_func[DST_ALG_ED25519]));
|
||||
#endif /* ifdef HAVE_PKCS11_ED25519 */
|
||||
#ifdef HAVE_PKCS11_ED448
|
||||
RETERR(dst__pkcs11eddsa_init(&dst_t_func[DST_ALG_ED448]));
|
||||
#endif /* ifdef HAVE_PKCS11_ED448 */
|
||||
#endif /* USE_PKCS11 */
|
||||
#ifdef GSSAPI
|
||||
RETERR(dst__gssapi_init(&dst_t_func[DST_ALG_GSSAPI]));
|
||||
|
||||
@@ -234,10 +234,8 @@ isc_result_t
|
||||
dst__pkcs11dsa_init(struct dst_func **funcp);
|
||||
isc_result_t
|
||||
dst__pkcs11ecdsa_init(struct dst_func **funcp);
|
||||
#if defined(HAVE_PKCS11_ED25519) || defined(HAVE_PKCS11_ED448)
|
||||
isc_result_t
|
||||
dst__pkcs11eddsa_init(struct dst_func **funcp);
|
||||
#endif /* if defined(HAVE_PKCS11_ED25519) || defined(HAVE_PKCS11_ED448) */
|
||||
#endif /* USE_PKCS11 */
|
||||
#ifdef GSSAPI
|
||||
isc_result_t
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
/*! \file */
|
||||
|
||||
#if USE_PKCS11 && (HAVE_PKCS11_ED25519 || HAVE_PKCS11_ED448)
|
||||
#if USE_PKCS11
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
@@ -24,12 +24,8 @@ static CK_BYTE pk11_ecc_prime256v1[] = { 0x06, 0x08, 0x2a, 0x86, 0x48,
|
||||
static CK_BYTE pk11_ecc_secp384r1[] = {
|
||||
0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x22
|
||||
};
|
||||
#if HAVE_PKCS11_ED25519
|
||||
static CK_BYTE pk11_ecc_ed25519[] = { 0x06, 0x03, 0x2b, 0x65, 0x70 };
|
||||
#endif /* HAVE_PKCS11_ED25519 */
|
||||
#if HAVE_PKCS11_ED448
|
||||
static CK_BYTE pk11_ecc_ed448[] = { 0x06, 0x03, 0x2b, 0x65, 0x71 };
|
||||
#endif /* HAVE_PKCS11_ED448 */
|
||||
|
||||
#ifdef WANT_DH_PRIMES
|
||||
static CK_BYTE pk11_dh_bn2[] = { 2 };
|
||||
|
||||
Reference in New Issue
Block a user