We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a60375 commit 3b8cd7bCopy full SHA for 3b8cd7b
lib/net/ber/ber_parser.rb
@@ -157,7 +157,7 @@ def read_ber(syntax = nil)
157
# from streams that don't block when we ask for more data (like
158
# StringIOs). At it is, this can throw TypeErrors and other nasties.
159
160
- id = getbyte or return nil # don't trash this value, we'll use it later
+ id = read_ber_id or return nil # don't trash this value, we'll use it later
161
content_length = read_ber_length
162
163
yield id, content_length if block_given?
@@ -170,4 +170,9 @@ def read_ber(syntax = nil)
170
171
parse_ber_object(syntax, id, data)
172
end
173
+
174
+ # Internal: Returns the BER message ID or nil.
175
+ def read_ber_id
176
+ getbyte
177
+ end
178
0 commit comments