diff options
author | 2015-01-30 14:25:37 +0000 | |
---|---|---|
committer | 2015-01-30 14:25:37 +0000 | |
commit | f30b95a1589543bc23a1a0f919ae305bd485cd12 (patch) | |
tree | 1522f113eb3fe6b4d68486bfa5a5d9a851ba9e5b /lib/libtls/tls_client.c | |
parent | Tweak error message to say 'realloc' since that's what's failing, (diff) | |
download | wireguard-openbsd-f30b95a1589543bc23a1a0f919ae305bd485cd12.tar.xz wireguard-openbsd-f30b95a1589543bc23a1a0f919ae305bd485cd12.zip |
Make the TLS connect and accept error messages consistent.
OK jsing@
Diffstat (limited to 'lib/libtls/tls_client.c')
-rw-r--r-- | lib/libtls/tls_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls_client.c b/lib/libtls/tls_client.c index 4a9a4c976d8..d9354c3140d 100644 --- a/lib/libtls/tls_client.c +++ b/lib/libtls/tls_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_client.c,v 1.9 2015/01/22 09:16:24 reyk Exp $ */ +/* $OpenBSD: tls_client.c,v 1.10 2015/01/30 14:25:37 bluhm Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -225,7 +225,7 @@ tls_connect_fds(struct tls *ctx, int fd_read, int fd_write, ctx->flags |= TLS_CONNECTING; return (TLS_WRITE_AGAIN); default: - tls_set_error(ctx, "SSL connect failed: %i", ssl_err); + tls_set_error(ctx, "TLS connect failed (%i)", ssl_err); goto err; } } |