[gnutls-devel] GnuTLS | x509: pin/password callback support for openssl encrypted private keys (!1459)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Aug 12 16:33:53 CEST 2021
Craig commented on a discussion on lib/x509/privkey.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1459#note_649761128
> gnutls_x509_privkey_import_openssl(key,
> data,
> password);
> +
> + if (ret == GNUTLS_E_DECRYPTION_FAILED &&
> + password == NULL && (!(flags & GNUTLS_PKCS_PLAIN))) {
> + /* use the callback if any */
> + ret = _gnutls_retrieve_pin(&key->pin, "key:", "", 0, pin, sizeof(pin));
> + if (ret == 0) {
done
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1459#note_649761128
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/20210812/28089ffe/attachment-0001.html>
More information about the Gnutls-devel
mailing list