summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-01-28 11:59:39 -0800
committerelijah <elijah@riseup.net>2015-01-28 11:59:39 -0800
commit84ae4c6eba59efc683e102245e0da03b782ea067 (patch)
tree615ccfd4b8c75dbcfcd612eb05ab2d5243d9f0c2
parent0bb30766e6f6fe1832343132b3433533e7b314a0 (diff)
remove deprecated OpenSSL::Digest::Digest with OpenSSL::Digest
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/certificate.rb4
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb4
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/signing_request.rb2
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