[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sun Nov 25 15:16:49 CET 2018
Tom commented on a discussion on lib/auth/cert.c:
> }
>
> +
> +int _gnutls_proc_rawpk_crt(gnutls_session_t session,
> + uint8_t * data, size_t data_size) //REMARK: maybe place this in a different file specific for RawPK?
> +{
> + int cert_size, ret;
> + cert_auth_info_t info;
> + gnutls_pcert_st* peer_certificate;
> + gnutls_datum_t tmp_cert;
> +
> + uint8_t *p = data; // data pointer
> + ssize_t dsize = data_size;
> +
> + // Check whether we've received anything.
> + if (data == NULL || data_size == 0) {
I've checked the calling code and I think we can safely skip this test because the caller already checks this. I will remove it.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_119843812
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/20181125/7a722a43/attachment.html>
More information about the Gnutls-devel
mailing list