Use more flexible method of determining output length, by setting &outlen
[openssl.git] / crypto / dsa / dsa_pmeth.c
index 364ba15a12c98915a1c845e637b0d8ec3855d0e3..711a68f6bdd020ab895f5bd51c44b01feaa15947 100644 (file)
@@ -221,7 +221,7 @@ static int pkey_dsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
 const EVP_PKEY_METHOD dsa_pkey_meth = 
        {
        EVP_PKEY_DSA,
-       0,
+       EVP_PKEY_FLAG_AUTOARGLEN,
        pkey_dsa_init,
        pkey_dsa_cleanup,
 
@@ -245,6 +245,8 @@ const EVP_PKEY_METHOD dsa_pkey_meth =
 
        0,0,
 
+       0,0,
+
        pkey_dsa_ctrl,
        pkey_dsa_ctrl_str