diff options
| author | jsing <> | 2017-08-10 18:18:30 +0000 | 
|---|---|---|
| committer | jsing <> | 2017-08-10 18:18:30 +0000 | 
| commit | 52c5bafe628bfaf1072a7e4cd721523f818d1bcf (patch) | |
| tree | aa634cd28684f262545acd66044eaf7fc4201389 /src/lib/libtls/tls_internal.h | |
| parent | 00ac139b1155c95174a19ac02f30c3efc411ab1b (diff) | |
| download | openbsd-52c5bafe628bfaf1072a7e4cd721523f818d1bcf.tar.gz openbsd-52c5bafe628bfaf1072a7e4cd721523f818d1bcf.tar.bz2 openbsd-52c5bafe628bfaf1072a7e4cd721523f818d1bcf.zip | |
Add a tls_config_set_ecdhecurves() function to libtls, which allows the
names of the elliptic curves that may be used during client and server
key exchange to be specified.
This deprecates tls_config_set_ecdhecurve(), which could only be used to
specify a single supported curve.
ok beck@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libtls/tls_internal.h | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index 6079babccf..9e9443dbaf 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.63 2017/08/09 21:27:24 claudio Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.64 2017/08/10 18:18:30 jsing 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> | 
| @@ -33,6 +33,8 @@ __BEGIN_HIDDEN_DECLS | |||
| 33 | #define TLS_CIPHERS_LEGACY "HIGH:MEDIUM:!aNULL" | 33 | #define TLS_CIPHERS_LEGACY "HIGH:MEDIUM:!aNULL" | 
| 34 | #define TLS_CIPHERS_ALL "ALL:!aNULL:!eNULL" | 34 | #define TLS_CIPHERS_ALL "ALL:!aNULL:!eNULL" | 
| 35 | 35 | ||
| 36 | #define TLS_ECDHE_CURVES "X25519,P-256,P-384" | ||
| 37 | |||
| 36 | union tls_addr { | 38 | union tls_addr { | 
| 37 | struct in_addr ip4; | 39 | struct in_addr ip4; | 
| 38 | struct in6_addr ip6; | 40 | struct in6_addr ip6; | 
| @@ -87,7 +89,8 @@ struct tls_config { | |||
| 87 | char *crl_mem; | 89 | char *crl_mem; | 
| 88 | size_t crl_len; | 90 | size_t crl_len; | 
| 89 | int dheparams; | 91 | int dheparams; | 
| 90 | int ecdhecurve; | 92 | int *ecdhecurves; | 
| 93 | size_t ecdhecurves_len; | ||
| 91 | struct tls_keypair *keypair; | 94 | struct tls_keypair *keypair; | 
| 92 | int ocsp_require_stapling; | 95 | int ocsp_require_stapling; | 
| 93 | uint32_t protocols; | 96 | uint32_t protocols; | 
