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 9daa954 commit c16ae11Copy full SHA for c16ae11
lib/net/ber/ber_parser.rb
@@ -166,7 +166,7 @@ def read_ber(syntax = nil)
166
# from streams that don't block when we ask for more data (like
167
# StringIOs). At it is, this can throw TypeErrors and other nasties.
168
169
- 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
170
content_length = read_ber_length
171
172
yield id, content_length if block_given?
@@ -179,4 +179,9 @@ def read_ber(syntax = nil)
179
180
parse_ber_object(syntax, id, data)
181
end
182
+
183
+ # Internal: Returns the BER message ID or nil.
184
+ def read_ber_id
185
+ getbyte
186
+ end
187
0 commit comments