aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1kit/types/null.rb
blob: db37744db5a0b0e041c2c77736e066ee47380e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# coding: ASCII-8BIT

class ASN1Kit::Null < ASN1Kit::Type
  asn1_tag :IMPLICIT, :UNIVERSAL, 5
  asn1_alias "NULL"

  def der_encoded_value
    [:primitive, String.new]
  end

  def to_der
    der_header(0)
  end

  def ==(other)
    other.is_a?(ASN1Kit::Null)
  end
end