summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls.h
diff options
context:
space:
mode:
authorjsing <>2017-08-10 18:18:30 +0000
committerjsing <>2017-08-10 18:18:30 +0000
commitae58363a3ade3f9016687060c0c4efe3702141f8 (patch)
treeaa634cd28684f262545acd66044eaf7fc4201389 /src/lib/libtls/tls.h
parentf6039d62295a1c6b1188b531731d233d196faf0d (diff)
downloadopenbsd-ae58363a3ade3f9016687060c0c4efe3702141f8.tar.gz
openbsd-ae58363a3ade3f9016687060c0c4efe3702141f8.tar.bz2
openbsd-ae58363a3ade3f9016687060c0c4efe3702141f8.zip
Add a tls_config_set_ecdhecurves() function to libtls, which allows the
names of the elliptic curves that may be used during client and server key exchange to be specified. This deprecates tls_config_set_ecdhecurve(), which could only be used to specify a single supported curve. ok beck@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r--src/lib/libtls/tls.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h
index 1a6701b581..cc8627f2af 100644
--- a/src/lib/libtls/tls.h
+++ b/src/lib/libtls/tls.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.h,v 1.50 2017/07/06 17:12:22 jsing Exp $ */ 1/* $OpenBSD: tls.h,v 1.51 2017/08/10 18:18:30 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -109,7 +109,8 @@ int tls_config_set_crl_file(struct tls_config *_config, const char *_crl_file);
109int tls_config_set_crl_mem(struct tls_config *_config, const uint8_t *_crl, 109int tls_config_set_crl_mem(struct tls_config *_config, const uint8_t *_crl,
110 size_t _len); 110 size_t _len);
111int tls_config_set_dheparams(struct tls_config *_config, const char *_params); 111int tls_config_set_dheparams(struct tls_config *_config, const char *_params);
112int tls_config_set_ecdhecurve(struct tls_config *_config, const char *_name); 112int tls_config_set_ecdhecurve(struct tls_config *_config, const char *_curve);
113int tls_config_set_ecdhecurves(struct tls_config *_config, const char *_curves);
113int tls_config_set_key_file(struct tls_config *_config, const char *_key_file); 114int tls_config_set_key_file(struct tls_config *_config, const char *_key_file);
114int tls_config_set_key_mem(struct tls_config *_config, const uint8_t *_key, 115int tls_config_set_key_mem(struct tls_config *_config, const uint8_t *_key,
115 size_t _len); 116 size_t _len);