lib/paseto/util.rb in ruby-paseto-0.1.1 vs lib/paseto/util.rb in ruby-paseto-0.1.2

- old
+ new

@@ -96,10 +96,9 @@ # is at least the provided major/minor/fix/patch level. sig { params(major: Integer, minor: Integer, fix: Integer, patch: Integer).returns(T::Boolean) } def self.openssl?(major, minor = 0, fix = 0, patch = 0) return false if OpenSSL::OPENSSL_VERSION.include?('LibreSSL') - OpenSSL::OPENSSL_VERSION_NUMBER >= - (major * 0x10000000) + (minor * 0x100000) + (fix * 0x1000) + (patch * 0x10) + (major * 0x10000000) + (minor * 0x100000) + (fix * 0x1000) + (patch * 0x10) <= OpenSSL::OPENSSL_VERSION_NUMBER end end end