From 1a38ececbc4737bfb7996d4c0f879c9872e9930b Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 7 Feb 2015 06:19:26 +0000 Subject: 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@ --- src/lib/libtls/tls.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libtls/tls.h') 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 @@ -/* $OpenBSD: tls.h,v 1.3 2015/01/22 09:16:24 reyk Exp $ */ +/* $OpenBSD: tls.h,v 1.4 2015/02/07 06:19:26 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -48,7 +48,8 @@ int tls_config_set_cert_file(struct tls_config *config, const char *cert_file); int tls_config_set_cert_mem(struct tls_config *config, const uint8_t *cert, size_t len); int tls_config_set_ciphers(struct tls_config *config, const char *ciphers); -int tls_config_set_ecdhcurve(struct tls_config *config, const char *name); +int tls_config_set_dheparams(struct tls_config *config, const char *params); +int tls_config_set_ecdhecurve(struct tls_config *config, const char *name); int tls_config_set_key_file(struct tls_config *config, const char *key_file); int tls_config_set_key_mem(struct tls_config *config, const uint8_t *key, size_t len); -- cgit v1.2.3-55-g6feb