Add support for default public key digest type ctrl.
[openssl.git] / crypto / dsa / dsa_ameth.c
index 3178bac..e221fad 100644 (file)
@@ -544,6 +544,10 @@ static int dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
                        }
                return 1;
 
+               case ASN1_PKEY_CTRL_DEFAULT_MD_NID:
+               *(int *)arg2 = NID_sha1;
+               return 2;
+
                default:
                return -2;