Added Phase 2 authentication for EAP-FAST 23/176223/2
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Tue, 17 Apr 2018 11:12:23 +0000 (16:42 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Wed, 18 Apr 2018 03:13:32 +0000 (08:43 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I882420b95fa89157e24a225b0a71ff0abf4e442a

sources/libraries/Common/common_eap_connect.c

index 093ce01..0f26cae 100755 (executable)
@@ -728,9 +728,11 @@ static void _create_eap_auth_list(eap_connect_data_t *eap_data,
                        ELM_CTXPOPUP_DIRECTION_UNKNOWN);
 
        while (list_eap_auth[i].name != NULL) {
-               if ((eap_type != EAP_SEC_TYPE_PEAP) ||
+               if ((eap_type != EAP_SEC_TYPE_PEAP && eap_type != EAP_SEC_TYPE_FAST) ||
                                (eap_type == EAP_SEC_TYPE_PEAP && i != 1 &&
-                                               i != 2)) {
+                                i != 2) ||
+                               (eap_type == EAP_SEC_TYPE_FAST && i !=1 &&
+                                i != 2)) {
                        it = elm_ctxpopup_item_append(ctxpopup, list_eap_auth[i].name,
                                NULL, _gl_eap_auth_sub_sel, eap_data);
                        if (i == 0) {
@@ -1434,7 +1436,7 @@ static void _create_and_update_list_items_based_on_rules(eap_type_t new_type,
                break;
        case EAP_SEC_TYPE_FAST:
                insert_after_item = eap_data->eap_type_item;
-               auth_reqd = EINA_FALSE;
+               auth_reqd = EINA_TRUE;
                user_cert_reqd = EINA_FALSE;
                id_reqd = EINA_TRUE;
                pw_reqd = EINA_TRUE;