Fixes tests when built against an OpenSSL configured with no-ec.
static int
pack_key_ecdsa(struct sk_enroll_response *response)
{
+#ifdef OPENSSL_HAS_ECC
EC_KEY *key = NULL;
const EC_GROUP *g;
const EC_POINT *q;
BIO_free(bio);
EC_KEY_free(key);
return ret;
+#else
+ return -1;
+#endif
}
static int
const uint8_t *key_handle, size_t key_handle_len,
struct sk_sign_response *response)
{
+#ifdef OPENSSL_HAS_ECC
ECDSA_SIG *sig = NULL;
const BIGNUM *sig_r, *sig_s;
int ret = -1;
EC_KEY_free(ec);
EVP_PKEY_free(pk);
return ret;
+#else
+ return -1;
+#endif
}
static int