hostapd: introduce a client_cert option which is passed on to wpa_supplicant (#8876)
[openwrt/staging/chunkeey.git] / package / hostapd / files / wpa_supplicant.sh
index 1ab6c663e573bda96e6138a96a1b341773eec70b..9446202be3385793ee36fbb06d41cd04a8d130e2 100644 (file)
@@ -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