[gnutls-devel] GnuTLS | Draft: [RFC]Add new API to fetch privkey type (!2074)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Mon Mar 2 15:05:50 CET 2026
Daiki Ueno commented: https://gitlab.com/gnutls/gnutls/-/merge_requests/2074#note_3124718055
Hello Ghadi, thank you for the patch. The feature sounds reasonable, though I wonder if the original problem could be solved by extending `gnutls_pkcs11_privkey_get_pk_algorithm` to return a curve embedded in the `bits` parameter. As `gnutls_pkcs11_privkey_t` holds an object handle, it should be possible to retrieve any attributes on the private key object (currently the `bits` field of `gnutls_pkcs11_privkey_t` is set only when the key type is RSA, which could be modified to handle other key types as well). What do you think?
If you end up with adding a new API, follow the guidance at https://gitlab.com/gnutls/gnutls/-/blob/master/CONTRIBUTING.md?ref_type=heads#introducing-new-functions--api.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2074#note_3124718055
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/3-cxweeoiu6a3gycq7vho7av3zv/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260302/4d0a7038/attachment.html>
More information about the Gnutls-devel
mailing list