summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-01-22 14:27:25 +0000
committerMatt Caswell <matt@openssl.org>2019-01-24 13:54:52 +0000
commit0b53fe1cdc24a3dce450e77db6895a0243ddcb26 (patch)
tree2c53d41044d61d009e51c0c2c25aef0d65ce7d8b /apps
parentbcc1f3e2baa9caa83a0a94bd19fb37488ef3ee57 (diff)
Fix s_client so that it builds on Windows
Fixes #8050 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8065)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index d788b89dee..9705c4c56e 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -2360,9 +2360,11 @@ int s_client_main(int argc, char **argv)
if (proxypass != NULL)
l += strlen(proxypass);
proxyauth = app_malloc(l + 2, "Proxy auth string");
- snprintf(proxyauth, l + 2, "%s:%s", proxyuser, (proxypass != NULL) ? proxypass : "");
+ BIO_snprintf(proxyauth, l + 2, "%s:%s", proxyuser,
+ (proxypass != NULL) ? proxypass : "");
proxyauthenc = base64encode(proxyauth, strlen(proxyauth));
- BIO_printf(fbio, "Proxy-Authorization: Basic %s\r\n", proxyauthenc);
+ BIO_printf(fbio, "Proxy-Authorization: Basic %s\r\n",
+ proxyauthenc);
OPENSSL_clear_free(proxyauth, strlen(proxyauth));
OPENSSL_clear_free(proxyauthenc, strlen(proxyauthenc));
}