support numeric strings in ASN1_generate_nconf
authorNils Larsch <nils@openssl.org>
Sat, 14 Jan 2006 09:21:33 +0000 (09:21 +0000)
committerNils Larsch <nils@openssl.org>
Sat, 14 Jan 2006 09:21:33 +0000 (09:21 +0000)
crypto/asn1/asn1_gen.c
doc/crypto/ASN1_generate_nconf.pod

index e6e04a1cd73ce89e1c73b71ade2da31b665d965e..dd5853c02fd12e47cbc8e298355bb5c3b6cb2ac9 100644 (file)
@@ -584,6 +584,8 @@ static int asn1_str2tag(const char *tagstr, int len)
                ASN1_GEN_STR("TELETEXSTRING", V_ASN1_T61STRING),
                ASN1_GEN_STR("GeneralString", V_ASN1_GENERALSTRING),
                ASN1_GEN_STR("GENSTR", V_ASN1_GENERALSTRING),
+               ASN1_GEN_STR("NUMERIC", V_ASN1_NUMERICSTRING),
+               ASN1_GEN_STR("NUMERICSTRING", V_ASN1_NUMERICSTRING),
 
                /* Special cases */
                ASN1_GEN_STR("SEQUENCE", V_ASN1_SEQUENCE),
@@ -727,6 +729,7 @@ static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype)
                case V_ASN1_VISIBLESTRING:
                case V_ASN1_UNIVERSALSTRING:
                case V_ASN1_GENERALSTRING:
+               case V_ASN1_NUMERICSTRING:
 
                if (format == ASN1_GEN_FORMAT_ASCII)
                        format = MBSTRING_ASC;
index ba6e3c2e81401a375c8c99c8535ad9185fe160c1..0ac0f16f495ddc0c579852d12ca560588f473442 100644 (file)
@@ -97,7 +97,8 @@ bits is set to zero.
 =item B<UNIVERSALSTRING>, B<UNIV>, B<IA5>, B<IA5STRING>, B<UTF8>,
 B<UTF8String>, B<BMP>, B<BMPSTRING>, B<VISIBLESTRING>,
 B<VISIBLE>, B<PRINTABLESTRING>, B<PRINTABLE>, B<T61>,
-B<T61STRING>, B<TELETEXSTRING>, B<GeneralString>
+B<T61STRING>, B<TELETEXSTRING>, B<GeneralString>, B<NUMERICSTRING>,
+B<NUMERIC>
 
 These encode the corresponding string types. B<value> represents the
 contents of this structure. The format can be B<ASCII> or B<UTF8>.