diff options
author | jsing <> | 2015-09-10 09:10:42 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 09:10:42 +0000 |
commit | bb55b96be5873414f5139ee6f86706b2f219123a (patch) | |
tree | 7e607278f29d9ff6cd6a4157a2b2362498680e58 /src/lib/libtls/tls.h | |
parent | f4a4d0ccce6152a6e48d345c33b3db9dbdaad529 (diff) | |
download | openbsd-bb55b96be5873414f5139ee6f86706b2f219123a.tar.gz openbsd-bb55b96be5873414f5139ee6f86706b2f219123a.tar.bz2 openbsd-bb55b96be5873414f5139ee6f86706b2f219123a.zip |
Add support for preferring the server's cipher list or the client's cipher
list. Prefer the server's cipher list by default.
Based on a diff from Kyle Thompson <jmp at giga dot moe>.
ok beck@ bcook@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r-- | src/lib/libtls/tls.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 1a6257232c..579a97798e 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.14 2015/09/09 19:23:04 beck Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.15 2015/09/10 09:10:42 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -66,8 +66,8 @@ int tls_config_set_key_mem(struct tls_config *_config, const uint8_t *_key, | |||
66 | void tls_config_set_protocols(struct tls_config *_config, uint32_t _protocols); | 66 | void tls_config_set_protocols(struct tls_config *_config, uint32_t _protocols); |
67 | void tls_config_set_verify_depth(struct tls_config *_config, int _verify_depth); | 67 | void tls_config_set_verify_depth(struct tls_config *_config, int _verify_depth); |
68 | 68 | ||
69 | void tls_config_clear_keys(struct tls_config *_config); | 69 | void tls_config_prefer_ciphers_client(struct tls_config *_config); |
70 | int tls_config_parse_protocols(uint32_t *_protocols, const char *_protostr); | 70 | void tls_config_prefer_ciphers_server(struct tls_config *_config); |
71 | 71 | ||
72 | void tls_config_insecure_noverifycert(struct tls_config *_config); | 72 | void tls_config_insecure_noverifycert(struct tls_config *_config); |
73 | void tls_config_insecure_noverifyname(struct tls_config *_config); | 73 | void tls_config_insecure_noverifyname(struct tls_config *_config); |
@@ -76,6 +76,9 @@ void tls_config_verify(struct tls_config *_config); | |||
76 | void tls_config_verify_client(struct tls_config *_config); | 76 | void tls_config_verify_client(struct tls_config *_config); |
77 | void tls_config_verify_client_optional(struct tls_config *_config); | 77 | void tls_config_verify_client_optional(struct tls_config *_config); |
78 | 78 | ||
79 | void tls_config_clear_keys(struct tls_config *_config); | ||
80 | int tls_config_parse_protocols(uint32_t *_protocols, const char *_protostr); | ||
81 | |||
79 | struct tls *tls_client(void); | 82 | struct tls *tls_client(void); |
80 | struct tls *tls_server(void); | 83 | struct tls *tls_server(void); |
81 | int tls_configure(struct tls *_ctx, struct tls_config *_config); | 84 | int tls_configure(struct tls *_ctx, struct tls_config *_config); |