[gnutls-devel] Guile-GnuTLS | 32bit time issues with gnutls_x509_crt_[get, set]-*-time (#33)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Mar 4 18:12:34 CET 2025




Dariqq commented on a discussion: https://gitlab.com/gnutls/guile/-/issues/33#note_2378770874


Yes there is scm_from/to_long.

I tried changing to scm_to/from_int64 for all time_t values and everything works without issues. So that must have been the problem.

It seems like i misinterpreted the error. It might not be a gnutls error but a guile error because it cant convert to the given type. From manual

```
     When X represents an exact integer that fits into the indicated C
     type, return that integer.  Else signal an error, either a
     ‘wrong-type’ error when X is not an exact integer, or an
     ‘out-of-range’ error when it doesn’t fit the given range.
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/issues/33#note_2378770874
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/46115fed/attachment.html>


More information about the Gnutls-devel mailing list