[gnutls-devel] Guile-GnuTLS | Use long when converting to/from time_t. (!33)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Mar 4 19:39:09 CET 2025



Dariqq created a merge request: https://gitlab.com/gnutls/guile/-/merge_requests/33

Project:Branches: Dariqq/guile:master to gnutls/guile:master
Author:   Dariqq




Fixes https://gitlab.com/gnutls/guile/-/issues/33 and https://gitlab.com/gnutls/guile/-/issues/32.

Replace `scm_to/from_int` with `scm_to/from_long` when dealing with `time_t` values.

To test this one can use a time value past 2038 in `tests/x509-certificate-generation.scm` for expiration/activation date.
Before guile would error on converting the integer to `int` type. Not sure if this is something to test , there might be some architectures where `long` might still be to small to hold all `time_t` values.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/merge_requests/33
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/20250304/3dc7fbe6/attachment-0001.html>


More information about the Gnutls-devel mailing list