> This enhancement adds label display and allow drilling into an OCTET STRING 
> or BIT STRING. The label can be used in other tools like `DerUtil`.
> 
> For example:
> 
> o $ echo 3009040730050201050500 | xxd -r -p > bin
> # Before the change
> o $ java ASN1Formatter.java bin
> bin
> 0000: 30 09                                           ; SEQUENCE [9]
> 0002:       04 07 30 05 02 01 05 05 00                ;   OCTET STRING [7] 
> <Unprintable>
> # After the change
> o $ java ASN1Formatter.java bin
> 0000: 30 09                                           ; []: SEQUENCE [9]
> 0002:       04 07 30 05 02 01 05 05 00                ; [0]: OCTET STRING [7] 
> (try --drill=0)
> o $ java ASN1Formatter.java bin --drill=0
> 0000: 30 09                                           ; []: SEQUENCE [9]
> 0002:       04 07                                     ; [0]: OCTET STRING [7]
> 0004:             30 05                               ; [0c]: SEQUENCE [5]
> 0006:                   02 01 05                      ; [0c0]: BYTE 5.
> 0009:                            05 00                ; [0c1]: NULL
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Weijun Wang has updated the pull request with a new target base due to a merge 
or a rebase. The incremental webrev excludes the unrelated changes brought in 
by the merge/rebase. The pull request contains 11 additional commits since the 
last revision:

 - Merge branch 'master' into 8382042
 - only show number for non-universal tags
 - one more readNBytes
 - full help line
 - check invalid option first
 - usage in DerUtils
 - add more comments
 - reject unknown options
 - readNBytes; skipBytes; help; warnings on invalid encodings; no arg
 - do not go into non-constructed
 - ... and 1 more: https://git.openjdk.org/jdk/compare/975e2e88...9f689a50

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/30685/files
  - new: https://git.openjdk.org/jdk/pull/30685/files/aa0d5712..9f689a50

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=30685&range=09
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=30685&range=08-09

  Stats: 135557 lines in 2276 files changed: 52349 ins; 73303 del; 9905 mod
  Patch: https://git.openjdk.org/jdk/pull/30685.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30685/head:pull/30685

PR: https://git.openjdk.org/jdk/pull/30685

Reply via email to