[gnutls-devel] GnuTLS | tpm: Try to use password from the PIN callback if srk_password is NULL (!796)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sat Nov 10 09:39:07 CET 2018


Nikos Mavrogiannopoulos started a new discussion on lib/tpm.c:

>  	char pin1[GNUTLS_PKCS11_MAX_PIN_LEN];
>  	char pin2[GNUTLS_PKCS11_MAX_PIN_LEN];
>  	int ret, ret2;
> +	int srk_password_was_null = srk_password == NULL;
> +
> +	if (!srk_password) {

maybe using the introduced variable would be more natural; though looks good as it is.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/796#note_116185354
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/20181110/69e03328/attachment.html>


More information about the Gnutls-devel mailing list