Skip to content

Commit cf82f83

Browse files
author
blackhedd
committed
added a #to_ber method to BerIdentifiedNull, which handles ASN.1 NULL objects.
1 parent da69de0 commit cf82f83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/net/ber.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def initialize
5252

5353
class BerIdentifiedNull
5454
attr_accessor :ber_identifier
55+
def to_ber
56+
"\005\000"
57+
end
5558
end
5659

5760
#--

0 commit comments

Comments
 (0)