diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-01-12 10:54:50 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-10 18:35:38 +0100 |
commit | 30b9a6ec89d97152b5a564b3acf3a94ee57185a7 (patch) | |
tree | e3253c70f059a25b6effd9d254d2903e8ecd90db /apps/cmp.c | |
parent | e5a054b7fcafc98a1dbf4358da390dc6e7759de5 (diff) | |
download | openssl-new-30b9a6ec89d97152b5a564b3acf3a94ee57185a7.tar.gz |
CMP app and app_http_tls_cb(): pick the right TLS hostname (also without port)
Fixes #20031
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20034)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r-- | apps/cmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cmp.c b/apps/cmp.c index 6cd3d7e7c0..bfbfa9ce8a 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -1952,7 +1952,7 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) if ((info = OPENSSL_zalloc(sizeof(*info))) == NULL) goto err; (void)OSSL_CMP_CTX_set_http_cb_arg(ctx, info); - info->server = opt_server; + info->server = host; info->port = server_port; /* workaround for callback design flaw, see #17088: */ info->use_proxy = proxy_host != NULL; |