openconnect stoken support not working properly with our form

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

 



On Mon, Nov 13, 2017 at 2:15 PM, Andy Wang <dopey at moonteeth.com> wrote:
>
> I tried adding:
> +       fprintf(stderr,"%d %s %s\n",vpninfo->token_time,
> vpninfo->stoken_pin, tokencode);
> to do_gen_stoken_code and got the following output (token redacted):
> 1510603286 (null) <token>
> running stoken --force --use-time=1510603286
> and I get a totally different value.
>
> There's only a single stokenrc file.  I have a pin 0000 saved in the
> stokenrc file.

Figured it out:
auth.c's cstp_obtain_cookie was calling prepare_stoken which decrypts the seed
auth-juniper.c's oncp_obtain_cookie was not doing the same thing.

Adding that gets me one step further.



[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