summaryrefslogtreecommitdiff
path: root/gsupplicant/supplicant.c
diff options
context:
space:
mode:
authorPaolo Pellegrino <paolo.pellegrino@zirak.it>2011-06-17 16:20:26 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-06-17 16:20:26 +0200
commitf08f0867ab673a67e0a408ded80b5a6e6a91872f (patch)
treeee431d80cfdd1e08d1ab7941e9fcb29eb4dda11e /gsupplicant/supplicant.c
parent2cbe7626256fb1104838af8d79e6edcb26cd35e8 (diff)
downloadconnman-f08f0867ab673a67e0a408ded80b5a6e6a91872f.tar.gz
connman-f08f0867ab673a67e0a408ded80b5a6e6a91872f.tar.bz2
connman-f08f0867ab673a67e0a408ded80b5a6e6a91872f.zip
gsupplicant: Client certificate is not mandatory for TTLS/PEAP
Diffstat (limited to 'gsupplicant/supplicant.c')
-rw-r--r--gsupplicant/supplicant.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 485b6719..bbb04ae5 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2633,7 +2633,7 @@ static void add_network_security_peap(DBusMessageIter *dict,
* The 2nd phase authentication method
* The 2nd phase passphrase
*
- * The Client certificate is optional although strongly required
+ * The Client certificate is optional although strongly recommended
* When setting it, we need in addition
* The Client private key file
* The Client private key file password
@@ -2641,9 +2641,6 @@ static void add_network_security_peap(DBusMessageIter *dict,
if (ssid->passphrase == NULL)
return;
- if (ssid->ca_cert_path == NULL)
- return;
-
if (ssid->phase2_auth == NULL)
return;
@@ -2678,7 +2675,8 @@ static void add_network_security_peap(DBusMessageIter *dict,
DBUS_TYPE_STRING,
&ssid->passphrase);
- supplicant_dbus_dict_append_basic(dict, "ca_cert",
+ if (ssid->ca_cert_path)
+ supplicant_dbus_dict_append_basic(dict, "ca_cert",
DBUS_TYPE_STRING,
&ssid->ca_cert_path);