[gnutls-devel] GnuTLS | ext/record_size_limit: add function to get record_size_limit (!1989)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Jul 17 08:15:18 CEST 2025



Merge request https://gitlab.com/gnutls/gnutls/-/merge_requests/1989 was reviewed by Daiki Ueno

--
  
Daiki Ueno started a new discussion on lib/ext/record_size_limit.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1989#note_2632603435

 > + * Since: 3.8.10
 > + **/
 > +int gnutls_record_get_record_size_limit(gnutls_session_t session, size_t *size)

Although `record_size_limit` is more recently introduced than `max_fragment_length` (in lib/ext/max_record.c), we already have a couple of accessors to the internal limits in lib/ext/max_record.c, e.g., `gnutls_record_get_max_size`. Can we add it there?

Also, as the maximum is 16K, I would return `ssize_t` instead of storing it through a pointer.


-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1989
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/20250717/507787b8/attachment-0001.html>


More information about the Gnutls-devel mailing list