summaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-14 12:54:45 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-14 12:54:45 +0000
commit4c623cddbeaefc7267cf90aa0348e89ee4c45e9e (patch)
tree1f9e5eca9e8c03e74708a91a83b3a47f314801ec /apps/req.c
parent8d207ee3d1f52dbd96e0a14693cba3bb3e436af8 (diff)
add -sigopt option to ca utility
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c
index 37670a07ce..85526581ce 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -1819,3 +1819,18 @@ int do_X509_REQ_sign(BIO *err, X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md,
}
+
+int do_X509_CRL_sign(BIO *err, X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md,
+ STACK_OF(OPENSSL_STRING) *sigopts)
+ {
+ int rv;
+ EVP_MD_CTX mctx;
+ EVP_MD_CTX_init(&mctx);
+ rv = do_sign_init(err, &mctx, pkey, md, sigopts);
+ if (rv > 0)
+ rv = X509_CRL_sign_ctx(x, &mctx);
+ EVP_MD_CTX_cleanup(&mctx);
+ return rv > 0 ? 1 : 0;
+ }
+
+