[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Nov 27 13:23:10 CET 2018
Nikos Mavrogiannopoulos started a new discussion on lib/pcert.c:
> + // Reset our pcert memory to all zeros
> + memset(pcert, 0, sizeof(*pcert));
> +
> + // Initialize our public key structure
> + ret = gnutls_pubkey_init(&pcert->pubkey);
> + if (ret < 0) {
> + return gnutls_assert_val(ret);
> + }
> +
> + // Convert our raw public-key to a gnutls_pubkey_t structure
> + ret = gnutls_pubkey_import(pcert->pubkey, rawpubkey, format);
> + if (ret < 0) {
> + return gnutls_assert_val(ret);
> + }
> +
> + // Set key usage bits. This is normally defined in the certificate
unnecessary comment; that info is present in the function documentation
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_120390355
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/3896fd81/attachment.html>
More information about the Gnutls-devel
mailing list