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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Nov 21 09:21:54 CET 2018


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

>  typedef enum CertificateSigType { RSA_SIGN = 1, DSA_SIGN = 2, ECDSA_SIGN = 64
>  } CertificateSigType;
>  
> -/* Moves data from a internal certificate struct (gnutls_pcert_st) to
> +/* Moves data from an internal certificate struct (gnutls_pcert_st) to
>   * another internal certificate struct (cert_auth_info_t), and deinitializes
>   * the former.
>   */
>  int _gnutls_pcert_to_auth_info(cert_auth_info_t info, gnutls_pcert_st * certs, size_t ncerts)
>  {
> +	/* REMARK: why do we free certs here? It is unexpected behavior and might be undesireable

Indeed that function could have been different, but it is not :) There is only one caller so I guess it is modeled after the needs of this caller. It looks also like a good candidate to make static.

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


More information about the Gnutls-devel mailing list