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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Oct 19 08:18:31 CEST 2018


Nikos Mavrogiannopoulos commented on a discussion on src/common.c:

> +	size_t len;
> +
> +	tmp = getpass(prompt);
> +	if (tmp == NULL) {
> +		pass[0] = 0;
> +		return;
> +	}
> +
> +	len = strlen(tmp);
> +	if (len >= max_pass_size) {
> +		pass[0] = 0;
> +		return;
> +	}
> +
> +	strcpy(pass, tmp);
> +	gnutls_memset(pass, 0, len);

Fixed.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/776#note_110150039
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/20181019/dc9d7adf/attachment-0001.html>


More information about the Gnutls-devel mailing list