Skip to content

Commit

Permalink
Skip Ed25519 certificate test for LibreSSL < 3.8.1
Browse files Browse the repository at this point in the history
issue_cert ends up calling ASN1_item_sign_ctx in libcrypto, which was
changed to work with Ed25519 in LibreSSL version 3.8.1.
  • Loading branch information
gartens committed Jun 11, 2024
1 parent d4a6473 commit db41077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/openssl/test_x509cert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db41077

Please sign in to comment.