aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-24 20:54:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-24 20:54:13 +0000
commite1d199bbbcf472ef92f45048b0eb9307fa57282f (patch)
treebf31b7a268b0c5e6c0fde374939939afc6bef432 /package/hostapd/files
parent4f3d6c9ae96524ee43891d606f6a530a2f6fb175 (diff)
downloadupstream-e1d199bbbcf472ef92f45048b0eb9307fa57282f.tar.gz
upstream-e1d199bbbcf472ef92f45048b0eb9307fa57282f.tar.bz2
upstream-e1d199bbbcf472ef92f45048b0eb9307fa57282f.zip
hostapd: introduce a client_cert option which is passed on to wpa_supplicant (#8876)
SVN-Revision: 29901
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/wpa_supplicant.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh
index 1ab6c663e5..9446202be3 100644
--- a/package/hostapd/files/wpa_supplicant.sh
+++ b/package/hostapd/files/wpa_supplicant.sh
@@ -87,9 +87,11 @@ wpa_supplicant_setup_vif() {
pairwise='pairwise=CCMP'
group='group=CCMP'
config_get identity "$vif" identity
+ config_get client_cert "$vif" client_cert
config_get priv_key "$vif" priv_key
config_get priv_key_pwd "$vif" priv_key_pwd
identity="identity=\"$identity\""
+ client_cert="client_cert=\"$client_cert\""
priv_key="private_key=\"$priv_key\""
priv_key_pwd="private_key_passwd=\"$priv_key_pwd\""
;;
@@ -132,6 +134,7 @@ network={
$group
$eap_type
$ca_cert
+ $client_cert
$priv_key
$priv_key_pwd
$phase2