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_pcons.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_pcons.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_pcons.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pcons.c b/src/lib/libcrypto/x509v3/v3_pcons.c index 075efd8851..7bece06271 100644 --- a/src/lib/libcrypto/x509v3/v3_pcons.c +++ b/src/lib/libcrypto/x509v3/v3_pcons.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_pcons.c,v 1.6 2015/02/10 05:43:09 jsing Exp $ */ | 1 | /* $OpenBSD: v3_pcons.c,v 1.7 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -82,11 +82,27 @@ const X509V3_EXT_METHOD v3_policy_constraints = { | |||
82 | NULL | 82 | NULL |
83 | }; | 83 | }; |
84 | 84 | ||
85 | ASN1_SEQUENCE(POLICY_CONSTRAINTS) = { | 85 | static const ASN1_TEMPLATE POLICY_CONSTRAINTS_seq_tt[] = { |
86 | ASN1_IMP_OPT(POLICY_CONSTRAINTS, requireExplicitPolicy, | 86 | ASN1_IMP_OPT(POLICY_CONSTRAINTS, requireExplicitPolicy, |
87 | ASN1_INTEGER, 0), | 87 | ASN1_INTEGER, 0), |
88 | ASN1_IMP_OPT(POLICY_CONSTRAINTS, inhibitPolicyMapping, ASN1_INTEGER, 1) | 88 | { |
89 | } ASN1_SEQUENCE_END(POLICY_CONSTRAINTS) | 89 | .flags = ASN1_TFLG_IMPLICIT | ASN1_TFLG_OPTIONAL, |
90 | .tag = 1, | ||
91 | .offset = offsetof(POLICY_CONSTRAINTS, inhibitPolicyMapping), | ||
92 | .field_name = "inhibitPolicyMapping", | ||
93 | .item = &ASN1_INTEGER_it, | ||
94 | }, | ||
95 | }; | ||
96 | |||
97 | const ASN1_ITEM POLICY_CONSTRAINTS_it = { | ||
98 | .itype = ASN1_ITYPE_SEQUENCE, | ||
99 | .utype = V_ASN1_SEQUENCE, | ||
100 | .templates = POLICY_CONSTRAINTS_seq_tt, | ||
101 | .tcount = sizeof(POLICY_CONSTRAINTS_seq_tt) / sizeof(ASN1_TEMPLATE), | ||
102 | .funcs = NULL, | ||
103 | .size = sizeof(POLICY_CONSTRAINTS), | ||
104 | .sname = "POLICY_CONSTRAINTS", | ||
105 | }; | ||
90 | 106 | ||
91 | 107 | ||
92 | POLICY_CONSTRAINTS * | 108 | POLICY_CONSTRAINTS * |