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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Oct 7 12:01:22 CEST 2019




Dmitry Eremin-Solenikov commented on a discussion on src/pkcs11.c: https://gitlab.com/gnutls/gnutls/merge_requests/1071#note_226764437

>  				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)

done

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


More information about the Gnutls-devel mailing list