RE: wpa_supplicant and OTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This does not seem to work.

In my eap_param_needed_cb, I do:

if ((fld == WPA_CTRL_REQ_EAP_OTP)) {
        int len = 0;
        printf("** Need OTP: %s \n", txt);
        bin_clear_free(cfg-> otp, cfg-> otp_len);
            char otp [32] = {};
            char *tmp = fgets(otp, sizeof(otp)-1, stdin);
            if (tmp) {
                len = strlen(otp) - 1;
                cfg->otp_len = len;
                cfg->otp = os_zalloc(len);
                os_memcpy(cfg-> otp, otp, len);
            }

        if (cfg->pending_req_otp) {
            printf("** Setting OTP to: '%s'\n", cfg->otp);
            os_free(cfg->pending_req_otp);
            cfg->pending_req_otp = NULL;
            cfg->pending_req_otp_len = 0;
        }
        eapol_sm_notify_ctrl_response(sm);
        printf("* done param needed.\n");
    }

At this point, the state machine still does not proceed.
In eapol_supp_sm.c: eapol_sm_notify_ctrl_response(), sm->eapReq is TRUE, and the eapol_sm_step() does not happen.
Manually changing sm->eapReq to FALSE does not make a difference.

Thanks.
Shriram


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux