]> wagner.pp.ru Git - openssl-gost/engine.git/blob - patches/1.0.2/numeric.diff
Merge pull request #27 from levitte/separate-lib-and-eng
[openssl-gost/engine.git] / patches / 1.0.2 / numeric.diff
1 diff -Nuar openssl-1.0.2d/crypto/asn1/a_mbstr.c openssl-work/crypto/asn1/a_mbstr.c
2 --- openssl-1.0.2d/crypto/asn1/a_mbstr.c        2015-07-09 15:53:21.000000000 +0400
3 +++ openssl-work/crypto/asn1/a_mbstr.c  2015-03-26 13:00:21.000000000 +0400
4 @@ -173,6 +173,8 @@
5          str_type = V_ASN1_PRINTABLESTRING;
6      else if (mask & B_ASN1_IA5STRING)
7          str_type = V_ASN1_IA5STRING;
8 +    else if (mask & B_ASN1_NUMERICSTRING)
9 +        str_type = V_ASN1_NUMERICSTRING;
10      else if (mask & B_ASN1_T61STRING)
11          str_type = V_ASN1_T61STRING;
12      else if (mask & B_ASN1_BMPSTRING) {
13 diff -Nuar openssl-1.0.2d/crypto/asn1/a_strnid.c openssl-work/crypto/asn1/a_strnid.c
14 --- openssl-1.0.2d/crypto/asn1/a_strnid.c       2015-07-09 15:53:21.000000000 +0400
15 +++ openssl-work/crypto/asn1/a_strnid.c 2015-03-26 13:00:21.000000000 +0400
16 @@ -192,7 +192,10 @@
17      {NID_name, 1, ub_name, DIRSTRING_TYPE, 0},
18      {NID_dnQualifier, -1, -1, B_ASN1_PRINTABLESTRING, STABLE_NO_MASK},
19      {NID_domainComponent, 1, -1, B_ASN1_IA5STRING, STABLE_NO_MASK},
20 -    {NID_ms_csp_name, -1, -1, B_ASN1_BMPSTRING, STABLE_NO_MASK}
21 +    {NID_ms_csp_name, -1, -1, B_ASN1_BMPSTRING, STABLE_NO_MASK},
22 +    {NID_INN, 1, 12, B_ASN1_NUMERICSTRING, STABLE_NO_MASK},
23 +    {NID_OGRN, 1, 13, B_ASN1_NUMERICSTRING, STABLE_NO_MASK},
24 +    {NID_SNILS, 1, 11, B_ASN1_NUMERICSTRING, STABLE_NO_MASK}
25  };
26  
27  static int sk_table_cmp(const ASN1_STRING_TABLE *const *a,
28