[gnutls-devel] GnuTLS | P11tool improvements (!1071)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Oct 4 20:41:17 CEST 2019




Nikos Mavrogiannopoulos started a new discussion on src/pkcs11.c: https://gitlab.com/gnutls/gnutls/merge_requests/1071#note_226261203

>  				str = mech_list[mechanism];
> +			else if ((mechanism & 0xfffff000) == 0xd4321000 &&
> +				 ((mechanism & 0xfff) < sizeof(gost_mech_list) / sizeof(gost_mech_list[0])))
> +				str = gost_mech_list[mechanism & 0xfff];
>  			if (str == NULL)
>  				str = "UNKNOWN";
>  
> -			fprintf(outfile, "[0x%.4lx] %s\n", mechanism, str);
> +			fprintf(outfile, "[0x%.4lx] %s", mechanism, str);
> +
> +			if (gnutls_pkcs11_token_check_mechanism(url, mechanism, &minfo, sizeof(minfo), 0) != 0) {
> +				if (minfo.max_key_size != 0)
> +				fprintf(outfile, " keysize range (%ld, %ld)", minfo.min_key_size, minfo.max_key_size);
> +				if (minfo.flags & 0x1)
> +					printf(" hw");
> +				if (minfo.flags & 0x100)

if we include p11-kit/pkcs11.h I think that would become more easy to read as we can use the definitions.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1071#note_226261203
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/20191004/d157afe4/attachment-0001.html>


More information about the Gnutls-devel mailing list