Indicate support for digest init ctrl.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 2 May 2008 11:24:40 +0000 (11:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 2 May 2008 11:24:40 +0000 (11:24 +0000)
crypto/dsa/dsa_pmeth.c
crypto/ec/ec_pmeth.c
crypto/rsa/rsa_pmeth.c

index 3f7638c803b7f144b4b9531df43c70a169a7f71b..18b57aab79f4dc58d10c332f4b2784efc1ceeba1 100644 (file)
@@ -195,6 +195,7 @@ 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;
index 6c986110b845dc81ec0dd70f8dd54c7b31db96bb..2aadd4a8f5ca0c441abdc480956a7e046c05a29e 100644 (file)
@@ -234,6 +234,7 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
 
                case EVP_PKEY_CTRL_PEER_KEY:
                /* Default behaviour is OK */
+               case EVP_PKEY_CTRL_DIGESTINIT:
                case EVP_PKEY_CTRL_PKCS7_SIGN:
                case EVP_PKEY_CTRL_CMS_SIGN:
                return 1;
index 9dd0d4c7c708faac0527cf170b2d81a0626a860d..c6710191e4c75ae6ac7ddb276163bc7ebb38770b 100644 (file)
@@ -433,6 +433,7 @@ static int pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
                rctx->md = p2;
                return 1;
 
+               case EVP_PKEY_CTRL_DIGESTINIT:
                case EVP_PKEY_CTRL_PKCS7_ENCRYPT:
                case EVP_PKEY_CTRL_PKCS7_DECRYPT:
                case EVP_PKEY_CTRL_PKCS7_SIGN: