diff options
author | jsing <> | 2015-02-07 06:19:26 +0000 |
---|---|---|
committer | jsing <> | 2015-02-07 06:19:26 +0000 |
commit | 1a38ececbc4737bfb7996d4c0f879c9872e9930b (patch) | |
tree | 4574673a0c17d6f4e774e9685f9dde91409dc24b /src/lib/libtls/tls.h | |
parent | 4d71037d26a6de59efacc048b6d8eaef040cf31f (diff) | |
download | openbsd-1a38ececbc4737bfb7996d4c0f879c9872e9930b.tar.gz openbsd-1a38ececbc4737bfb7996d4c0f879c9872e9930b.tar.bz2 openbsd-1a38ececbc4737bfb7996d4c0f879c9872e9930b.zip |
Add tls_config_set_dheparams() to allow specification of the parameters to
use for DHE. This enables the use of DHE cipher suites.
Rename tls_config_set_ecdhcurve() to tls_config_set_ecdhecurve() since it
is only used to specify the curve for ephemeral ECDH.
Discussed with reyk@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r-- | src/lib/libtls/tls.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 8dcf125765..20e5b46901 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.3 2015/01/22 09:16:24 reyk Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.4 2015/02/07 06:19:26 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -48,7 +48,8 @@ int tls_config_set_cert_file(struct tls_config *config, const char *cert_file); | |||
48 | int tls_config_set_cert_mem(struct tls_config *config, const uint8_t *cert, | 48 | int tls_config_set_cert_mem(struct tls_config *config, const uint8_t *cert, |
49 | size_t len); | 49 | size_t len); |
50 | int tls_config_set_ciphers(struct tls_config *config, const char *ciphers); | 50 | int tls_config_set_ciphers(struct tls_config *config, const char *ciphers); |
51 | int tls_config_set_ecdhcurve(struct tls_config *config, const char *name); | 51 | int tls_config_set_dheparams(struct tls_config *config, const char *params); |
52 | int tls_config_set_ecdhecurve(struct tls_config *config, const char *name); | ||
52 | int tls_config_set_key_file(struct tls_config *config, const char *key_file); | 53 | int tls_config_set_key_file(struct tls_config *config, const char *key_file); |
53 | int tls_config_set_key_mem(struct tls_config *config, const uint8_t *key, | 54 | int tls_config_set_key_mem(struct tls_config *config, const uint8_t *key, |
54 | size_t len); | 55 | size_t len); |