summaryrefslogtreecommitdiff
path: root/lib/libtls/tls.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-02-07 06:19:27 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-02-07 06:19:27 +0000
commit9eb904175e3fac9b2a5933426135b9b864751f9f (patch)
tree02cfc70fdfe6f251d32a0957befcd00236ad33e9 /lib/libtls/tls.h
parent111af29fe6a6dd57947b3a36d5abf69456075553 (diff)
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 'lib/libtls/tls.h')
-rw-r--r--lib/libtls/tls.h5
1 files changed, 3 insertions, 2 deletions
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 <jsing@openbsd.org>
*
@@ -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);