From 9eb904175e3fac9b2a5933426135b9b864751f9f Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sat, 7 Feb 2015 06:19:27 +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@ --- lib/libtls/tls.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libtls/tls.h') diff --git a/lib/libtls/tls.h b/lib/libtls/tls.h index 8dcf1257654..20e5b469019 100644 --- a/lib/libtls/tls.h +++ b/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