Sha256: 6b8af7ed95f9cee38a9a7e2073245b95c44ee4cf449c8df4aa689cc2de0edb8d

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents


module Ccrypto
  class X509Cert
    include TR::CondUtils

    def equal?(cert)
      if is_empty?(cert) 
        if is_empty?(@nativeX509)
          true
        else
          false
        end
      else
        @nativeX509.to_der == cert.to_der
      end
    end

    def method_missing(mtd, *args, &block)
      @nativeX509.send(mtd, *args, &block)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ccrypto-ruby-0.1.2 lib/ccrypto/ruby/ext/x509_cert.rb
ccrypto-ruby-0.1.1 lib/ccrypto/ruby/ext/x509_cert.rb
ccrypto-ruby-0.1.0 lib/ccrypto/ruby/ext/x509_cert.rb