[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Nov 27 14:45:10 CET 2018
Nikos Mavrogiannopoulos started a new discussion on lib/cert-cred-rawpk.c:
> +
> + // A complete key pair must be given
> + if (pkey == NULL || subject_public_key_info == NULL) {
> + return gnutls_assert_val(GNUTLS_E_INSUFFICIENT_CREDENTIALS);
> + }
> +
> + /* Import our private key. This function does all the necessary
> + * inits, checks and imports. */
> + ret = _gnutls_read_key_mem(cred, pkey->data, pkey->size,
> + format, pass, flags, &privkey);
> + if (ret < 0) {
> + return gnutls_assert_val(ret);
> + }
> +
> + /* We now convert our raw public key to a parsed certificate (pcert) structure */
> + // Allocate some memory
unnecessary comment
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_120419957
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/20181127/d84295eb/attachment.html>
More information about the Gnutls-devel
mailing list