summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r--src/lib/libtls/tls_internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index d767c37494..58834c999f 100644
--- a/src/lib/libtls/tls_internal.h
+++ b/src/lib/libtls/tls_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_internal.h,v 1.15 2015/09/08 15:29:34 jsing Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.16 2015/09/09 19:23:04 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> 3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -42,6 +42,7 @@ struct tls_config {
42 size_t key_len; 42 size_t key_len;
43 uint32_t protocols; 43 uint32_t protocols;
44 int verify_cert; 44 int verify_cert;
45 int verify_client;
45 int verify_depth; 46 int verify_depth;
46 int verify_name; 47 int verify_name;
47}; 48};
@@ -70,9 +71,10 @@ struct tls *tls_new(void);
70struct tls *tls_server_conn(struct tls *ctx); 71struct tls *tls_server_conn(struct tls *ctx);
71 72
72int tls_check_servername(struct tls *ctx, X509 *cert, const char *servername); 73int tls_check_servername(struct tls *ctx, X509 *cert, const char *servername);
73int tls_configure_keypair(struct tls *ctx); 74int tls_configure_keypair(struct tls *ctx, int);
74int tls_configure_server(struct tls *ctx); 75int tls_configure_server(struct tls *ctx);
75int tls_configure_ssl(struct tls *ctx); 76int tls_configure_ssl(struct tls *ctx);
77int tls_configure_ssl_verify(struct tls *ctx, int verify);
76int tls_host_port(const char *hostport, char **host, char **port); 78int tls_host_port(const char *hostport, char **host, char **port);
77int tls_set_error(struct tls *ctx, const char *fmt, ...) 79int tls_set_error(struct tls *ctx, const char *fmt, ...)
78 __attribute__((__format__ (printf, 2, 3))) 80 __attribute__((__format__ (printf, 2, 3)))