Skip to content

Commit

Permalink
[chore] update OpenSSL version to latest 2.x released
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Apr 22, 2024
1 parent 56f887f commit 8f62b4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jruby/ext/openssl/OpenSSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static void createOpenSSL(final Ruby runtime) {

runtime.getLoadService().require("jopenssl/version");

final byte[] version = { '2','.','2','.','1' };
final byte[] version = { '2','.','2','.','3' };

_OpenSSL.setConstant("VERSION", StringHelper.newString(runtime, version));

Expand Down
4 changes: 2 additions & 2 deletions src/test/ruby/test_openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def test_gem_version
end if ENV['BC_VERSION']

def test_version
assert_equal '2.2.1', OpenSSL::VERSION
assert_equal String, OpenSSL::VERSION.class
assert /\d\.\d\.\d/ =~ OpenSSL::VERSION, OpenSSL::VERSION

assert OpenSSL::OPENSSL_VERSION.index('OpenSSL')
if defined? JRUBY_VERSION
Expand All @@ -24,7 +25,6 @@ def test_version
# MRI 2.3 openssl/utils.rb does this (and we shall pass) :
assert defined?(OpenSSL::OPENSSL_LIBRARY_VERSION)
assert /\AOpenSSL +0\./ !~ OpenSSL::OPENSSL_LIBRARY_VERSION
#puts "OpenSSL::OPENSSL_LIBRARY_VERSION = #{OpenSSL::OPENSSL_LIBRARY_VERSION.inspect}"
end

def test_debug
Expand Down

0 comments on commit 8f62b4a

Please sign in to comment.