diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-26 12:37:12 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-08-04 09:17:47 +0200 |
commit | 8f7e897995ae49546ab94a6969e85d797ac6c486 (patch) | |
tree | 1393a237ded9fcaf13ebbe6f3b50c6b3b43ef529 /apps/cmp.c | |
parent | b5b6669fb63702233124c8fd5504e8477e559d07 (diff) |
apps/cmp.c: Defer diagnostic output on server+proxy to be contacted
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12296)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r-- | apps/cmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/cmp.c b/apps/cmp.c index e5f72cbea7..1af53510b3 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -2095,7 +2095,6 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) if (opt_proxy != NULL) (void)BIO_snprintf(proxy_buf, sizeof(proxy_buf), " via %s", opt_proxy); - CMP_info2("will contact %s%s", server_buf, proxy_buf); if (!transform_opts()) goto err; @@ -2217,6 +2216,9 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) if (opt_geninfo != NULL && !handle_opt_geninfo(ctx)) goto err; + /* not printing earlier, to minimize confusion in case setup fails before */ + CMP_info2("will contact %s%s", server_buf, proxy_buf); + ret = 1; err: |