X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fapps%2Fasn1parse.pod;h=afe94b09d8ce0fc2a14ad3588587d5cf620b2a6f;hp=f7bb92621168191a3284eaed9235b30d4e487599;hb=c03726ca4153fca8d66185837008aa078969d386;hpb=51cc37b69da13c33930585d3d22c020110c98c9f diff --git a/doc/apps/asn1parse.pod b/doc/apps/asn1parse.pod index f7bb926211..afe94b09d8 100644 --- a/doc/apps/asn1parse.pod +++ b/doc/apps/asn1parse.pod @@ -15,9 +15,12 @@ B B [B<-length number>] [B<-i>] [B<-oid filename>] +[B<-dump>] +[B<-dlimit num>] [B<-strparse offset>] [B<-genstr string>] [B<-genconf file>] +[B<-strictpem>] =head1 DESCRIPTION @@ -64,6 +67,14 @@ indents the output according to the "depth" of the structures. a file containing additional OBJECT IDENTIFIERs (OIDs). The format of this file is described in the NOTES section below. +=item B<-dump> + +dump unknown data in hex format. + +=item B<-dlimit num> + +like B<-dump>, but only the first B bytes are output. + =item B<-strparse offset> parse the contents octets of the ASN.1 object starting at B. This @@ -72,12 +83,20 @@ option can be used multiple times to "drill down" into a nested structure. =item B<-genstr string>, B<-genconf file> generate encoded data based on B, B or both using -L format. If B only is +L format. If B only is present then the string is obtained from the default section using the name B. The encoded data is passed through the ASN1 parser and printed out as though it came from a file, the contents can thus be examined and written to a file using the B option. +=item B<-strictpem> + +If this option is used then B<-inform> will be ignored. Without this option any +data in a PEM format input file will be treated as being base64 encoded and +processed whether it has the normal PEM BEGIN and END markers or not. This +option will ignore any data prior to the start of the BEGIN marker, or after an +END marker in a PEM file. + =back =head2 OUTPUT @@ -88,7 +107,7 @@ The output will typically contain lines like this: ..... - 229:d=3 hl=3 l= 141 prim: BIT STRING + 229:d=3 hl=3 l= 141 prim: BIT STRING 373:d=2 hl=3 l= 162 cons: cont [ 3 ] 376:d=3 hl=3 l= 159 cons: SEQUENCE 379:d=4 hl=2 l= 29 cons: SEQUENCE @@ -170,6 +189,6 @@ ASN.1 types is not well handled (if at all). =head1 SEE ALSO -L +L =cut