ECPublicKey_set_octet_string and ECPublicKey_get_octet_string
[openssl.git] / crypto / asn1 / i2d_pu.c
index 85220b44d6861c4db2c05b828986060e4e36c895..44f186442e71cda969493ed545626544f18d9e7d 100644 (file)
@@ -85,7 +85,7 @@ int i2d_PublicKey(EVP_PKEY *a, unsigned char **pp)
 #endif
 #ifndef OPENSSL_NO_EC
        case EVP_PKEY_EC:
-               return(ECPublicKey_get_octet_string(a->pkey.eckey, pp));
+               return(i2o_ECPublicKey(a->pkey.eckey, pp));
 #endif
        default:
                ASN1err(ASN1_F_I2D_PUBLICKEY,ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE);