Skip to content

Commit

Permalink
(CAT-1505) Update Windows values for when using OpenSSL 3
Browse files Browse the repository at this point in the history
Updating the code so that the `ssl_lib` and `ssl_postfix` are pointing to the correct location when OpenSSL 3.0 is being used.
  • Loading branch information
david22swan committed Nov 14, 2023
1 parent fd53e36 commit aedf129
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configs/components/_base-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@
ssl_postfix = ''
end

if Gem::Version.new(settings[:openssl_version]) >= Gem::Version.new('1.1.0')
if Gem::Version.new(settings[:openssl_version]) >= Gem::Version.new('3.0')
ssl_lib = "libssl-3#{ssl_postfix}.dll"
crypto_lib = "libcrypto-3#{ssl_postfix}.dll"
elsif Gem::Version.new(settings[:openssl_version]) >= Gem::Version.new('1.1.0')
ssl_lib = "libssl-1_1#{ssl_postfix}.dll"
crypto_lib = "libcrypto-1_1#{ssl_postfix}.dll"
else
Expand Down

0 comments on commit aedf129

Please sign in to comment.