summaryrefslogtreecommitdiffstats
path: root/crypto/evp/pmeth_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-04-09 21:24:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-04-09 21:24:48 +0000
commit75d44c0452e8807dcd9dd126390dd8df35c57efa (patch)
treeac28208d2d3dc38b2eab15bae118af8cde81d098 /crypto/evp/pmeth_lib.c
parenta58a6368383d55ab35ad4f4cdcb0f54310e7fd32 (diff)
Store digests as EVP_MD instead of a NID.
Add digest size sanity checks.
Diffstat (limited to 'crypto/evp/pmeth_lib.c')
-rw-r--r--crypto/evp/pmeth_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c
index a705901c70..a76e88b805 100644
--- a/crypto/evp/pmeth_lib.c
+++ b/crypto/evp/pmeth_lib.c
@@ -187,8 +187,8 @@ int EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx,
EVPerr(EVP_F_EVP_PKEY_CTX_CTRL, EVP_R_INVALID_DIGEST);
return 0;
}
- return EVP_PKEY_CTX_ctrl(ctx, -1, -1, EVP_PKEY_CTRL_MD_NID,
- EVP_MD_type(md), NULL);
+ return EVP_PKEY_CTX_ctrl(ctx, -1, -1, EVP_PKEY_CTRL_MD,
+ 0, (void *)md);
}
return ctx->pmeth->ctrl_str(ctx, name, value);
}