diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/asn1/x_bignum.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/x_bignum.c b/src/lib/libcrypto/asn1/x_bignum.c index dafe9b3016..73f0f73c1c 100644 --- a/src/lib/libcrypto/asn1/x_bignum.c +++ b/src/lib/libcrypto/asn1/x_bignum.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_bignum.c,v 1.7 2014/07/12 16:42:47 miod Exp $ */ | 1 | /* $OpenBSD: x_bignum.c,v 1.8 2015/07/25 17:07:17 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -86,13 +86,25 @@ static ASN1_PRIMITIVE_FUNCS bignum_pf = { | |||
86 | bn_i2c | 86 | bn_i2c |
87 | }; | 87 | }; |
88 | 88 | ||
89 | ASN1_ITEM_start(BIGNUM) | 89 | const ASN1_ITEM BIGNUM_it = { |
90 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" | 90 | .itype = ASN1_ITYPE_PRIMITIVE, |
91 | ASN1_ITEM_end(BIGNUM) | 91 | .utype = V_ASN1_INTEGER, |
92 | .templates = NULL, | ||
93 | .tcount = 0, | ||
94 | .funcs = &bignum_pf, | ||
95 | .size = 0, | ||
96 | .sname = "BIGNUM", | ||
97 | }; | ||
92 | 98 | ||
93 | ASN1_ITEM_start(CBIGNUM) | 99 | const ASN1_ITEM CBIGNUM_it = { |
94 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &bignum_pf, 0, "BIGNUM" | 100 | .itype = ASN1_ITYPE_PRIMITIVE, |
95 | ASN1_ITEM_end(CBIGNUM) | 101 | .utype = V_ASN1_INTEGER, |
102 | .templates = NULL, | ||
103 | .tcount = 0, | ||
104 | .funcs = &bignum_pf, | ||
105 | .size = 0, | ||
106 | .sname = "BIGNUM", | ||
107 | }; | ||
96 | 108 | ||
97 | static int | 109 | static int |
98 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 110 | bn_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |