summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
authorjsing <>2015-02-07 06:19:26 +0000
committerjsing <>2015-02-07 06:19:26 +0000
commit497cd6f0a725ed72f30fbe310fe0b2e7cb214019 (patch)
tree4574673a0c17d6f4e774e9685f9dde91409dc24b /src/lib/libtls/tls_internal.h
parent615aea0ff56ce257fc0cdc2310084d6bbd6ad4c6 (diff)
downloadopenbsd-497cd6f0a725ed72f30fbe310fe0b2e7cb214019.tar.gz
openbsd-497cd6f0a725ed72f30fbe310fe0b2e7cb214019.tar.bz2
openbsd-497cd6f0a725ed72f30fbe310fe0b2e7cb214019.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_internal.h')
-rw-r--r--src/lib/libtls/tls_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index 9a1a180e0b..18fcf539c3 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.7 2015/01/22 09:16:24 reyk Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.8 2015/02/07 06:19:26 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>
@@ -34,7 +34,8 @@ struct tls_config {
34 char *cert_mem; 34 char *cert_mem;
35 size_t cert_len; 35 size_t cert_len;
36 const char *ciphers; 36 const char *ciphers;
37 int ecdhcurve; 37 int dheparams;
38 int ecdhecurve;
38 const char *key_file; 39 const char *key_file;
39 char *key_mem; 40 char *key_mem;
40 size_t key_len; 41 size_t key_len;