The OpenBSD project has replaced the first implementation of the /dev/crypto
[oweals/openssl.git] / crypto / evp / p_lib.c
index ac0556b48808bd1e2cf6adfc6d200de48bcdb73a..c7a3dee108141fe81d3a9616da053f5b097e1eac 100644 (file)
@@ -117,7 +117,7 @@ int EVP_PKEY_size(EVP_PKEY *pkey)
                if (pkey->type == EVP_PKEY_DSA)
                return(DSA_size(pkey->pkey.dsa));
 #endif
-#ifndef OPENSSL_NO_EC
+#ifndef OPENSSL_NO_ECDSA
                if (pkey->type == EVP_PKEY_EC)
                return(ECDSA_size(pkey->pkey.eckey));
 #endif
@@ -137,8 +137,8 @@ int EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode)
                return(ret);
                }
 #endif
-#ifndef OPENSSL_NO_ECDSA
-       if (pkey->type == EVP_PKEY_ECDSA)
+#ifndef OPENSSL_NO_EC
+       if (pkey->type == EVP_PKEY_EC)
                {
                int ret = pkey->save_parameters;
 
@@ -182,7 +182,7 @@ int EVP_PKEY_copy_parameters(EVP_PKEY *to, EVP_PKEY *from)
                }
 #endif
 #ifndef OPENSSL_NO_EC
-       if (to->type == EVP_PKEY_ECDSA)
+       if (to->type == EVP_PKEY_EC)
                {
                if (to->pkey.eckey->group != NULL)
                        EC_GROUP_free(to->pkey.eckey->group);