diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-01-23 19:10:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-01-23 19:10:53 +0000 |
commit | 3b979c5450467b6721b8f8b715b10680ce7b4fbe (patch) | |
tree | a2e3aad212119aebed97f216da08a26713430da9 /doc | |
parent | 339ad7ce736fedc92bee9adbe32eb9f6861abc99 (diff) |
Clarify BITLIST format and include an example.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/ASN1_generate_nconf.pod | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/crypto/ASN1_generate_nconf.pod b/doc/crypto/ASN1_generate_nconf.pod index 29d151366d..bd2e955908 100644 --- a/doc/crypto/ASN1_generate_nconf.pod +++ b/doc/crypto/ASN1_generate_nconf.pod @@ -154,10 +154,11 @@ bits is set to zero. This specifies the format of the ultimate value. It should be followed by a colon and one of the strings B<ASCII>, B<UTF8>, B<HEX> or B<BITLIST>. -If no format specifier is included then B<ASCII> is used. If B<UTF8> is specified -then the value string must be a valid B<UTF8> string. For B<HEX> the output must -be a set of hex digits. B<BITLIST> (which is only valid for a BIT STRING) is a -comma separated list of set bits. +If no format specifier is included then B<ASCII> is used. If B<UTF8> is +specified then the value string must be a valid B<UTF8> string. For B<HEX> the +output must be a set of hex digits. B<BITLIST> (which is only valid for a BIT +STRING) is a comma separated list of the indices of the set bits, all other +bits are zero. =back @@ -175,6 +176,10 @@ An IA5String explicitly tagged using APPLICATION tagging: EXPLICIT:0A,IA5STRING:Hello World +A BITSTRING with bits 1 and 5 set and all others zero: + + FORMAT=BITLIST,BITSTRING:1,5 + A more complex example using a config file to produce a SEQUENCE consiting of a BOOL an OID and a UTF8String: |