Add support for default public key digest type ctrl.
[openssl.git] / crypto / ec / ec_ameth.c
index 12b85b6..ba61164 100644 (file)
@@ -586,6 +586,10 @@ static int ec_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;