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

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


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

> +		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
> +	pcert = gnutls_calloc(1, sizeof(*pcert));
> +	if (pcert == NULL) {
> +		gnutls_privkey_deinit(privkey);
> +		_gnutls_free_datum(&rawpubkey);
> +
> +		return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR);
> +	}
> +	// Import our raw public key to the pcert structure

unnecessary comment

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_120445490
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/46a9c4d2/attachment-0001.html>


More information about the Gnutls-devel mailing list