[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Nov 27 15:50:43 CET 2018


Nikos Mavrogiannopoulos started a new discussion on lib/cert-cred-rawpk.c:

> +	// TODO FUTURE: support URLs
> +	if (gnutls_url_is_supported(rawpkfile)) {
> +		return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
> +	}
> +
> +	/* Read our raw public-key into memory */
> +	rawpubkey.data = (void*) read_binary_file(rawpkfile, &key_size);
> +	if (rawpubkey.data == NULL) {
> +		return gnutls_assert_val(GNUTLS_E_FILE_ERROR);
> +	}
> +	rawpubkey.size = key_size; // Implicit type casting
> +
> +	/* We now convert our raw public key that we've loaded into memory 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_120445321
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/6309aad3/attachment.html>


More information about the Gnutls-devel mailing list