oops. Fixed private.
This commit is contained in:
parent
db1894a5c0
commit
f6cb105444
|
@ -466,12 +466,6 @@ class Array
|
||||||
def to_ber_appsequence id = 0; to_ber_seq_internal( 0x60 + id ); end
|
def to_ber_appsequence id = 0; to_ber_seq_internal( 0x60 + id ); end
|
||||||
def to_ber_contextspecific id = 0; to_ber_seq_internal( 0xA0 + id ); end
|
def to_ber_contextspecific id = 0; to_ber_seq_internal( 0xA0 + id ); end
|
||||||
|
|
||||||
private
|
|
||||||
def to_ber_seq_internal code
|
|
||||||
s = self.to_s
|
|
||||||
[code].pack('C') + s.length.to_ber_length_encoding + s
|
|
||||||
end
|
|
||||||
|
|
||||||
def to_ber_oid
|
def to_ber_oid
|
||||||
ary = self.dup
|
ary = self.dup
|
||||||
first = ary.shift
|
first = ary.shift
|
||||||
|
@ -482,6 +476,13 @@ class Array
|
||||||
[6, oid.length].pack("CC") + oid
|
[6, oid.length].pack("CC") + oid
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
def to_ber_seq_internal code
|
||||||
|
s = self.to_s
|
||||||
|
[code].pack('C') + s.length.to_ber_length_encoding + s
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end # class Array
|
end # class Array
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue