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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Oct 24 11:03:10 CEST 2018


Nikos Mavrogiannopoulos commented on a discussion on tests/testpkcs11.sh:

> +	if test $? != 0; then
> +		echo failed
> +		exit_error
> +	fi
> +	echo ok
> +
> +	echo -n "* Re-setting user PIN... "
> +	export GNUTLS_PIN="${UPIN}"
> +	${P11TOOL} ${ADDITIONAL_PARAM} --login --initialize-pin "${token}" >>"${LOGFILE}" 2>&1
> +	if test $? != 0; then
> +		echo failed
> +		exit_error
> +	fi
> +
> +	echo ok
> +}

Actually, adding tests for these, uncovered that the real limit is imposed by the lib. Updated and added test cases to test the maximum supported chars and max + 1 more.

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


More information about the Gnutls-devel mailing list