Initialize old_priv_encode, old_priv_decode.
[openssl.git] / crypto / asn1 / ameth_lib.c
index a96f1ab28916b2d21ee0fbb4ec571ee09ab07e16..5a3132ab034bdbd8f661d85f2fdf944039212893 100644 (file)
@@ -309,6 +309,9 @@ EVP_PKEY_ASN1_METHOD* EVP_PKEY_asn1_new(int id, int flags,
        ameth->priv_encode = 0;
        ameth->priv_print = 0;
 
        ameth->priv_encode = 0;
        ameth->priv_print = 0;
 
+       ameth->old_priv_encode = 0;
+       ameth->old_priv_decode = 0;
+
        ameth->pkey_size = 0;
        ameth->pkey_bits = 0;
 
        ameth->pkey_size = 0;
        ameth->pkey_bits = 0;