[gnutls-devel] GnuTLS | p11tool: fix admin user PIN initialization (!776)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Oct 18 17:24:25 CEST 2018


Patrick Steuer started a new discussion on src/pkcs11.c:

>  		app_exit(1);
>  	}
>  
> -	fprintf(stderr, "Setting token's user PIN...\n");
> +	if (so)
> +		fprintf(stderr, "Setting admin's PIN...\n");
> +	else
> +		fprintf(stderr, "Setting user's PIN...\n");
>  
>  	if (so) {
> -		if (info->so_pin != NULL) {
> -			pin = info->so_pin;
> +		if (info->batch == 0) {

If i remember correctly, the tool works different with GNUTLS_SO_PIN env var i.e., if GNUTLS_SO_PIN is set the user is not asked to enter it even in non-batch mode.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/776#note_109973584
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181018/603cdc41/attachment.html>


More information about the Gnutls-devel mailing list