diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-06-11 17:41:03 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-10-10 20:36:06 +0200 |
commit | ac0677bd2394c04632f7ad526879a866b6ed149f (patch) | |
tree | f39848852a495281b10e6ac0f4e2932e23aa9390 /apps/cmp.c | |
parent | 2f768882e06eb460895ec4836e405e203ed90663 (diff) |
CMP: fix OSSL_CMP_MSG_http_perform() by adding option OSSL_CMP_OPT_USE_TLS
Fixes #21120
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21176)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r-- | apps/cmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/cmp.c b/apps/cmp.c index 911d94c198..dd5a69af7c 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -1945,6 +1945,8 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) CMP_warn("assuming -tls_used since -server URL indicates HTTPS"); opt_tls_used = 1; } + if (!OSSL_CMP_CTX_set_option(ctx, OSSL_CMP_OPT_USE_TLS, opt_tls_used)) + goto err; BIO_snprintf(server_port, sizeof(server_port), "%s", port); if (opt_path == NULL) |