diff options
author | beck <> | 2014-04-14 18:53:14 +0000 |
---|---|---|
committer | beck <> | 2014-04-14 18:53:14 +0000 |
commit | 715a2c58fe812af3f07885ee27a3fc208e84c5ce (patch) | |
tree | 832550e82afe0db5c3fc97737827638ec3ed0b7f /src/lib/libssl/src/ssl/ssltest.c | |
parent | 95635d69892027aae43126c720bdf465c55b75b4 (diff) | |
download | openbsd-715a2c58fe812af3f07885ee27a3fc208e84c5ce.tar.gz openbsd-715a2c58fe812af3f07885ee27a3fc208e84c5ce.tar.bz2 openbsd-715a2c58fe812af3f07885ee27a3fc208e84c5ce.zip |
Flense all use of BIO_snprintf from ssl source - use the real one instead,
and allow for the normal posix mandated return values instead of the
nonstandard one from BIO_snprintf.
ok miod@
Diffstat (limited to 'src/lib/libssl/src/ssl/ssltest.c')
-rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index 269d171615..664147cb6a 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
@@ -1820,8 +1820,8 @@ process_proxy_debug(int indent, const char *format, ...) | |||
1820 | char my_format[256]; | 1820 | char my_format[256]; |
1821 | va_list args; | 1821 | va_list args; |
1822 | 1822 | ||
1823 | BIO_snprintf(my_format, sizeof(my_format), "%*.*s %s", | 1823 | (void) snprintf(my_format, sizeof(my_format), "%*.*s %s", |
1824 | indent, indent, indentation, format); | 1824 | indent, indent, indentation, format); |
1825 | 1825 | ||
1826 | va_start(args, format); | 1826 | va_start(args, format); |
1827 | vfprintf(stderr, my_format, args); | 1827 | vfprintf(stderr, my_format, args); |
@@ -2311,8 +2311,8 @@ psk_client_callback(SSL *ssl, const char *hint, char *identity, | |||
2311 | int ret; | 2311 | int ret; |
2312 | unsigned int psk_len = 0; | 2312 | unsigned int psk_len = 0; |
2313 | 2313 | ||
2314 | ret = BIO_snprintf(identity, max_identity_len, "Client_identity"); | 2314 | ret = snprintf(identity, max_identity_len, "Client_identity"); |
2315 | if (ret < 0) | 2315 | if (ret >= max_identity_len || ret == -1) |
2316 | goto out_err; | 2316 | goto out_err; |
2317 | if (debug) | 2317 | if (debug) |
2318 | fprintf(stderr, "client: created identity '%s' len=%d\n", identity, ret); | 2318 | fprintf(stderr, "client: created identity '%s' len=%d\n", identity, ret); |