diff options
author | beck <> | 2015-09-09 19:23:04 +0000 |
---|---|---|
committer | beck <> | 2015-09-09 19:23:04 +0000 |
commit | 869b2e79c9ff30e6144dddc6562522a90c73bb14 (patch) | |
tree | 54b585991caa7fede927175ee5ff75d793342b8f /src/lib/libtls/tls_internal.h | |
parent | 4a79aa2cb1398f29f4fe23724a6ad3e4ba8e3b94 (diff) | |
download | openbsd-869b2e79c9ff30e6144dddc6562522a90c73bb14.tar.gz openbsd-869b2e79c9ff30e6144dddc6562522a90c73bb14.tar.bz2 openbsd-869b2e79c9ff30e6144dddc6562522a90c73bb14.zip |
Add client certificate support. Still needs a few tweaks but this will
ride upcoming minor bump
ok jsing@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r-- | src/lib/libtls/tls_internal.h | 6 |
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); | |||
70 | struct tls *tls_server_conn(struct tls *ctx); | 71 | struct tls *tls_server_conn(struct tls *ctx); |
71 | 72 | ||
72 | int tls_check_servername(struct tls *ctx, X509 *cert, const char *servername); | 73 | int tls_check_servername(struct tls *ctx, X509 *cert, const char *servername); |
73 | int tls_configure_keypair(struct tls *ctx); | 74 | int tls_configure_keypair(struct tls *ctx, int); |
74 | int tls_configure_server(struct tls *ctx); | 75 | int tls_configure_server(struct tls *ctx); |
75 | int tls_configure_ssl(struct tls *ctx); | 76 | int tls_configure_ssl(struct tls *ctx); |
77 | int tls_configure_ssl_verify(struct tls *ctx, int verify); | ||
76 | int tls_host_port(const char *hostport, char **host, char **port); | 78 | int tls_host_port(const char *hostport, char **host, char **port); |
77 | int tls_set_error(struct tls *ctx, const char *fmt, ...) | 79 | int tls_set_error(struct tls *ctx, const char *fmt, ...) |
78 | __attribute__((__format__ (printf, 2, 3))) | 80 | __attribute__((__format__ (printf, 2, 3))) |