diff options
author | 2015-09-08 15:29:34 +0000 | |
---|---|---|
committer | 2015-09-08 15:29:34 +0000 | |
commit | abc69f3cdce1ff584b6cebd5b8c5729d9ba62a74 (patch) | |
tree | 70cc6eefe31029be652075b517afee6beb604416 /lib | |
parent | Avoid a SIGSEGV with FGJ malloc.conf flags when a template is used. (diff) | |
download | wireguard-openbsd-abc69f3cdce1ff584b6cebd5b8c5729d9ba62a74.tar.xz wireguard-openbsd-abc69f3cdce1ff584b6cebd5b8c5729d9ba62a74.zip |
Remove the default HTTPS port from tls_connect() - this is a TLS library,
not a HTTPS library.
ok beck@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtls/tls_client.c | 8 | ||||
-rw-r--r-- | lib/libtls/tls_internal.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libtls/tls_client.c b/lib/libtls/tls_client.c index 168a7089fca..55fb49ff782 100644 --- a/lib/libtls/tls_client.c +++ b/lib/libtls/tls_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_client.c,v 1.21 2015/08/27 15:26:50 jsing Exp $ */ +/* $OpenBSD: tls_client.c,v 1.22 2015/09/08 15:29:34 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -114,8 +114,10 @@ tls_connect_servername(struct tls *ctx, const char *host, const char *port, tls_set_errorx(ctx, "memory allocation failure"); goto err; } - if (ret != 0) - port = HTTPS_PORT; + if (ret != 0) { + tls_set_errorx(ctx, "no port provided"); + goto err; + } } h = (hs != NULL) ? hs : host; diff --git a/lib/libtls/tls_internal.h b/lib/libtls/tls_internal.h index 4503c20ab7e..d767c374941 100644 --- a/lib/libtls/tls_internal.h +++ b/lib/libtls/tls_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_internal.h,v 1.14 2015/08/27 15:26:50 jsing Exp $ */ +/* $OpenBSD: tls_internal.h,v 1.15 2015/09/08 15:29:34 jsing Exp $ */ /* * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> @@ -21,8 +21,6 @@ #include <openssl/ssl.h> -#define HTTPS_PORT "443" - #define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" #define TLS_CIPHERS_COMPAT "ALL:!aNULL:!eNULL" |