This requires a function that will be added in the upcoming Botan 3.2
release.
AC_SUBST(botan_LIBS)
saved_LIBS=$LIBS
LIBS="$botan_LIBS"
- AC_CHECK_FUNCS(botan_rng_init_custom)
+ AC_CHECK_FUNCS(botan_rng_init_custom botan_pubkey_ecc_key_used_explicit_encoding)
LIBS=$saved_LIBS
fi
{
private_botan_ec_public_key_t *this;
+#ifdef HAVE_BOTAN_PUBKEY_ECC_KEY_USED_EXPLICIT_ENCODING
+ if (botan_pubkey_ecc_key_used_explicit_encoding(key))
+ {
+ botan_pubkey_destroy(key);
+ return NULL;
+ }
+#endif
+
INIT(this,
.public = {
.key = {