[gnutls-devel] GnuTLS | Support reading and writing private keys in PKCS#8 v2 format (#1474)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Oct 18 13:24:36 CEST 2023

Adrian Wijaya commented: https://gitlab.com/gnutls/gnutls/-/issues/1474#note_1608659164

I have some questions regarding this issue:
* In `lib/x509/privkey_pkcs8.c`, afaik only function [`_decode_pkcs8_dsa_key`](https://gitlab.com/gnutls/gnutls/-/blob/master/lib/x509/privkey_pkcs8.c?ref_type=heads#L1375) that needs to be changed when read `privateKey` value so that It can fallback into v1 when necessary. Are there things that I miss here?
* Similar to above, only function [`encode_to_private_key_info`](https://gitlab.com/gnutls/gnutls/-/blob/master/lib/x509/privkey_pkcs8.c?ref_type=heads#L177) that needs to be changed on write privateKey. Can I just add new parameter like `version` on this function so we can reuse existing API?

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1474#note_1608659164
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/20231018/e5e961c1/attachment-0001.html>

More information about the Gnutls-devel mailing list