summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_pcons.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/x509v3/v3_pcons.c24
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
85ASN1_SEQUENCE(POLICY_CONSTRAINTS) = { 85static 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
97const 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
92POLICY_CONSTRAINTS * 108POLICY_CONSTRAINTS *