diff options
| author | beck <> | 2015-09-09 19:23:04 +0000 |
|---|---|---|
| committer | beck <> | 2015-09-09 19:23:04 +0000 |
| commit | cc008b2d6bedfbbad46502f4d5ac035f96f3a623 (patch) | |
| tree | 54b585991caa7fede927175ee5ff75d793342b8f /src/lib/libtls/tls_internal.h | |
| parent | 8e3f7ae09db7a69fa93309c91e8f6b29f5bf53db (diff) | |
| download | openbsd-cc008b2d6bedfbbad46502f4d5ac035f96f3a623.tar.gz openbsd-cc008b2d6bedfbbad46502f4d5ac035f96f3a623.tar.bz2 openbsd-cc008b2d6bedfbbad46502f4d5ac035f96f3a623.zip | |
Add client certificate support. Still needs a few tweaks but this will
ride upcoming minor bump
ok jsing@
Diffstat (limited to '')
| -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))) |
