diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-05-02 11:24:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-05-02 11:24:40 +0000 |
commit | 156ee88285495440563967a0a1032648e586cf71 (patch) | |
tree | c7fd8a30e863b03b20ff8617c6328cced330f7aa | |
parent | c386f8ac38de50e219fd75ae72779f6a8e6412b1 (diff) |
Indicate support for digest init ctrl.
-rw-r--r-- | crypto/dsa/dsa_pmeth.c | 1 | ||||
-rw-r--r-- | crypto/ec/ec_pmeth.c | 1 | ||||
-rw-r--r-- | crypto/rsa/rsa_pmeth.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c index 3f7638c803..18b57aab79 100644 --- a/crypto/dsa/dsa_pmeth.c +++ b/crypto/dsa/dsa_pmeth.c @@ -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; diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c index 6c986110b8..2aadd4a8f5 100644 --- a/crypto/ec/ec_pmeth.c +++ b/crypto/ec/ec_pmeth.c @@ -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; diff --git a/crypto/rsa/rsa_pmeth.c b/crypto/rsa/rsa_pmeth.c index 9dd0d4c7c7..c6710191e4 100644 --- a/crypto/rsa/rsa_pmeth.c +++ b/crypto/rsa/rsa_pmeth.c @@ -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: |