From 84ae4c6eba59efc683e102245e0da03b782ea067 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 28 Jan 2015 11:59:39 -0800 Subject: remove deprecated OpenSSL::Digest::Digest with OpenSSL::Digest --- vendor/certificate_authority/lib/certificate_authority/certificate.rb | 4 ++-- .../lib/certificate_authority/certificate_revocation_list.rb | 4 ++-- .../lib/certificate_authority/signing_request.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vendor/certificate_authority/lib/certificate_authority/certificate.rb b/vendor/certificate_authority/lib/certificate_authority/certificate.rb index 3fcae90..496d91e 100644 --- a/vendor/certificate_authority/lib/certificate_authority/certificate.rb +++ b/vendor/certificate_authority/lib/certificate_authority/certificate.rb @@ -108,9 +108,9 @@ module CertificateAuthority end if signing_profile["digest"].nil? - digest = OpenSSL::Digest::Digest.new("SHA512") + digest = OpenSSL::Digest.new("SHA512") else - digest = OpenSSL::Digest::Digest.new(signing_profile["digest"]) + digest = OpenSSL::Digest.new(signing_profile["digest"]) end self.openssl_body = openssl_cert.sign(parent.key_material.private_key, digest) diff --git a/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb b/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb index e222e26..c84d588 100644 --- a/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb +++ b/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb @@ -59,9 +59,9 @@ module CertificateAuthority signing_cert = OpenSSL::X509::Certificate.new(self.parent.to_pem) if signing_profile["digest"].nil? - digest = OpenSSL::Digest::Digest.new("SHA512") + digest = OpenSSL::Digest.new("SHA512") else - digest = OpenSSL::Digest::Digest.new(signing_profile["digest"]) + digest = OpenSSL::Digest.new(signing_profile["digest"]) end crl.issuer = signing_cert.subject self.crl_body = crl.sign(self.parent.key_material.private_key, digest) diff --git a/vendor/certificate_authority/lib/certificate_authority/signing_request.rb b/vendor/certificate_authority/lib/certificate_authority/signing_request.rb index 72d9e2b..3584dac 100644 --- a/vendor/certificate_authority/lib/certificate_authority/signing_request.rb +++ b/vendor/certificate_authority/lib/certificate_authority/signing_request.rb @@ -62,7 +62,7 @@ module CertificateAuthority opensslcsr.subject = @distinguished_name.to_x509_name opensslcsr.public_key = @key_material.public_key opensslcsr.attributes = @attributes unless @attributes.nil? - opensslcsr.sign @key_material.private_key, OpenSSL::Digest::Digest.new(@digest || "SHA512") + opensslcsr.sign @key_material.private_key, OpenSSL::Digest.new(@digest || "SHA512") opensslcsr end -- cgit v1.2.3