get rid of EVP_PKEY_ECDSA (now we have EVP_PKEY_EC instead)
[openssl.git] / crypto / x509 / x509type.c
index 7673c1b..8eaf102 100644 (file)
@@ -86,8 +86,8 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
        case EVP_PKEY_DSA:
                ret=EVP_PK_DSA|EVP_PKT_SIGN;
                break;
-       case EVP_PKEY_ECDSA:
-               ret=EVP_PK_ECDSA|EVP_PKT_SIGN;
+       case EVP_PKEY_EC:
+               ret=EVP_PK_EC|EVP_PKT_SIGN|EVP_PKT_EXCH;
                break;
        case EVP_PKEY_DH:
                ret=EVP_PK_DH|EVP_PKT_EXCH;
@@ -105,8 +105,8 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
        case EVP_PKS_DSA:
                ret|=EVP_PKS_DSA;
                break;
-       case EVP_PKS_ECDSA:
-               ret|=EVP_PKS_ECDSA;
+       case EVP_PKS_EC:
+               ret|=EVP_PKS_EC;
                break;
        default:
                break;