summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls.h
diff options
context:
space:
mode:
authorjsing <>2015-02-11 06:46:33 +0000
committerjsing <>2015-02-11 06:46:33 +0000
commitc6f3fe1fbc8da2fa6de30b10f1f219ab1f809438 (patch)
tree6438c97ac6c93d27e53440f04e1fb34004f999b8 /src/lib/libtls/tls.h
parent01fabf00f34c0ca7466352b13f7071a4170301fc (diff)
downloadopenbsd-c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438.tar.gz
openbsd-c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438.tar.bz2
openbsd-c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438.zip
Be consistent with naming - only use "host" and "hostname" when referring
to an actual host and use "servername" when referring to the name of the TLS server that we expect to be indentified in the server certificate. Likewise, rename verify_host to verify_name and use the term "name" throughout the verification code (rather than host or hostname). Requested by and ok tedu@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r--src/lib/libtls/tls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h
index bd1eed559b..c266832c80 100644
--- a/src/lib/libtls/tls.h
+++ b/src/lib/libtls/tls.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.h,v 1.5 2015/02/07 23:25:37 reyk Exp $ */ 1/* $OpenBSD: tls.h,v 1.6 2015/02/11 06:46:33 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -70,8 +70,8 @@ void tls_free(struct tls *ctx);
70int tls_accept_socket(struct tls *ctx, struct tls **cctx, int socket); 70int tls_accept_socket(struct tls *ctx, struct tls **cctx, int socket);
71int tls_connect(struct tls *ctx, const char *host, const char *port); 71int tls_connect(struct tls *ctx, const char *host, const char *port);
72int tls_connect_fds(struct tls *ctx, int fd_read, int fd_write, 72int tls_connect_fds(struct tls *ctx, int fd_read, int fd_write,
73 const char *hostname); 73 const char *servername);
74int tls_connect_socket(struct tls *ctx, int s, const char *hostname); 74int tls_connect_socket(struct tls *ctx, int s, const char *servername);
75int tls_read(struct tls *ctx, void *buf, size_t buflen, size_t *outlen); 75int tls_read(struct tls *ctx, void *buf, size_t buflen, size_t *outlen);
76int tls_write(struct tls *ctx, const void *buf, size_t buflen, size_t *outlen); 76int tls_write(struct tls *ctx, const void *buf, size_t buflen, size_t *outlen);
77int tls_close(struct tls *ctx); 77int tls_close(struct tls *ctx);