lib/r509.rb in r509-0.9.2 vs lib/r509.rb in r509-0.10.0
- old
+ new
@@ -1,12 +1,15 @@
# A module for building an easy to use CA. Includes CSR, Certificate, and CRL support.
module R509
- require('r509/certificate_authority.rb')
+ require('r509/certificate_authority/signer.rb')
+ require('r509/certificate_authority/options_builder.rb')
require('r509/csr.rb')
require('r509/spki.rb')
require('r509/cert.rb')
- require('r509/crl.rb')
+ require('r509/crl/administrator.rb')
+ require('r509/crl/reader_writer.rb')
+ require('r509/crl/signed_list.rb')
require('r509/oid_mapper.rb')
require('r509/ocsp.rb')
require('r509/config.rb')
require('r509/private_key.rb')
require('r509/message_digest.rb')
@@ -16,16 +19,18 @@
require('r509/asn1.rb')
require('r509/engine.rb')
require('r509/version.rb')
# print version information to console
+ # @return [nil]
def self.print_debug
puts "r509 v#{R509::VERSION}"
puts OpenSSL::OPENSSL_VERSION
puts "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
puts "Elliptic curve support: #{self.ec_supported?}"
end
+ # Helper method to check if EC support is built-in
def self.ec_supported?
(not defined?(OpenSSL::PKey::EC::UNSUPPORTED))
end
end