[gnutls-devel] Guile-GnuTLS | More x509-certificate-functions (!39)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Mar 10 10:49:46 CET 2025




Dariqq commented on a discussion: https://gitlab.com/gnutls/guile/-/merge_requests/39#note_2387844586


I made the formatter happy: It wants a line break for get_issuer_dn_by_oid but not the subject one which I am not a fan of.

```c
X509_CERTIFICATE_DN_BY_OID_FUNCTION_BODY (gnutls_x509_crt_get_dn_by_oid);
[...]
X509_CERTIFICATE_DN_BY_OID_FUNCTION_BODY
    (gnutls_x509_crt_get_issuer_dn_by_oid);
```

The local git diff on X509_CERTIFICATE_DN_BY_OID_FUNCTION_BODY also does not look great because of the tabs for the \ on each line (but the formatter did not complain). 

The test failure on alma/rocky is interesting. The warning in the output is irrelevant to the failure. Some better diagnostics on what subtest is failing would be great. Currently each subtest returns either #t or #f which then gets AND'ed  to the final test result so all information on the subtests is lost.

In the failing test I added a check for the signature of the cert and the oneline print output. The only thing i can think of is that the print output may vary between gnutls versions.

I removed the print test on a separate branch and it seems to be the issue as now it also passes on rocky/alma 

https://gitlab.com/Dariqq/guile/-/jobs/9358732456
https://gitlab.com/Dariqq/guile/-/jobs/9358732441

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/merge_requests/39#note_2387844586
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/20250310/07c06409/attachment.html>


More information about the Gnutls-devel mailing list