[gnutls-devel] GnuTLS | pkcs11-provider: rework to share the code with the existing PKCS#11 support (!2018)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Sep 18 13:04:09 CEST 2025




Daiki Ueno commented on a discussion on lib/pkcs11/p11_mac.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2018#note_2760188630

 >  	attr_key_type = mac->key_type;
 >  
 >  	params.saltSource = CKZ_SALT_SPECIFIED;
 > -	params.pSaltSourceData = (unsigned char *)salt;
 > +	params.salt_ptrSourceData = (unsigned char *)salt;
 >  	params.ulSaltSourceDataLen = salt_size;
 >  	params.pPassword = (unsigned char *)key;
 >  	params.ulPasswordLen = key_size;

Thanks; the `#ifdef` condition was wrong (it was checking a typedef, not a `#define`).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2018#note_2760188630
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/20250918/0e9edf09/attachment.html>


More information about the Gnutls-devel mailing list