aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2017-04-20 13:44:31 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-30 15:27:34 (GMT)
commitd01203cafc1284e2883cb132e8529b7e2bb58653 (patch)
tree075cbeba148bb1892a62e4a1cd425921546992d2 /hostapd/config_file.c
parent0521c6ebb308db7c7050d8369815284e50454261 (diff)
downloadhostap-d01203cafc1284e2883cb132e8529b7e2bb58653.zip
hostap-d01203cafc1284e2883cb132e8529b7e2bb58653.tar.gz
hostap-d01203cafc1284e2883cb132e8529b7e2bb58653.tar.bz2
hostapd: Add openssl_ecdh_curves configuration parameter
This makes it possible to use ECDSA certificates with EAP-TLS/TTLS/etc. It should be noted that when using Suite B, different mechanism is used to specify the allowed ECDH curves and this new parameter must not be used in such cases. Signed-off-by: Hristo Venev <hristo@venev.name>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 306afce..b0d92ba 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2505,6 +2505,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
} else if (os_strcmp(buf, "openssl_ciphers") == 0) {
os_free(bss->openssl_ciphers);
bss->openssl_ciphers = os_strdup(pos);
+ } else if (os_strcmp(buf, "openssl_ecdh_curves") == 0) {
+ os_free(bss->openssl_ecdh_curves);
+ bss->openssl_ecdh_curves = os_strdup(pos);
} else if (os_strcmp(buf, "fragment_size") == 0) {
bss->fragment_size = atoi(pos);
#ifdef EAP_SERVER_FAST