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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Nov 20 13:52:55 CET 2018


Nikos Mavrogiannopoulos started a new discussion on lib/auth/cert.c:

>  
> +
> +/* Generates a Raw Public Key certificate message that holds only the
> + * SubjectPublicKeyInfo part of a regular certificate message.
> + *
> + * Returns the number of bytes sent or a negative error code.
> + */
> +int
> +_gnutls_gen_rawpk_crt(gnutls_session_t session, gnutls_buffer_st* data) //REMARK: maybe place this in a different file specific for RawPK?
> +{
> +	int ret;
> +	gnutls_pcert_st *apr_cert_list;
> +	gnutls_privkey_t apr_pkey;
> +	int apr_cert_list_length;
> +
> +	// Retrieve the appropriate certificate

nit: the comment seems unnecessary; the next line seems quite expressive

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_118714479
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/20181120/2daf5048/attachment.html>


More information about the Gnutls-devel mailing list