summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_ncons.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_ncons.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_ncons.c28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_ncons.c b/src/lib/libcrypto/x509v3/v3_ncons.c
index 7768dabb1f..7cb272a58f 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.5 2014/07/11 08:44:49 jsing Exp $ */ 1/* $OpenBSD: v3_ncons.c,v 1.6 2015/02/10 05:43:09 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 */
@@ -103,8 +103,30 @@ ASN1_SEQUENCE(NAME_CONSTRAINTS) = {
103} ASN1_SEQUENCE_END(NAME_CONSTRAINTS) 103} ASN1_SEQUENCE_END(NAME_CONSTRAINTS)
104 104
105 105
106IMPLEMENT_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) 106
107IMPLEMENT_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) 107GENERAL_SUBTREE *
108GENERAL_SUBTREE_new(void)
109{
110 return (GENERAL_SUBTREE*)ASN1_item_new(&GENERAL_SUBTREE_it);
111}
112
113void
114GENERAL_SUBTREE_free(GENERAL_SUBTREE *a)
115{
116 ASN1_item_free((ASN1_VALUE *)a, &GENERAL_SUBTREE_it);
117}
118
119NAME_CONSTRAINTS *
120NAME_CONSTRAINTS_new(void)
121{
122 return (NAME_CONSTRAINTS*)ASN1_item_new(&NAME_CONSTRAINTS_it);
123}
124
125void
126NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a)
127{
128 ASN1_item_free((ASN1_VALUE *)a, &NAME_CONSTRAINTS_it);
129}
108 130
109static void * 131static void *
110v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, 132v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx,