Indicate support for digest init ctrl.
[openssl.git] / crypto / dsa / dsa_pmeth.c
index 646ef3f0939d6afc76c609f37d1311da5f2a8729..18b57aab79f4dc58d10c332f4b2784efc1ceeba1 100644 (file)
@@ -60,6 +60,7 @@
 #include <openssl/asn1t.h>
 #include <openssl/x509.h>
 #include <openssl/evp.h>
+#include <openssl/bn.h>
 #include "evp_locl.h"
 #include "dsa_locl.h"
 
@@ -194,7 +195,9 @@ static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
                dctx->md = p2;
                return 1;
 
+               case EVP_PKEY_CTRL_DIGESTINIT:
                case EVP_PKEY_CTRL_PKCS7_SIGN:
+               case EVP_PKEY_CTRL_CMS_SIGN:
                return 1;
                
                case EVP_PKEY_CTRL_PEER_KEY: