rsa_get_internal
};
+#ifdef HAVE_OPENSSL
+
static int
ecdsa_private_key2SPKI(hx509_context context,
hx509_private_key private_key,
ecdsa_get_internal
};
+#endif /* HAVE_OPENSSL */
/*
*
static struct hx509_private_key_ops *private_algs[] = {
&rsa_private_key_ops,
+#ifdef HAVE_OPENSSL
&ecdsa_private_key_ops,
+#endif
NULL
};
if ((*key)->ops && der_heim_oid_cmp((*key)->ops->key_oid, &asn1_oid_id_pkcs1_rsaEncryption) == 0) {
if ((*key)->private_key.rsa)
RSA_free((*key)->private_key.rsa);
+#ifdef HAVE_OPENSSL
} else if ((*key)->ops && der_heim_oid_cmp((*key)->ops->key_oid, &asn1_oid_id_ecPublicKey) == 0) {
if ((*key)->private_key.ecdsa)
EC_KEY_free((*key)->private_key.ecdsa);
+#endif
}
(*key)->private_key.rsa = NULL;
free(*key);