summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_ncons.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/x509v3/v3_ncons.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_ncons.c b/src/lib/libcrypto/x509v3/v3_ncons.c
index e154b6ba18..22b9cfc683 100644
--- a/src/lib/libcrypto/x509v3/v3_ncons.c
+++ b/src/lib/libcrypto/x509v3/v3_ncons.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_ncons.c,v 1.7 2015/07/25 16:00:14 jsing Exp $ */ 1/* $OpenBSD: v3_ncons.c,v 1.8 2015/07/25 16:14:29 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 */
@@ -124,10 +124,20 @@ const ASN1_ITEM GENERAL_SUBTREE_it = {
124}; 124};
125 125
126static const ASN1_TEMPLATE NAME_CONSTRAINTS_seq_tt[] = { 126static const ASN1_TEMPLATE NAME_CONSTRAINTS_seq_tt[] = {
127 ASN1_IMP_SEQUENCE_OF_OPT(NAME_CONSTRAINTS, permittedSubtrees, 127 {
128 GENERAL_SUBTREE, 0), 128 .flags = ASN1_TFLG_IMPLICIT | ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL,
129 ASN1_IMP_SEQUENCE_OF_OPT(NAME_CONSTRAINTS, excludedSubtrees, 129 .tag = 0,
130 GENERAL_SUBTREE, 1), 130 .offset = offsetof(NAME_CONSTRAINTS, permittedSubtrees),
131 .field_name = "permittedSubtrees",
132 .item = &GENERAL_SUBTREE_it,
133 },
134 {
135 .flags = ASN1_TFLG_IMPLICIT | ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL,
136 .tag = 1,
137 .offset = offsetof(NAME_CONSTRAINTS, excludedSubtrees),
138 .field_name = "excludedSubtrees",
139 .item = &GENERAL_SUBTREE_it,
140 },
131}; 141};
132 142
133const ASN1_ITEM NAME_CONSTRAINTS_it = { 143const ASN1_ITEM NAME_CONSTRAINTS_it = {
@@ -141,7 +151,6 @@ const ASN1_ITEM NAME_CONSTRAINTS_it = {
141}; 151};
142 152
143 153
144
145GENERAL_SUBTREE * 154GENERAL_SUBTREE *
146GENERAL_SUBTREE_new(void) 155GENERAL_SUBTREE_new(void)
147{ 156{