1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-11 17:08:02 +02:00

Add warning if OPENSSL_CONF is already present

This commit is contained in:
adfoster-r7 2022-08-05 15:45:50 +01:00
parent f65119b353
commit 756c910b9a
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#
# Enable legacy providers such as blowfish-cbc, cast128-cbc, arcfour, etc
$stderr.puts "Overriding user environment variable 'OPENSSL_CONF' to enable legacy functions." unless ENV['OPENSSL_CONF'].nil?
ENV['OPENSSL_CONF'] = File.expand_path(
File.join(File.dirname(__FILE__), '..', 'config', 'openssl.conf')
)

View File

@ -1,6 +1,7 @@
# -*- coding: binary -*-
# Enable legacy providers such as blowfish-cbc, cast128-cbc, arcfour, etc
$stderr.puts "Overriding user environment variable 'OPENSSL_CONF' to enable legacy functions." unless ENV['OPENSSL_CONF'].nil?
ENV['OPENSSL_CONF'] = File.expand_path(
File.join(File.dirname(__FILE__), '..', 'config', 'openssl.conf')
)