summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_ameth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/ec/ec_ameth.c')
-rw-r--r--crypto/ec/ec_ameth.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/ec/ec_ameth.c b/crypto/ec/ec_ameth.c
index c7fbaeab5e..9ca023bbe3 100644
--- a/crypto/ec/ec_ameth.c
+++ b/crypto/ec/ec_ameth.c
@@ -498,13 +498,6 @@ int ec_pkey_export_to(const EVP_PKEY *from, void *to_keydata,
|| (ecg = EC_KEY_get0_group(eckey)) == NULL)
return 0;
- /*
- * If the EC_KEY method is foreign, then we can't be sure of anything,
- * and can therefore not export or pretend to export.
- */
- if (EC_KEY_get_method(eckey) != EC_KEY_OpenSSL())
- return 0;
-
tmpl = OSSL_PARAM_BLD_new();
if (tmpl == NULL)
return 0;