Skip to content

Commit 6a188f1

Browse files
committed
test/openssl/test_asn1.rb: remove pend for unsupported LibreSSL versions
Commit af895bc ("asn1: avoid truncating OID in OpenSSL::ASN1::ObjectId#oid", 2016-12-15) added this test case. The OBJ_obj2txt() issue was fixed by LibreSSL 2.5.1 (released in 2017) and is no longer relevant today.
1 parent bbc540f commit 6a188f1

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/openssl/test_asn1.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,9 @@ def test_object_identifier
323323
assert_raise(OpenSSL::ASN1::ASN1Error) { OpenSSL::ASN1::ObjectId.new("3.0".b).to_der }
324324
assert_raise(OpenSSL::ASN1::ASN1Error) { OpenSSL::ASN1::ObjectId.new("0.40".b).to_der }
325325

326-
begin
327-
oid = (0...100).to_a.join(".").b
328-
obj = OpenSSL::ASN1::ObjectId.new(oid)
329-
assert_equal oid, obj.oid
330-
rescue OpenSSL::ASN1::ASN1Error
331-
pend "OBJ_obj2txt() not working (LibreSSL?)" if $!.message =~ /OBJ_obj2txt/
332-
raise
333-
end
326+
oid = (0...100).to_a.join(".").b
327+
obj = OpenSSL::ASN1::ObjectId.new(oid)
328+
assert_equal oid, obj.oid
334329

335330
aki = [
336331
OpenSSL::ASN1::ObjectId.new("authorityKeyIdentifier"),

0 commit comments

Comments
 (0)