diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/x_long.c')
-rw-r--r-- | src/lib/libcrypto/asn1/x_long.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/x_long.c b/src/lib/libcrypto/asn1/x_long.c index 1add387453..90a41129bc 100644 --- a/src/lib/libcrypto/asn1/x_long.c +++ b/src/lib/libcrypto/asn1/x_long.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_long.c,v 1.9 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: x_long.c,v 1.10 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 | */ |
@@ -85,13 +85,25 @@ static ASN1_PRIMITIVE_FUNCS long_pf = { | |||
85 | long_print | 85 | long_print |
86 | }; | 86 | }; |
87 | 87 | ||
88 | ASN1_ITEM_start(LONG) | 88 | const ASN1_ITEM LONG_it = { |
89 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &long_pf, ASN1_LONG_UNDEF, "LONG" | 89 | .itype = ASN1_ITYPE_PRIMITIVE, |
90 | ASN1_ITEM_end(LONG) | 90 | .utype = V_ASN1_INTEGER, |
91 | .templates = NULL, | ||
92 | .tcount = 0, | ||
93 | .funcs = &long_pf, | ||
94 | .size = ASN1_LONG_UNDEF, | ||
95 | .sname = "LONG", | ||
96 | }; | ||
91 | 97 | ||
92 | ASN1_ITEM_start(ZLONG) | 98 | const ASN1_ITEM ZLONG_it = { |
93 | ASN1_ITYPE_PRIMITIVE, V_ASN1_INTEGER, NULL, 0, &long_pf, 0, "ZLONG" | 99 | .itype = ASN1_ITYPE_PRIMITIVE, |
94 | ASN1_ITEM_end(ZLONG) | 100 | .utype = V_ASN1_INTEGER, |
101 | .templates = NULL, | ||
102 | .tcount = 0, | ||
103 | .funcs = &long_pf, | ||
104 | .size = 0, | ||
105 | .sname = "ZLONG", | ||
106 | }; | ||
95 | 107 | ||
96 | static int | 108 | static int |
97 | long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | 109 | long_new(ASN1_VALUE **pval, const ASN1_ITEM *it) |