[PATCH 09/10] Call libstoken to generate one-time passwords

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

 



On Sun, 2012-10-07 at 18:03 -0700, Kevin Cernekee wrote:
> +       } else if (stoken_tries == 1 && strcasestr(opt->label, "next")) {
> +               /*
> +                * The server has asked for the NEXT tokencode/passcode, so
> +                * wait.  We "could" compute it immediately, but the point is
> +                * to sync up the local + remote clocks.
> +                */
> +               vpn_progress(vpninfo, PRG_INFO, _("Waiting for next tokencode...\n"));
> +
> +               strcpy(lastcode, tokencode);
> +               do {
> +                       sleep(1);

Hm, is that really necessary? The SecurID soft token under Windows has a
'next token' mode which will give it immediately. I didn't think you
were supposed to wait.



David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4370 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20121010/2496f019/attachment.bin>


[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux