>
>
>   But anyway, there might be an undefined variable lurking
> in
>
>         /* If pkcs#11 Use custom prompt similar to pkcs11-helper */
>         if (strstr(prompt, "PKCS#11"))
>         {
>             struct user_pass up;
>             get_user_pass(&up, NULL, "PKCS#11 token", ...
>
> "up" is not initialized, and the first thing get_user_pass_cr() does
> is look at "if (!up->defined)".  So if I'm not misreading this, a
> followup patch to initialize "up" would be good.  At this point it
> might be nice to add a comment explaining how the wrapping of
> "pem_password_callback()" works ;-)
>

Thanks for catching this. A patch is on its way.

Selva
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to