aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config_crypto.c5
-rw-r--r--src/config/crypto.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/config/config_crypto.c b/src/config/config_crypto.c
index f118a9709..99acd3076 100644
--- a/src/config/config_crypto.c
+++ b/src/config/config_crypto.c
@@ -88,6 +88,11 @@ REQUIRE_OBJECT ( oid_sha512_256 );
REQUIRE_OBJECT ( oid_x25519 );
#endif
+/* P-256 */
+#if defined ( CRYPTO_CURVE_P256 )
+REQUIRE_OBJECT ( oid_p256 );
+#endif
+
/* AES-CBC */
#if defined ( CRYPTO_CIPHER_AES_CBC )
REQUIRE_OBJECT ( oid_aes_cbc );
diff --git a/src/config/crypto.h b/src/config/crypto.h
index 589c4f0da..5e96be4aa 100644
--- a/src/config/crypto.h
+++ b/src/config/crypto.h
@@ -60,6 +60,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/** X25519 elliptic curve */
#define CRYPTO_CURVE_X25519
+/** P-256 elliptic curve */
+#define CRYPTO_CURVE_P256
+
/** Margin of error (in seconds) allowed in signed timestamps
*
* We default to allowing a reasonable margin of error: 12 hours to