[gnutls-devel] GnuTLS | WIP: RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Fri Sep 14 12:55:59 CEST 2018
Nikos Mavrogiannopoulos started a new discussion on lib/ext/client_cert_type.c:
> gnutls_buffer_st* data)
> int ret;
> - uint8_t cert_type; // Holds an IANA cert type ID
> + int cert_type; // Holds an IANA cert type ID. Need int type to store possible negative error vals.
why not use `ret` for the error checking and if no error assign to cert_type? It makes reading quite cleaner.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_101406292
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel