diff options
author | Richard Levitte <levitte@openssl.org> | 2020-03-10 23:05:09 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-03-15 19:42:05 +0100 |
commit | aba9bca31cc2507671e25f7ca8e642fce5e38671 (patch) | |
tree | 1dcd6610e75b63febebb074923b58bd71dbb1c70 /apps/include | |
parent | 123c2fef14b80f26f5a8504ccf7b819c2975a6fa (diff) |
APPS: Add ctrl_str()-like functionality for X509 and X509_REQ
This should really be part of libcrypto, but since this looks like
added legacy support, it's preferable to keep it in apps for now.
This allows to build functions that add user given verification
options to X509 and X509_REQ structures.
Fixes #11293
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/11302)
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/apps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/include/apps.h b/apps/include/apps.h index 78be647619..ccafaef5f1 100644 --- a/apps/include/apps.h +++ b/apps/include/apps.h @@ -197,12 +197,16 @@ X509_NAME *parse_name(const char *str, long chtype, int multirdn); void policies_print(X509_STORE_CTX *ctx); int bio_to_mem(unsigned char **out, int maxlen, BIO *in); int pkey_ctrl_string(EVP_PKEY_CTX *ctx, const char *value); +int x509_ctrl_string(X509 *x, const char *value); +int x509_req_ctrl_string(X509_REQ *x, const char *value); int init_gen_str(EVP_PKEY_CTX **pctx, const char *algname, ENGINE *e, int do_param); int do_X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md, STACK_OF(OPENSSL_STRING) *sigopts); int do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md, STACK_OF(OPENSSL_STRING) *sigopts); +int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey, + STACK_OF(OPENSSL_STRING) *vfyopts); int do_X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md, STACK_OF(OPENSSL_STRING) *sigopts); |