From db41077943e1e3584d626e790d76b1b15c53a538 Mon Sep 17 00:00:00 2001 From: Martin Vahlensieck Date: Tue, 11 Jun 2024 15:39:17 +0200 Subject: [PATCH] Skip Ed25519 certificate test for LibreSSL < 3.8.1 issue_cert ends up calling ASN1_item_sign_ctx in libcrypto, which was changed to work with Ed25519 in LibreSSL version 3.8.1. --- test/openssl/test_x509cert.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/openssl/test_x509cert.rb b/test/openssl/test_x509cert.rb index 867b2daa7..3e88f0544 100644 --- a/test/openssl/test_x509cert.rb +++ b/test/openssl/test_x509cert.rb @@ -238,6 +238,9 @@ def test_sign_and_verify_ed25519 raise e end + # See ASN1_item_sign_ctx in ChangeLog for 3.8.1: https://github.com/libressl/portable/blob/master/ChangeLog + pend 'ASN1 signing with Ed25519 not yet working' unless openssl? or libressl?(3, 8, 1) + cert = issue_cert(@ca, ed25519, 1, [], nil, nil, digest: nil) assert_equal(true, cert.verify(ed25519)) end