[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:44 CET 2018
Nikos Mavrogiannopoulos started a new 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 believe that the equivalent test on X.509 case is mainly for backwards compatibility as this message is invalid. Do you think we need that for raw public keys?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_118714475
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/184415ce/attachment.html>
More information about the Gnutls-devel
mailing list