diff options
author | jsing <> | 2015-07-25 16:00:14 +0000 |
---|---|---|
committer | jsing <> | 2015-07-25 16:00:14 +0000 |
commit | 9a71de96c8bcf60011a8623c652b850b80caa03f (patch) | |
tree | cd45d65e112b344fe18207993fd6fe834040b515 /src/lib/libcrypto/x509v3/v3_sxnet.c | |
parent | 2065a85e8046724356556ea49150db9e5c0e42c6 (diff) | |
download | openbsd-9a71de96c8bcf60011a8623c652b850b80caa03f.tar.gz openbsd-9a71de96c8bcf60011a8623c652b850b80caa03f.tar.bz2 openbsd-9a71de96c8bcf60011a8623c652b850b80caa03f.zip |
Expand ASN.1 template macros - the generated assembly only differs by
changes to line numbers.
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_sxnet.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_sxnet.c | 62 |
1 files changed, 53 insertions, 9 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_sxnet.c b/src/lib/libcrypto/x509v3/v3_sxnet.c index 7029aad916..d87dd34339 100644 --- a/src/lib/libcrypto/x509v3/v3_sxnet.c +++ b/src/lib/libcrypto/x509v3/v3_sxnet.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_sxnet.c,v 1.13 2015/02/10 08:33:10 jsing Exp $ */ | 1 | /* $OpenBSD: v3_sxnet.c,v 1.14 2015/07/25 16:00:14 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -90,10 +90,32 @@ const X509V3_EXT_METHOD v3_sxnet = { | |||
90 | NULL | 90 | NULL |
91 | }; | 91 | }; |
92 | 92 | ||
93 | ASN1_SEQUENCE(SXNETID) = { | 93 | static const ASN1_TEMPLATE SXNETID_seq_tt[] = { |
94 | ASN1_SIMPLE(SXNETID, zone, ASN1_INTEGER), | 94 | { |
95 | ASN1_SIMPLE(SXNETID, user, ASN1_OCTET_STRING) | 95 | .flags = 0, |
96 | } ASN1_SEQUENCE_END(SXNETID) | 96 | .tag = 0, |
97 | .offset = offsetof(SXNETID, zone), | ||
98 | .field_name = "zone", | ||
99 | .item = &ASN1_INTEGER_it, | ||
100 | }, | ||
101 | { | ||
102 | .flags = 0, | ||
103 | .tag = 0, | ||
104 | .offset = offsetof(SXNETID, user), | ||
105 | .field_name = "user", | ||
106 | .item = &ASN1_OCTET_STRING_it, | ||
107 | }, | ||
108 | }; | ||
109 | |||
110 | const ASN1_ITEM SXNETID_it = { | ||
111 | .itype = ASN1_ITYPE_SEQUENCE, | ||
112 | .utype = V_ASN1_SEQUENCE, | ||
113 | .templates = SXNETID_seq_tt, | ||
114 | .tcount = sizeof(SXNETID_seq_tt) / sizeof(ASN1_TEMPLATE), | ||
115 | .funcs = NULL, | ||
116 | .size = sizeof(SXNETID), | ||
117 | .sname = "SXNETID", | ||
118 | }; | ||
97 | 119 | ||
98 | 120 | ||
99 | SXNETID * | 121 | SXNETID * |
@@ -121,10 +143,32 @@ SXNETID_free(SXNETID *a) | |||
121 | ASN1_item_free((ASN1_VALUE *)a, &SXNETID_it); | 143 | ASN1_item_free((ASN1_VALUE *)a, &SXNETID_it); |
122 | } | 144 | } |
123 | 145 | ||
124 | ASN1_SEQUENCE(SXNET) = { | 146 | static const ASN1_TEMPLATE SXNET_seq_tt[] = { |
125 | ASN1_SIMPLE(SXNET, version, ASN1_INTEGER), | 147 | { |
126 | ASN1_SEQUENCE_OF(SXNET, ids, SXNETID) | 148 | .flags = 0, |
127 | } ASN1_SEQUENCE_END(SXNET) | 149 | .tag = 0, |
150 | .offset = offsetof(SXNET, version), | ||
151 | .field_name = "version", | ||
152 | .item = &ASN1_INTEGER_it, | ||
153 | }, | ||
154 | { | ||
155 | .flags = ASN1_TFLG_SEQUENCE_OF, | ||
156 | .tag = 0, | ||
157 | .offset = offsetof(SXNET, ids), | ||
158 | .field_name = "ids", | ||
159 | .item = &SXNETID_it, | ||
160 | }, | ||
161 | }; | ||
162 | |||
163 | const ASN1_ITEM SXNET_it = { | ||
164 | .itype = ASN1_ITYPE_SEQUENCE, | ||
165 | .utype = V_ASN1_SEQUENCE, | ||
166 | .templates = SXNET_seq_tt, | ||
167 | .tcount = sizeof(SXNET_seq_tt) / sizeof(ASN1_TEMPLATE), | ||
168 | .funcs = NULL, | ||
169 | .size = sizeof(SXNET), | ||
170 | .sname = "SXNET", | ||
171 | }; | ||
128 | 172 | ||
129 | 173 | ||
130 | SXNET * | 174 | SXNET * |