[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:57 CET 2018


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

>  
>  /* Converts the first certificate for the cert_auth_info structure
>   * to a pcert.
> + *
> + * REMARK 1: why limit ourselves to only be able to convert the first cert in the chain?
> + * REMARK 2: there is a lot of conversion between a raw cert / cert chain (gnutls_datum_t)
> + *   and gnutls_pcert_st going on (e.g. cert_auth_info to pcert). There is also quite some
> + *   overlap in data between these two types. The difference is that pcert holds only 1 cert
> + *   and cert_auth_info has the entire chain. During cert reception (in e.g. _gnutls_proc_x509_server_crt)
> + *   we also convert from raw to pcert. First we call gnutls_pcert_import_x509_raw to get a list with pcerts.
> + *   Then we call check_pk_compat to do some checks. Finally we call _gnutls_pcert_to_auth_info to save all

That's a long remark. If you still would like to discuss it, please raise it on the merge request discussion section.

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


More information about the Gnutls-devel mailing list