diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_ncons.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_ncons.c | 28 |
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 | ||
| 106 | IMPLEMENT_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) | 106 | |
| 107 | IMPLEMENT_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) | 107 | GENERAL_SUBTREE * |
| 108 | GENERAL_SUBTREE_new(void) | ||
| 109 | { | ||
| 110 | return (GENERAL_SUBTREE*)ASN1_item_new(&GENERAL_SUBTREE_it); | ||
| 111 | } | ||
| 112 | |||
| 113 | void | ||
| 114 | GENERAL_SUBTREE_free(GENERAL_SUBTREE *a) | ||
| 115 | { | ||
| 116 | ASN1_item_free((ASN1_VALUE *)a, &GENERAL_SUBTREE_it); | ||
| 117 | } | ||
| 118 | |||
| 119 | NAME_CONSTRAINTS * | ||
| 120 | NAME_CONSTRAINTS_new(void) | ||
| 121 | { | ||
| 122 | return (NAME_CONSTRAINTS*)ASN1_item_new(&NAME_CONSTRAINTS_it); | ||
| 123 | } | ||
| 124 | |||
| 125 | void | ||
| 126 | NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a) | ||
| 127 | { | ||
| 128 | ASN1_item_free((ASN1_VALUE *)a, &NAME_CONSTRAINTS_it); | ||
| 129 | } | ||
| 108 | 130 | ||
| 109 | static void * | 131 | static void * |
| 110 | v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | 132 | v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, |
