summaryrefslogtreecommitdiff
path: root/lib/chef/encrypted_data_bag_item/encryptor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/encrypted_data_bag_item/encryptor.rb')
-rw-r--r--lib/chef/encrypted_data_bag_item/encryptor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/encrypted_data_bag_item/encryptor.rb b/lib/chef/encrypted_data_bag_item/encryptor.rb
index 17e22b8897..514633b526 100644
--- a/lib/chef/encrypted_data_bag_item/encryptor.rb
+++ b/lib/chef/encrypted_data_bag_item/encryptor.rb
@@ -17,9 +17,9 @@
#
require "base64"
-require "digest/sha2"
-require "openssl"
-require "ffi_yajl"
+require "digest/sha2" unless defined?(Digest::SHA2)
+require "openssl" unless defined?(OpenSSL)
+require "ffi_yajl" unless defined?(FFI_Yajl)
require_relative "../encrypted_data_bag_item"
require_relative "unsupported_encrypted_data_bag_item_format"
require_relative "encryption_failure"