aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/a_strnid.c
diff options
context:
space:
mode:
authorDmitry Belyavsky <beldmit@gmail.com>2015-08-26 13:34:31 +0100
committerMatt Caswell <matt@openssl.org>2015-09-07 10:34:44 +0100
commit68572c8af3ebb0a0729acad2196763df463927c1 (patch)
treeb8f3725da9dbd9a7f605c950f4c552d04137a588 /crypto/asn1/a_strnid.c
parent26d57a1a9225db13324d6c699753437da4de910c (diff)
downloadopenssl-68572c8af3ebb0a0729acad2196763df463927c1.zip
openssl-68572c8af3ebb0a0729acad2196763df463927c1.tar.gz
openssl-68572c8af3ebb0a0729acad2196763df463927c1.tar.bz2
Add NumericString support
GOST requires improved NumericString support. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/asn1/a_strnid.c')
-rw-r--r--crypto/asn1/a_strnid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/asn1/a_strnid.c b/crypto/asn1/a_strnid.c
index 7bfc768..1c6bbd4 100644
--- a/crypto/asn1/a_strnid.c
+++ b/crypto/asn1/a_strnid.c
@@ -192,7 +192,10 @@ static const ASN1_STRING_TABLE tbl_standard[] = {
{NID_name, 1, ub_name, DIRSTRING_TYPE, 0},
{NID_dnQualifier, -1, -1, B_ASN1_PRINTABLESTRING, STABLE_NO_MASK},
{NID_domainComponent, 1, -1, B_ASN1_IA5STRING, STABLE_NO_MASK},
- {NID_ms_csp_name, -1, -1, B_ASN1_BMPSTRING, STABLE_NO_MASK}
+ {NID_ms_csp_name, -1, -1, B_ASN1_BMPSTRING, STABLE_NO_MASK},
+ {NID_INN, 1, 12, B_ASN1_NUMERICSTRING, STABLE_NO_MASK},
+ {NID_OGRN, 1, 13, B_ASN1_NUMERICSTRING, STABLE_NO_MASK},
+ {NID_SNILS, 1, 11, B_ASN1_NUMERICSTRING, STABLE_NO_MASK}
};
static int sk_table_cmp(const ASN1_STRING_TABLE *const *a,