Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/include/openssl/x509v3.h |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /* | - |
2 | * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. | - |
3 | * | - |
4 | * Licensed under the OpenSSL license (the "License"). You may not use | - |
5 | * this file except in compliance with the License. You can obtain a copy | - |
6 | * in the file LICENSE in the source distribution or at | - |
7 | * https://www.openssl.org/source/license.html | - |
8 | */ | - |
9 | - | |
10 | #ifndef HEADER_X509V3_H | - |
11 | # define HEADER_X509V3_H | - |
12 | - | |
13 | # include <openssl/bio.h> | - |
14 | # include <openssl/x509.h> | - |
15 | # include <openssl/conf.h> | - |
16 | # include <openssl/x509v3err.h> | - |
17 | - | |
18 | #ifdef __cplusplus | - |
19 | extern "C" { | - |
20 | #endif | - |
21 | - | |
22 | /* Forward reference */ | - |
23 | struct v3_ext_method; | - |
24 | struct v3_ext_ctx; | - |
25 | - | |
26 | /* Useful typedefs */ | - |
27 | - | |
28 | typedef void *(*X509V3_EXT_NEW)(void); | - |
29 | typedef void (*X509V3_EXT_FREE) (void *); | - |
30 | typedef void *(*X509V3_EXT_D2I)(void *, const unsigned char **, long); | - |
31 | typedef int (*X509V3_EXT_I2D) (void *, unsigned char **); | - |
32 | typedef STACK_OF(CONF_VALUE) * | - |
33 | (*X509V3_EXT_I2V) (const struct v3_ext_method *method, void *ext, | - |
34 | STACK_OF(CONF_VALUE) *extlist); | - |
35 | typedef void *(*X509V3_EXT_V2I)(const struct v3_ext_method *method, | - |
36 | struct v3_ext_ctx *ctx, | - |
37 | STACK_OF(CONF_VALUE) *values); | - |
38 | typedef char *(*X509V3_EXT_I2S)(const struct v3_ext_method *method, | - |
39 | void *ext); | - |
40 | typedef void *(*X509V3_EXT_S2I)(const struct v3_ext_method *method, | - |
41 | struct v3_ext_ctx *ctx, const char *str); | - |
42 | typedef int (*X509V3_EXT_I2R) (const struct v3_ext_method *method, void *ext, | - |
43 | BIO *out, int indent); | - |
44 | typedef void *(*X509V3_EXT_R2I)(const struct v3_ext_method *method, | - |
45 | struct v3_ext_ctx *ctx, const char *str); | - |
46 | - | |
47 | /* V3 extension structure */ | - |
48 | - | |
49 | struct v3_ext_method { | - |
50 | int ext_nid; | - |
51 | int ext_flags; | - |
52 | /* If this is set the following four fields are ignored */ | - |
53 | ASN1_ITEM_EXP *it; | - |
54 | /* Old style ASN1 calls */ | - |
55 | X509V3_EXT_NEW ext_new; | - |
56 | X509V3_EXT_FREE ext_free; | - |
57 | X509V3_EXT_D2I d2i; | - |
58 | X509V3_EXT_I2D i2d; | - |
59 | /* The following pair is used for string extensions */ | - |
60 | X509V3_EXT_I2S i2s; | - |
61 | X509V3_EXT_S2I s2i; | - |
62 | /* The following pair is used for multi-valued extensions */ | - |
63 | X509V3_EXT_I2V i2v; | - |
64 | X509V3_EXT_V2I v2i; | - |
65 | /* The following are used for raw extensions */ | - |
66 | X509V3_EXT_I2R i2r; | - |
67 | X509V3_EXT_R2I r2i; | - |
68 | void *usr_data; /* Any extension specific data */ | - |
69 | }; | - |
70 | - | |
71 | typedef struct X509V3_CONF_METHOD_st { | - |
72 | char *(*get_string) (void *db, const char *section, const char *value); | - |
73 | STACK_OF(CONF_VALUE) *(*get_section) (void *db, const char *section); | - |
74 | void (*free_string) (void *db, char *string); | - |
75 | void (*free_section) (void *db, STACK_OF(CONF_VALUE) *section); | - |
76 | } X509V3_CONF_METHOD; | - |
77 | - | |
78 | /* Context specific info */ | - |
79 | struct v3_ext_ctx { | - |
80 | # define CTX_TEST 0x1 | - |
81 | # define X509V3_CTX_REPLACE 0x2 | - |
82 | int flags; | - |
83 | X509 *issuer_cert; | - |
84 | X509 *subject_cert; | - |
85 | X509_REQ *subject_req; | - |
86 | X509_CRL *crl; | - |
87 | X509V3_CONF_METHOD *db_meth; | - |
88 | void *db; | - |
89 | /* Maybe more here */ | - |
90 | }; | - |
91 | - | |
92 | typedef struct v3_ext_method X509V3_EXT_METHOD; | - |
93 | - | |
94 | DEFINE_STACK_OF(X509V3_EXT_METHOD) never executed: end of block never executed: end of block never executed: end of block never executed: end of block never executed: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); never executed: return (X509V3_EXT_METHOD *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_X509V3_EXT_METHOD *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_X509V3_EXT_METHOD *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_X509V3_EXT_METHOD *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (X509V3_EXT_METHOD *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (X509V3_EXT_METHOD *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (X509V3_EXT_METHOD *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (X509V3_EXT_METHOD *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (X509V3_EXT_METHOD *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_X509V3_EXT_METHOD *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_X509V3_EXT_METHOD *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_X509V3_EXT_METHOD_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0 |
95 | - | |
96 | /* ext_flags values */ | - |
97 | # define X509V3_EXT_DYNAMIC 0x1 | - |
98 | # define X509V3_EXT_CTX_DEP 0x2 | - |
99 | # define X509V3_EXT_MULTILINE 0x4 | - |
100 | - | |
101 | typedef BIT_STRING_BITNAME ENUMERATED_NAMES; | - |
102 | - | |
103 | typedef struct BASIC_CONSTRAINTS_st { | - |
104 | int ca; | - |
105 | ASN1_INTEGER *pathlen; | - |
106 | } BASIC_CONSTRAINTS; | - |
107 | - | |
108 | typedef struct PKEY_USAGE_PERIOD_st { | - |
109 | ASN1_GENERALIZEDTIME *notBefore; | - |
110 | ASN1_GENERALIZEDTIME *notAfter; | - |
111 | } PKEY_USAGE_PERIOD; | - |
112 | - | |
113 | typedef struct otherName_st { | - |
114 | ASN1_OBJECT *type_id; | - |
115 | ASN1_TYPE *value; | - |
116 | } OTHERNAME; | - |
117 | - | |
118 | typedef struct EDIPartyName_st { | - |
119 | ASN1_STRING *nameAssigner; | - |
120 | ASN1_STRING *partyName; | - |
121 | } EDIPARTYNAME; | - |
122 | - | |
123 | typedef struct GENERAL_NAME_st { | - |
124 | # define GEN_OTHERNAME 0 | - |
125 | # define GEN_EMAIL 1 | - |
126 | # define GEN_DNS 2 | - |
127 | # define GEN_X400 3 | - |
128 | # define GEN_DIRNAME 4 | - |
129 | # define GEN_EDIPARTY 5 | - |
130 | # define GEN_URI 6 | - |
131 | # define GEN_IPADD 7 | - |
132 | # define GEN_RID 8 | - |
133 | int type; | - |
134 | union { | - |
135 | char *ptr; | - |
136 | OTHERNAME *otherName; /* otherName */ | - |
137 | ASN1_IA5STRING *rfc822Name; | - |
138 | ASN1_IA5STRING *dNSName; | - |
139 | ASN1_TYPE *x400Address; | - |
140 | X509_NAME *directoryName; | - |
141 | EDIPARTYNAME *ediPartyName; | - |
142 | ASN1_IA5STRING *uniformResourceIdentifier; | - |
143 | ASN1_OCTET_STRING *iPAddress; | - |
144 | ASN1_OBJECT *registeredID; | - |
145 | /* Old names */ | - |
146 | ASN1_OCTET_STRING *ip; /* iPAddress */ | - |
147 | X509_NAME *dirn; /* dirn */ | - |
148 | ASN1_IA5STRING *ia5; /* rfc822Name, dNSName, | - |
149 | * uniformResourceIdentifier */ | - |
150 | ASN1_OBJECT *rid; /* registeredID */ | - |
151 | ASN1_TYPE *other; /* x400Address */ | - |
152 | } d; | - |
153 | } GENERAL_NAME; | - |
154 | - | |
155 | typedef struct ACCESS_DESCRIPTION_st { | - |
156 | ASN1_OBJECT *method; | - |
157 | GENERAL_NAME *location; | - |
158 | } ACCESS_DESCRIPTION; | - |
159 | - | |
160 | typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS; | - |
161 | - | |
162 | typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE; | - |
163 | - | |
164 | typedef STACK_OF(ASN1_INTEGER) TLS_FEATURE; | - |
165 | - | |
166 | DEFINE_STACK_OF(GENERAL_NAME) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 52061 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 29506 times by 1 test: return (GENERAL_NAME *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_GENERAL_NAME *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); executed 107 times by 2 tests: return (struct stack_st_GENERAL_NAME *)OPENSSL_sk_new_null(); Executed by:
executed 6 times by 1 test: return (struct stack_st_GENERAL_NAME *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); Executed by:
never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (GENERAL_NAME *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (GENERAL_NAME *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); executed 110 times by 3 tests: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); Executed by:
never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (GENERAL_NAME *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (GENERAL_NAME *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (GENERAL_NAME *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_GENERAL_NAME *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_GENERAL_NAME *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_GENERAL_NAME_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-52061 |
167 | typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES; | - |
168 | DEFINE_STACK_OF(GENERAL_NAMES) never executed: end of block never executed: end of block executed 38051 times by 1 test: end of block Executed by:
never executed: end of block never executed: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); never executed: return (GENERAL_NAMES *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_GENERAL_NAMES *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); executed 164 times by 2 tests: return (struct stack_st_GENERAL_NAMES *)OPENSSL_sk_new_null(); Executed by:
never executed: return (struct stack_st_GENERAL_NAMES *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (GENERAL_NAMES *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (GENERAL_NAMES *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); executed 978 times by 2 tests: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); Executed by:
never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (GENERAL_NAMES *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (GENERAL_NAMES *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (GENERAL_NAMES *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_GENERAL_NAMES *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_GENERAL_NAMES *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_GENERAL_NAMES_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-38051 |
169 | - | |
170 | DEFINE_STACK_OF(ACCESS_DESCRIPTION) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 635 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 145 times by 1 test: return (ACCESS_DESCRIPTION *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_ACCESS_DESCRIPTION *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_ACCESS_DESCRIPTION *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_ACCESS_DESCRIPTION *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (ACCESS_DESCRIPTION *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (ACCESS_DESCRIPTION *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (ACCESS_DESCRIPTION *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (ACCESS_DESCRIPTION *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (ACCESS_DESCRIPTION *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ACCESS_DESCRIPTION *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ACCESS_DESCRIPTION *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_ACCESS_DESCRIPTION_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-635 |
171 | - | |
172 | typedef struct DIST_POINT_NAME_st { | - |
173 | int type; | - |
174 | union { | - |
175 | GENERAL_NAMES *fullname; | - |
176 | STACK_OF(X509_NAME_ENTRY) *relativename; | - |
177 | } name; | - |
178 | /* If relativename then this contains the full distribution point name */ | - |
179 | X509_NAME *dpname; | - |
180 | } DIST_POINT_NAME; | - |
181 | /* All existing reasons */ | - |
182 | # define CRLDP_ALL_REASONS 0x807f | - |
183 | - | |
184 | # define CRL_REASON_NONE -1 | - |
185 | # define CRL_REASON_UNSPECIFIED 0 | - |
186 | # define CRL_REASON_KEY_COMPROMISE 1 | - |
187 | # define CRL_REASON_CA_COMPROMISE 2 | - |
188 | # define CRL_REASON_AFFILIATION_CHANGED 3 | - |
189 | # define CRL_REASON_SUPERSEDED 4 | - |
190 | # define CRL_REASON_CESSATION_OF_OPERATION 5 | - |
191 | # define CRL_REASON_CERTIFICATE_HOLD 6 | - |
192 | # define CRL_REASON_REMOVE_FROM_CRL 8 | - |
193 | # define CRL_REASON_PRIVILEGE_WITHDRAWN 9 | - |
194 | # define CRL_REASON_AA_COMPROMISE 10 | - |
195 | - | |
196 | struct DIST_POINT_st { | - |
197 | DIST_POINT_NAME *distpoint; | - |
198 | ASN1_BIT_STRING *reasons; | - |
199 | GENERAL_NAMES *CRLissuer; | - |
200 | int dp_reasons; | - |
201 | }; | - |
202 | - | |
203 | typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS; | - |
204 | - | |
205 | DEFINE_STACK_OF(DIST_POINT) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 17663 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 3126 times by 1 test: return (DIST_POINT *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_DIST_POINT *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_DIST_POINT *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_DIST_POINT *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (DIST_POINT *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (DIST_POINT *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (DIST_POINT *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (DIST_POINT *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (DIST_POINT *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_DIST_POINT *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_DIST_POINT *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_DIST_POINT_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-17663 |
206 | - | |
207 | struct AUTHORITY_KEYID_st { | - |
208 | ASN1_OCTET_STRING *keyid; | - |
209 | GENERAL_NAMES *issuer; | - |
210 | ASN1_INTEGER *serial; | - |
211 | }; | - |
212 | - | |
213 | /* Strong extranet structures */ | - |
214 | - | |
215 | typedef struct SXNET_ID_st { | - |
216 | ASN1_INTEGER *zone; | - |
217 | ASN1_OCTET_STRING *user; | - |
218 | } SXNETID; | - |
219 | - | |
220 | DEFINE_STACK_OF(SXNETID) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 561 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
never executed: return (SXNETID *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_SXNETID *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_SXNETID *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_SXNETID *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (SXNETID *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (SXNETID *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (SXNETID *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (SXNETID *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (SXNETID *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_SXNETID *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_SXNETID *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_SXNETID_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-561 |
221 | - | |
222 | typedef struct SXNET_st { | - |
223 | ASN1_INTEGER *version; | - |
224 | STACK_OF(SXNETID) *ids; | - |
225 | } SXNET; | - |
226 | - | |
227 | typedef struct NOTICEREF_st { | - |
228 | ASN1_STRING *organization; | - |
229 | STACK_OF(ASN1_INTEGER) *noticenos; | - |
230 | } NOTICEREF; | - |
231 | - | |
232 | typedef struct USERNOTICE_st { | - |
233 | NOTICEREF *noticeref; | - |
234 | ASN1_STRING *exptext; | - |
235 | } USERNOTICE; | - |
236 | - | |
237 | typedef struct POLICYQUALINFO_st { | - |
238 | ASN1_OBJECT *pqualid; | - |
239 | union { | - |
240 | ASN1_IA5STRING *cpsuri; | - |
241 | USERNOTICE *usernotice; | - |
242 | ASN1_TYPE *other; | - |
243 | } d; | - |
244 | } POLICYQUALINFO; | - |
245 | - | |
246 | DEFINE_STACK_OF(POLICYQUALINFO) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 2949 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 2095 times by 1 test: return (POLICYQUALINFO *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_POLICYQUALINFO *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_POLICYQUALINFO *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_POLICYQUALINFO *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (POLICYQUALINFO *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (POLICYQUALINFO *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (POLICYQUALINFO *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (POLICYQUALINFO *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (POLICYQUALINFO *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_POLICYQUALINFO *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_POLICYQUALINFO *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_POLICYQUALINFO_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-2949 |
247 | - | |
248 | typedef struct POLICYINFO_st { | - |
249 | ASN1_OBJECT *policyid; | - |
250 | STACK_OF(POLICYQUALINFO) *qualifiers; | - |
251 | } POLICYINFO; | - |
252 | - | |
253 | typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES; | - |
254 | - | |
255 | DEFINE_STACK_OF(POLICYINFO) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 2291 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 1165 times by 1 test: return (POLICYINFO *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_POLICYINFO *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_POLICYINFO *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_POLICYINFO *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (POLICYINFO *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (POLICYINFO *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (POLICYINFO *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (POLICYINFO *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (POLICYINFO *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_POLICYINFO *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_POLICYINFO *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_POLICYINFO_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-2291 |
256 | - | |
257 | typedef struct POLICY_MAPPING_st { | - |
258 | ASN1_OBJECT *issuerDomainPolicy; | - |
259 | ASN1_OBJECT *subjectDomainPolicy; | - |
260 | } POLICY_MAPPING; | - |
261 | - | |
262 | DEFINE_STACK_OF(POLICY_MAPPING) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 1120 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 572 times by 1 test: return (POLICY_MAPPING *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_POLICY_MAPPING *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_POLICY_MAPPING *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_POLICY_MAPPING *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (POLICY_MAPPING *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (POLICY_MAPPING *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (POLICY_MAPPING *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (POLICY_MAPPING *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (POLICY_MAPPING *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_POLICY_MAPPING *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_POLICY_MAPPING *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_POLICY_MAPPING_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-1120 |
263 | - | |
264 | typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS; | - |
265 | - | |
266 | typedef struct GENERAL_SUBTREE_st { | - |
267 | GENERAL_NAME *base; | - |
268 | ASN1_INTEGER *minimum; | - |
269 | ASN1_INTEGER *maximum; | - |
270 | } GENERAL_SUBTREE; | - |
271 | - | |
272 | DEFINE_STACK_OF(GENERAL_SUBTREE) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 1592722 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 1584575 times by 1 test: return (GENERAL_SUBTREE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_GENERAL_SUBTREE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_GENERAL_SUBTREE *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_GENERAL_SUBTREE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (GENERAL_SUBTREE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (GENERAL_SUBTREE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (GENERAL_SUBTREE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (GENERAL_SUBTREE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (GENERAL_SUBTREE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_GENERAL_SUBTREE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_GENERAL_SUBTREE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_GENERAL_SUBTREE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-1592722 |
273 | - | |
274 | struct NAME_CONSTRAINTS_st { | - |
275 | STACK_OF(GENERAL_SUBTREE) *permittedSubtrees; | - |
276 | STACK_OF(GENERAL_SUBTREE) *excludedSubtrees; | - |
277 | }; | - |
278 | - | |
279 | typedef struct POLICY_CONSTRAINTS_st { | - |
280 | ASN1_INTEGER *requireExplicitPolicy; | - |
281 | ASN1_INTEGER *inhibitPolicyMapping; | - |
282 | } POLICY_CONSTRAINTS; | - |
283 | - | |
284 | /* Proxy certificate structures, see RFC 3820 */ | - |
285 | typedef struct PROXY_POLICY_st { | - |
286 | ASN1_OBJECT *policyLanguage; | - |
287 | ASN1_OCTET_STRING *policy; | - |
288 | } PROXY_POLICY; | - |
289 | - | |
290 | typedef struct PROXY_CERT_INFO_EXTENSION_st { | - |
291 | ASN1_INTEGER *pcPathLengthConstraint; | - |
292 | PROXY_POLICY *proxyPolicy; | - |
293 | } PROXY_CERT_INFO_EXTENSION; | - |
294 | - | |
295 | DECLARE_ASN1_FUNCTIONS(PROXY_POLICY) | - |
296 | DECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION) | - |
297 | - | |
298 | struct ISSUING_DIST_POINT_st { | - |
299 | DIST_POINT_NAME *distpoint; | - |
300 | int onlyuser; | - |
301 | int onlyCA; | - |
302 | ASN1_BIT_STRING *onlysomereasons; | - |
303 | int indirectCRL; | - |
304 | int onlyattr; | - |
305 | }; | - |
306 | - | |
307 | /* Values in idp_flags field */ | - |
308 | /* IDP present */ | - |
309 | # define IDP_PRESENT 0x1 | - |
310 | /* IDP values inconsistent */ | - |
311 | # define IDP_INVALID 0x2 | - |
312 | /* onlyuser true */ | - |
313 | # define IDP_ONLYUSER 0x4 | - |
314 | /* onlyCA true */ | - |
315 | # define IDP_ONLYCA 0x8 | - |
316 | /* onlyattr true */ | - |
317 | # define IDP_ONLYATTR 0x10 | - |
318 | /* indirectCRL true */ | - |
319 | # define IDP_INDIRECT 0x20 | - |
320 | /* onlysomereasons present */ | - |
321 | # define IDP_REASONS 0x40 | - |
322 | - | |
323 | # define X509V3_conf_err(val) ERR_add_error_data(6, \ | - |
324 | "section:", (val)->section, \ | - |
325 | ",name:", (val)->name, ",value:", (val)->value) | - |
326 | - | |
327 | # define X509V3_set_ctx_test(ctx) \ | - |
328 | X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST) | - |
329 | # define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL; | - |
330 | - | |
331 | # define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \ | - |
332 | 0,0,0,0, \ | - |
333 | 0,0, \ | - |
334 | (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \ | - |
335 | (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \ | - |
336 | NULL, NULL, \ | - |
337 | table} | - |
338 | - | |
339 | # define EXT_IA5STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_IA5STRING), \ | - |
340 | 0,0,0,0, \ | - |
341 | (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \ | - |
342 | (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \ | - |
343 | 0,0,0,0, \ | - |
344 | NULL} | - |
345 | - | |
346 | # define EXT_END { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | - |
347 | - | |
348 | /* X509_PURPOSE stuff */ | - |
349 | - | |
350 | # define EXFLAG_BCONS 0x1 | - |
351 | # define EXFLAG_KUSAGE 0x2 | - |
352 | # define EXFLAG_XKUSAGE 0x4 | - |
353 | # define EXFLAG_NSCERT 0x8 | - |
354 | - | |
355 | # define EXFLAG_CA 0x10 | - |
356 | /* Really self issued not necessarily self signed */ | - |
357 | # define EXFLAG_SI 0x20 | - |
358 | # define EXFLAG_V1 0x40 | - |
359 | # define EXFLAG_INVALID 0x80 | - |
360 | /* EXFLAG_SET is set to indicate that some values have been precomputed */ | - |
361 | # define EXFLAG_SET 0x100 | - |
362 | # define EXFLAG_CRITICAL 0x200 | - |
363 | # define EXFLAG_PROXY 0x400 | - |
364 | - | |
365 | # define EXFLAG_INVALID_POLICY 0x800 | - |
366 | # define EXFLAG_FRESHEST 0x1000 | - |
367 | /* Self signed */ | - |
368 | # define EXFLAG_SS 0x2000 | - |
369 | - | |
370 | # define KU_DIGITAL_SIGNATURE 0x0080 | - |
371 | # define KU_NON_REPUDIATION 0x0040 | - |
372 | # define KU_KEY_ENCIPHERMENT 0x0020 | - |
373 | # define KU_DATA_ENCIPHERMENT 0x0010 | - |
374 | # define KU_KEY_AGREEMENT 0x0008 | - |
375 | # define KU_KEY_CERT_SIGN 0x0004 | - |
376 | # define KU_CRL_SIGN 0x0002 | - |
377 | # define KU_ENCIPHER_ONLY 0x0001 | - |
378 | # define KU_DECIPHER_ONLY 0x8000 | - |
379 | - | |
380 | # define NS_SSL_CLIENT 0x80 | - |
381 | # define NS_SSL_SERVER 0x40 | - |
382 | # define NS_SMIME 0x20 | - |
383 | # define NS_OBJSIGN 0x10 | - |
384 | # define NS_SSL_CA 0x04 | - |
385 | # define NS_SMIME_CA 0x02 | - |
386 | # define NS_OBJSIGN_CA 0x01 | - |
387 | # define NS_ANY_CA (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA) | - |
388 | - | |
389 | # define XKU_SSL_SERVER 0x1 | - |
390 | # define XKU_SSL_CLIENT 0x2 | - |
391 | # define XKU_SMIME 0x4 | - |
392 | # define XKU_CODE_SIGN 0x8 | - |
393 | # define XKU_SGC 0x10 | - |
394 | # define XKU_OCSP_SIGN 0x20 | - |
395 | # define XKU_TIMESTAMP 0x40 | - |
396 | # define XKU_DVCS 0x80 | - |
397 | # define XKU_ANYEKU 0x100 | - |
398 | - | |
399 | # define X509_PURPOSE_DYNAMIC 0x1 | - |
400 | # define X509_PURPOSE_DYNAMIC_NAME 0x2 | - |
401 | - | |
402 | typedef struct x509_purpose_st { | - |
403 | int purpose; | - |
404 | int trust; /* Default trust ID */ | - |
405 | int flags; | - |
406 | int (*check_purpose) (const struct x509_purpose_st *, const X509 *, int); | - |
407 | char *name; | - |
408 | char *sname; | - |
409 | void *usr_data; | - |
410 | } X509_PURPOSE; | - |
411 | - | |
412 | # define X509_PURPOSE_SSL_CLIENT 1 | - |
413 | # define X509_PURPOSE_SSL_SERVER 2 | - |
414 | # define X509_PURPOSE_NS_SSL_SERVER 3 | - |
415 | # define X509_PURPOSE_SMIME_SIGN 4 | - |
416 | # define X509_PURPOSE_SMIME_ENCRYPT 5 | - |
417 | # define X509_PURPOSE_CRL_SIGN 6 | - |
418 | # define X509_PURPOSE_ANY 7 | - |
419 | # define X509_PURPOSE_OCSP_HELPER 8 | - |
420 | # define X509_PURPOSE_TIMESTAMP_SIGN 9 | - |
421 | - | |
422 | # define X509_PURPOSE_MIN 1 | - |
423 | # define X509_PURPOSE_MAX 9 | - |
424 | - | |
425 | /* Flags for X509V3_EXT_print() */ | - |
426 | - | |
427 | # define X509V3_EXT_UNKNOWN_MASK (0xfL << 16) | - |
428 | /* Return error for unknown extensions */ | - |
429 | # define X509V3_EXT_DEFAULT 0 | - |
430 | /* Print error for unknown extensions */ | - |
431 | # define X509V3_EXT_ERROR_UNKNOWN (1L << 16) | - |
432 | /* ASN1 parse unknown extensions */ | - |
433 | # define X509V3_EXT_PARSE_UNKNOWN (2L << 16) | - |
434 | /* BIO_dump unknown extensions */ | - |
435 | # define X509V3_EXT_DUMP_UNKNOWN (3L << 16) | - |
436 | - | |
437 | /* Flags for X509V3_add1_i2d */ | - |
438 | - | |
439 | # define X509V3_ADD_OP_MASK 0xfL | - |
440 | # define X509V3_ADD_DEFAULT 0L | - |
441 | # define X509V3_ADD_APPEND 1L | - |
442 | # define X509V3_ADD_REPLACE 2L | - |
443 | # define X509V3_ADD_REPLACE_EXISTING 3L | - |
444 | # define X509V3_ADD_KEEP_EXISTING 4L | - |
445 | # define X509V3_ADD_DELETE 5L | - |
446 | # define X509V3_ADD_SILENT 0x10 | - |
447 | - | |
448 | DEFINE_STACK_OF(X509_PURPOSE) never executed: end of block never executed: end of block never executed: end of block never executed: end of block never executed: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); never executed: return (X509_PURPOSE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_X509_PURPOSE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_X509_PURPOSE *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_X509_PURPOSE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (X509_PURPOSE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (X509_PURPOSE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (X509_PURPOSE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (X509_PURPOSE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (X509_PURPOSE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_X509_PURPOSE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_X509_PURPOSE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_X509_PURPOSE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0 |
449 | - | |
450 | DECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS) | - |
451 | - | |
452 | DECLARE_ASN1_FUNCTIONS(SXNET) | - |
453 | DECLARE_ASN1_FUNCTIONS(SXNETID) | - |
454 | - | |
455 | int SXNET_add_id_asc(SXNET **psx, const char *zone, const char *user, int userlen); | - |
456 | int SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, const char *user, | - |
457 | int userlen); | - |
458 | int SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *izone, const char *user, | - |
459 | int userlen); | - |
460 | - | |
461 | ASN1_OCTET_STRING *SXNET_get_id_asc(SXNET *sx, const char *zone); | - |
462 | ASN1_OCTET_STRING *SXNET_get_id_ulong(SXNET *sx, unsigned long lzone); | - |
463 | ASN1_OCTET_STRING *SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone); | - |
464 | - | |
465 | DECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID) | - |
466 | - | |
467 | DECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD) | - |
468 | - | |
469 | DECLARE_ASN1_FUNCTIONS(GENERAL_NAME) | - |
470 | GENERAL_NAME *GENERAL_NAME_dup(GENERAL_NAME *a); | - |
471 | int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b); | - |
472 | - | |
473 | ASN1_BIT_STRING *v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, | - |
474 | X509V3_CTX *ctx, | - |
475 | STACK_OF(CONF_VALUE) *nval); | - |
476 | STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, | - |
477 | ASN1_BIT_STRING *bits, | - |
478 | STACK_OF(CONF_VALUE) *extlist); | - |
479 | char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5); | - |
480 | ASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method, | - |
481 | X509V3_CTX *ctx, const char *str); | - |
482 | - | |
483 | STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, | - |
484 | GENERAL_NAME *gen, | - |
485 | STACK_OF(CONF_VALUE) *ret); | - |
486 | int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen); | - |
487 | - | |
488 | DECLARE_ASN1_FUNCTIONS(GENERAL_NAMES) | - |
489 | - | |
490 | STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method, | - |
491 | GENERAL_NAMES *gen, | - |
492 | STACK_OF(CONF_VALUE) *extlist); | - |
493 | GENERAL_NAMES *v2i_GENERAL_NAMES(const X509V3_EXT_METHOD *method, | - |
494 | X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval); | - |
495 | - | |
496 | DECLARE_ASN1_FUNCTIONS(OTHERNAME) | - |
497 | DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME) | - |
498 | int OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b); | - |
499 | void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value); | - |
500 | void *GENERAL_NAME_get0_value(GENERAL_NAME *a, int *ptype); | - |
501 | int GENERAL_NAME_set0_othername(GENERAL_NAME *gen, | - |
502 | ASN1_OBJECT *oid, ASN1_TYPE *value); | - |
503 | int GENERAL_NAME_get0_otherName(GENERAL_NAME *gen, | - |
504 | ASN1_OBJECT **poid, ASN1_TYPE **pvalue); | - |
505 | - | |
506 | char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, | - |
507 | const ASN1_OCTET_STRING *ia5); | - |
508 | ASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, | - |
509 | X509V3_CTX *ctx, const char *str); | - |
510 | - | |
511 | DECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE) | - |
512 | int i2a_ACCESS_DESCRIPTION(BIO *bp, const ACCESS_DESCRIPTION *a); | - |
513 | - | |
514 | DECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE) | - |
515 | - | |
516 | DECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES) | - |
517 | DECLARE_ASN1_FUNCTIONS(POLICYINFO) | - |
518 | DECLARE_ASN1_FUNCTIONS(POLICYQUALINFO) | - |
519 | DECLARE_ASN1_FUNCTIONS(USERNOTICE) | - |
520 | DECLARE_ASN1_FUNCTIONS(NOTICEREF) | - |
521 | - | |
522 | DECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS) | - |
523 | DECLARE_ASN1_FUNCTIONS(DIST_POINT) | - |
524 | DECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME) | - |
525 | DECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT) | - |
526 | - | |
527 | int DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname); | - |
528 | - | |
529 | int NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc); | - |
530 | int NAME_CONSTRAINTS_check_CN(X509 *x, NAME_CONSTRAINTS *nc); | - |
531 | - | |
532 | DECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION) | - |
533 | DECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS) | - |
534 | - | |
535 | DECLARE_ASN1_ITEM(POLICY_MAPPING) | - |
536 | DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING) | - |
537 | DECLARE_ASN1_ITEM(POLICY_MAPPINGS) | - |
538 | - | |
539 | DECLARE_ASN1_ITEM(GENERAL_SUBTREE) | - |
540 | DECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE) | - |
541 | - | |
542 | DECLARE_ASN1_ITEM(NAME_CONSTRAINTS) | - |
543 | DECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS) | - |
544 | - | |
545 | DECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) | - |
546 | DECLARE_ASN1_ITEM(POLICY_CONSTRAINTS) | - |
547 | - | |
548 | GENERAL_NAME *a2i_GENERAL_NAME(GENERAL_NAME *out, | - |
549 | const X509V3_EXT_METHOD *method, | - |
550 | X509V3_CTX *ctx, int gen_type, | - |
551 | const char *value, int is_nc); | - |
552 | - | |
553 | # ifdef HEADER_CONF_H | - |
554 | GENERAL_NAME *v2i_GENERAL_NAME(const X509V3_EXT_METHOD *method, | - |
555 | X509V3_CTX *ctx, CONF_VALUE *cnf); | - |
556 | GENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out, | - |
557 | const X509V3_EXT_METHOD *method, | - |
558 | X509V3_CTX *ctx, CONF_VALUE *cnf, | - |
559 | int is_nc); | - |
560 | void X509V3_conf_free(CONF_VALUE *val); | - |
561 | - | |
562 | X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid, | - |
563 | const char *value); | - |
564 | X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name, | - |
565 | const char *value); | - |
566 | int X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, const char *section, | - |
567 | STACK_OF(X509_EXTENSION) **sk); | - |
568 | int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | - |
569 | X509 *cert); | - |
570 | int X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | - |
571 | X509_REQ *req); | - |
572 | int X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | - |
573 | X509_CRL *crl); | - |
574 | - | |
575 | X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, | - |
576 | X509V3_CTX *ctx, int ext_nid, | - |
577 | const char *value); | - |
578 | X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | - |
579 | const char *name, const char *value); | - |
580 | int X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | - |
581 | const char *section, X509 *cert); | - |
582 | int X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | - |
583 | const char *section, X509_REQ *req); | - |
584 | int X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | - |
585 | const char *section, X509_CRL *crl); | - |
586 | - | |
587 | int X509V3_add_value_bool_nf(const char *name, int asn1_bool, | - |
588 | STACK_OF(CONF_VALUE) **extlist); | - |
589 | int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool); | - |
590 | int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint); | - |
591 | void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); | - |
592 | void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash); | - |
593 | # endif | - |
594 | - | |
595 | char *X509V3_get_string(X509V3_CTX *ctx, const char *name, const char *section); | - |
596 | STACK_OF(CONF_VALUE) *X509V3_get_section(X509V3_CTX *ctx, const char *section); | - |
597 | void X509V3_string_free(X509V3_CTX *ctx, char *str); | - |
598 | void X509V3_section_free(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section); | - |
599 | void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject, | - |
600 | X509_REQ *req, X509_CRL *crl, int flags); | - |
601 | - | |
602 | int X509V3_add_value(const char *name, const char *value, | - |
603 | STACK_OF(CONF_VALUE) **extlist); | - |
604 | int X509V3_add_value_uchar(const char *name, const unsigned char *value, | - |
605 | STACK_OF(CONF_VALUE) **extlist); | - |
606 | int X509V3_add_value_bool(const char *name, int asn1_bool, | - |
607 | STACK_OF(CONF_VALUE) **extlist); | - |
608 | int X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint, | - |
609 | STACK_OF(CONF_VALUE) **extlist); | - |
610 | char *i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const ASN1_INTEGER *aint); | - |
611 | ASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const char *value); | - |
612 | char *i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, const ASN1_ENUMERATED *aint); | - |
613 | char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth, | - |
614 | const ASN1_ENUMERATED *aint); | - |
615 | int X509V3_EXT_add(X509V3_EXT_METHOD *ext); | - |
616 | int X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist); | - |
617 | int X509V3_EXT_add_alias(int nid_to, int nid_from); | - |
618 | void X509V3_EXT_cleanup(void); | - |
619 | - | |
620 | const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext); | - |
621 | const X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid); | - |
622 | int X509V3_add_standard_extensions(void); | - |
623 | STACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line); | - |
624 | void *X509V3_EXT_d2i(X509_EXTENSION *ext); | - |
625 | void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit, | - |
626 | int *idx); | - |
627 | - | |
628 | X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc); | - |
629 | int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value, | - |
630 | int crit, unsigned long flags); | - |
631 | - | |
632 | #if OPENSSL_API_COMPAT < 0x10100000L | - |
633 | /* The new declarations are in crypto.h, but the old ones were here. */ | - |
634 | # define hex_to_string OPENSSL_buf2hexstr | - |
635 | # define string_to_hex OPENSSL_hexstr2buf | - |
636 | #endif | - |
637 | - | |
638 | void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent, | - |
639 | int ml); | - |
640 | int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, | - |
641 | int indent); | - |
642 | #ifndef OPENSSL_NO_STDIO | - |
643 | int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); | - |
644 | #endif | - |
645 | int X509V3_extensions_print(BIO *out, const char *title, | - |
646 | const STACK_OF(X509_EXTENSION) *exts, | - |
647 | unsigned long flag, int indent); | - |
648 | - | |
649 | int X509_check_ca(X509 *x); | - |
650 | int X509_check_purpose(X509 *x, int id, int ca); | - |
651 | int X509_supported_extension(X509_EXTENSION *ex); | - |
652 | int X509_PURPOSE_set(int *p, int purpose); | - |
653 | int X509_check_issued(X509 *issuer, X509 *subject); | - |
654 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); | - |
655 | void X509_set_proxy_flag(X509 *x); | - |
656 | void X509_set_proxy_pathlen(X509 *x, long l); | - |
657 | long X509_get_proxy_pathlen(X509 *x); | - |
658 | - | |
659 | uint32_t X509_get_extension_flags(X509 *x); | - |
660 | uint32_t X509_get_key_usage(X509 *x); | - |
661 | uint32_t X509_get_extended_key_usage(X509 *x); | - |
662 | const ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x); | - |
663 | const ASN1_OCTET_STRING *X509_get0_authority_key_id(X509 *x); | - |
664 | - | |
665 | int X509_PURPOSE_get_count(void); | - |
666 | X509_PURPOSE *X509_PURPOSE_get0(int idx); | - |
667 | int X509_PURPOSE_get_by_sname(const char *sname); | - |
668 | int X509_PURPOSE_get_by_id(int id); | - |
669 | int X509_PURPOSE_add(int id, int trust, int flags, | - |
670 | int (*ck) (const X509_PURPOSE *, const X509 *, int), | - |
671 | const char *name, const char *sname, void *arg); | - |
672 | char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp); | - |
673 | char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp); | - |
674 | int X509_PURPOSE_get_trust(const X509_PURPOSE *xp); | - |
675 | void X509_PURPOSE_cleanup(void); | - |
676 | int X509_PURPOSE_get_id(const X509_PURPOSE *); | - |
677 | - | |
678 | STACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x); | - |
679 | STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); | - |
680 | void X509_email_free(STACK_OF(OPENSSL_STRING) *sk); | - |
681 | STACK_OF(OPENSSL_STRING) *X509_get1_ocsp(X509 *x); | - |
682 | /* Flags for X509_check_* functions */ | - |
683 | - | |
684 | /* | - |
685 | * Always check subject name for host match even if subject alt names present | - |
686 | */ | - |
687 | # define X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT 0x1 | - |
688 | /* Disable wildcard matching for dnsName fields and common name. */ | - |
689 | # define X509_CHECK_FLAG_NO_WILDCARDS 0x2 | - |
690 | /* Wildcards must not match a partial label. */ | - |
691 | # define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS 0x4 | - |
692 | /* Allow (non-partial) wildcards to match multiple labels. */ | - |
693 | # define X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS 0x8 | - |
694 | /* Constraint verifier subdomain patterns to match a single labels. */ | - |
695 | # define X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS 0x10 | - |
696 | /* Never check the subject CN */ | - |
697 | # define X509_CHECK_FLAG_NEVER_CHECK_SUBJECT 0x20 | - |
698 | /* | - |
699 | * Match reference identifiers starting with "." to any sub-domain. | - |
700 | * This is a non-public flag, turned on implicitly when the subject | - |
701 | * reference identity is a DNS name. | - |
702 | */ | - |
703 | # define _X509_CHECK_FLAG_DOT_SUBDOMAINS 0x8000 | - |
704 | - | |
705 | int X509_check_host(X509 *x, const char *chk, size_t chklen, | - |
706 | unsigned int flags, char **peername); | - |
707 | int X509_check_email(X509 *x, const char *chk, size_t chklen, | - |
708 | unsigned int flags); | - |
709 | int X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen, | - |
710 | unsigned int flags); | - |
711 | int X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags); | - |
712 | - | |
713 | ASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc); | - |
714 | ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc); | - |
715 | int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk, | - |
716 | unsigned long chtype); | - |
717 | - | |
718 | void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent); | - |
719 | DEFINE_STACK_OF(X509_POLICY_NODE) never executed: end of block never executed: end of block never executed: end of block never executed: end of block never executed: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); never executed: return (X509_POLICY_NODE *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_X509_POLICY_NODE *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_X509_POLICY_NODE *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_X509_POLICY_NODE *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (X509_POLICY_NODE *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (X509_POLICY_NODE *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (X509_POLICY_NODE *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (X509_POLICY_NODE *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (X509_POLICY_NODE *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_X509_POLICY_NODE *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_X509_POLICY_NODE *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_X509_POLICY_NODE_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0 |
720 | - | |
721 | #ifndef OPENSSL_NO_RFC3779 | - |
722 | typedef struct ASRange_st { | - |
723 | ASN1_INTEGER *min, *max; | - |
724 | } ASRange; | - |
725 | - | |
726 | # define ASIdOrRange_id 0 | - |
727 | # define ASIdOrRange_range 1 | - |
728 | - | |
729 | typedef struct ASIdOrRange_st { | - |
730 | int type; | - |
731 | union { | - |
732 | ASN1_INTEGER *id; | - |
733 | ASRange *range; | - |
734 | } u; | - |
735 | } ASIdOrRange; | - |
736 | - | |
737 | typedef STACK_OF(ASIdOrRange) ASIdOrRanges; | - |
738 | DEFINE_STACK_OF(ASIdOrRange) never executed: end of block never executed: end of block never executed: end of block never executed: end of block never executed: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); never executed: return (ASIdOrRange *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_ASIdOrRange *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_ASIdOrRange *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_ASIdOrRange *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (ASIdOrRange *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (ASIdOrRange *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (ASIdOrRange *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (ASIdOrRange *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (ASIdOrRange *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ASIdOrRange *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ASIdOrRange *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_ASIdOrRange_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0 |
739 | - | |
740 | # define ASIdentifierChoice_inherit 0 | - |
741 | # define ASIdentifierChoice_asIdsOrRanges 1 | - |
742 | - | |
743 | typedef struct ASIdentifierChoice_st { | - |
744 | int type; | - |
745 | union { | - |
746 | ASN1_NULL *inherit; | - |
747 | ASIdOrRanges *asIdsOrRanges; | - |
748 | } u; | - |
749 | } ASIdentifierChoice; | - |
750 | - | |
751 | typedef struct ASIdentifiers_st { | - |
752 | ASIdentifierChoice *asnum, *rdi; | - |
753 | } ASIdentifiers; | - |
754 | - | |
755 | DECLARE_ASN1_FUNCTIONS(ASRange) | - |
756 | DECLARE_ASN1_FUNCTIONS(ASIdOrRange) | - |
757 | DECLARE_ASN1_FUNCTIONS(ASIdentifierChoice) | - |
758 | DECLARE_ASN1_FUNCTIONS(ASIdentifiers) | - |
759 | - | |
760 | typedef struct IPAddressRange_st { | - |
761 | ASN1_BIT_STRING *min, *max; | - |
762 | } IPAddressRange; | - |
763 | - | |
764 | # define IPAddressOrRange_addressPrefix 0 | - |
765 | # define IPAddressOrRange_addressRange 1 | - |
766 | - | |
767 | typedef struct IPAddressOrRange_st { | - |
768 | int type; | - |
769 | union { | - |
770 | ASN1_BIT_STRING *addressPrefix; | - |
771 | IPAddressRange *addressRange; | - |
772 | } u; | - |
773 | } IPAddressOrRange; | - |
774 | - | |
775 | typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges; | - |
776 | DEFINE_STACK_OF(IPAddressOrRange) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 866 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 574 times by 1 test: return (IPAddressOrRange *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_IPAddressOrRange *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_IPAddressOrRange *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_IPAddressOrRange *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (IPAddressOrRange *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (IPAddressOrRange *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (IPAddressOrRange *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (IPAddressOrRange *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (IPAddressOrRange *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_IPAddressOrRange *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_IPAddressOrRange *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_IPAddressOrRange_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-866 |
777 | - | |
778 | # define IPAddressChoice_inherit 0 | - |
779 | # define IPAddressChoice_addressesOrRanges 1 | - |
780 | - | |
781 | typedef struct IPAddressChoice_st { | - |
782 | int type; | - |
783 | union { | - |
784 | ASN1_NULL *inherit; | - |
785 | IPAddressOrRanges *addressesOrRanges; | - |
786 | } u; | - |
787 | } IPAddressChoice; | - |
788 | - | |
789 | typedef struct IPAddressFamily_st { | - |
790 | ASN1_OCTET_STRING *addressFamily; | - |
791 | IPAddressChoice *ipAddressChoice; | - |
792 | } IPAddressFamily; | - |
793 | - | |
794 | typedef STACK_OF(IPAddressFamily) IPAddrBlocks; | - |
795 | DEFINE_STACK_OF(IPAddressFamily) executed 1305 times by 1 test: end of block Executed by:
never executed: end of block executed 39780 times by 1 test: end of block Executed by:
never executed: end of block executed 519 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 360 times by 1 test: return (IPAddressFamily *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_IPAddressFamily *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_IPAddressFamily *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_IPAddressFamily *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (IPAddressFamily *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (IPAddressFamily *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (IPAddressFamily *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (IPAddressFamily *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (IPAddressFamily *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_IPAddressFamily *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_IPAddressFamily *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_IPAddressFamily_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-39780 |
796 | - | |
797 | DECLARE_ASN1_FUNCTIONS(IPAddressRange) | - |
798 | DECLARE_ASN1_FUNCTIONS(IPAddressOrRange) | - |
799 | DECLARE_ASN1_FUNCTIONS(IPAddressChoice) | - |
800 | DECLARE_ASN1_FUNCTIONS(IPAddressFamily) | - |
801 | - | |
802 | /* | - |
803 | * API tag for elements of the ASIdentifer SEQUENCE. | - |
804 | */ | - |
805 | # define V3_ASID_ASNUM 0 | - |
806 | # define V3_ASID_RDI 1 | - |
807 | - | |
808 | /* | - |
809 | * AFI values, assigned by IANA. It'd be nice to make the AFI | - |
810 | * handling code totally generic, but there are too many little things | - |
811 | * that would need to be defined for other address families for it to | - |
812 | * be worth the trouble. | - |
813 | */ | - |
814 | # define IANA_AFI_IPV4 1 | - |
815 | # define IANA_AFI_IPV6 2 | - |
816 | - | |
817 | /* | - |
818 | * Utilities to construct and extract values from RFC3779 extensions, | - |
819 | * since some of the encodings (particularly for IP address prefixes | - |
820 | * and ranges) are a bit tedious to work with directly. | - |
821 | */ | - |
822 | int X509v3_asid_add_inherit(ASIdentifiers *asid, int which); | - |
823 | int X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which, | - |
824 | ASN1_INTEGER *min, ASN1_INTEGER *max); | - |
825 | int X509v3_addr_add_inherit(IPAddrBlocks *addr, | - |
826 | const unsigned afi, const unsigned *safi); | - |
827 | int X509v3_addr_add_prefix(IPAddrBlocks *addr, | - |
828 | const unsigned afi, const unsigned *safi, | - |
829 | unsigned char *a, const int prefixlen); | - |
830 | int X509v3_addr_add_range(IPAddrBlocks *addr, | - |
831 | const unsigned afi, const unsigned *safi, | - |
832 | unsigned char *min, unsigned char *max); | - |
833 | unsigned X509v3_addr_get_afi(const IPAddressFamily *f); | - |
834 | int X509v3_addr_get_range(IPAddressOrRange *aor, const unsigned afi, | - |
835 | unsigned char *min, unsigned char *max, | - |
836 | const int length); | - |
837 | - | |
838 | /* | - |
839 | * Canonical forms. | - |
840 | */ | - |
841 | int X509v3_asid_is_canonical(ASIdentifiers *asid); | - |
842 | int X509v3_addr_is_canonical(IPAddrBlocks *addr); | - |
843 | int X509v3_asid_canonize(ASIdentifiers *asid); | - |
844 | int X509v3_addr_canonize(IPAddrBlocks *addr); | - |
845 | - | |
846 | /* | - |
847 | * Tests for inheritance and containment. | - |
848 | */ | - |
849 | int X509v3_asid_inherits(ASIdentifiers *asid); | - |
850 | int X509v3_addr_inherits(IPAddrBlocks *addr); | - |
851 | int X509v3_asid_subset(ASIdentifiers *a, ASIdentifiers *b); | - |
852 | int X509v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b); | - |
853 | - | |
854 | /* | - |
855 | * Check whether RFC 3779 extensions nest properly in chains. | - |
856 | */ | - |
857 | int X509v3_asid_validate_path(X509_STORE_CTX *); | - |
858 | int X509v3_addr_validate_path(X509_STORE_CTX *); | - |
859 | int X509v3_asid_validate_resource_set(STACK_OF(X509) *chain, | - |
860 | ASIdentifiers *ext, | - |
861 | int allow_inheritance); | - |
862 | int X509v3_addr_validate_resource_set(STACK_OF(X509) *chain, | - |
863 | IPAddrBlocks *ext, int allow_inheritance); | - |
864 | - | |
865 | #endif /* OPENSSL_NO_RFC3779 */ | - |
866 | - | |
867 | DEFINE_STACK_OF(ASN1_STRING) never executed: end of block never executed: end of block never executed: end of block never executed: end of block never executed: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); never executed: return (ASN1_STRING *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_ASN1_STRING *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_ASN1_STRING *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_ASN1_STRING *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (ASN1_STRING *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (ASN1_STRING *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (ASN1_STRING *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (ASN1_STRING *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (ASN1_STRING *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ASN1_STRING *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ASN1_STRING *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_ASN1_STRING_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0 |
868 | - | |
869 | /* | - |
870 | * Admission Syntax | - |
871 | */ | - |
872 | typedef struct NamingAuthority_st NAMING_AUTHORITY; | - |
873 | typedef struct ProfessionInfo_st PROFESSION_INFO; | - |
874 | typedef struct Admissions_st ADMISSIONS; | - |
875 | typedef struct AdmissionSyntax_st ADMISSION_SYNTAX; | - |
876 | DECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY) | - |
877 | DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO) | - |
878 | DECLARE_ASN1_FUNCTIONS(ADMISSIONS) | - |
879 | DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX) | - |
880 | DEFINE_STACK_OF(ADMISSIONS) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 2119 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
executed 277 times by 1 test: return (ADMISSIONS *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); Executed by:
never executed: return (struct stack_st_ADMISSIONS *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_ADMISSIONS *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_ADMISSIONS *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (ADMISSIONS *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (ADMISSIONS *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (ADMISSIONS *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (ADMISSIONS *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (ADMISSIONS *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ADMISSIONS *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_ADMISSIONS *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_ADMISSIONS_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-2119 |
881 | DEFINE_STACK_OF(PROFESSION_INFO) never executed: end of block never executed: end of block never executed: end of block never executed: end of block executed 277 times by 1 test: return OPENSSL_sk_num((const OPENSSL_STACK *)sk); Executed by:
never executed: return (PROFESSION_INFO *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); never executed: return (struct stack_st_PROFESSION_INFO *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); never executed: return (struct stack_st_PROFESSION_INFO *)OPENSSL_sk_new_null(); never executed: return (struct stack_st_PROFESSION_INFO *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); never executed: return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); never executed: return (PROFESSION_INFO *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); never executed: return (PROFESSION_INFO *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return (PROFESSION_INFO *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); never executed: return (PROFESSION_INFO *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); never executed: return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); never executed: return (PROFESSION_INFO *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); never executed: return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); never executed: return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_PROFESSION_INFO *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); never executed: return (struct stack_st_PROFESSION_INFO *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc); never executed: return (sk_PROFESSION_INFO_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-277 |
882 | typedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS; | - |
883 | - | |
884 | const ASN1_OBJECT *NAMING_AUTHORITY_get0_authorityId( | - |
885 | const NAMING_AUTHORITY *n); | - |
886 | const ASN1_IA5STRING *NAMING_AUTHORITY_get0_authorityURL( | - |
887 | const NAMING_AUTHORITY *n); | - |
888 | const ASN1_STRING *NAMING_AUTHORITY_get0_authorityText( | - |
889 | const NAMING_AUTHORITY *n); | - |
890 | void NAMING_AUTHORITY_set0_authorityId(NAMING_AUTHORITY *n, | - |
891 | ASN1_OBJECT* namingAuthorityId); | - |
892 | void NAMING_AUTHORITY_set0_authorityURL(NAMING_AUTHORITY *n, | - |
893 | ASN1_IA5STRING* namingAuthorityUrl); | - |
894 | void NAMING_AUTHORITY_set0_authorityText(NAMING_AUTHORITY *n, | - |
895 | ASN1_STRING* namingAuthorityText); | - |
896 | - | |
897 | const GENERAL_NAME *ADMISSION_SYNTAX_get0_admissionAuthority( | - |
898 | const ADMISSION_SYNTAX *as); | - |
899 | void ADMISSION_SYNTAX_set0_admissionAuthority( | - |
900 | ADMISSION_SYNTAX *as, GENERAL_NAME *aa); | - |
901 | const STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions( | - |
902 | const ADMISSION_SYNTAX *as); | - |
903 | void ADMISSION_SYNTAX_set0_contentsOfAdmissions( | - |
904 | ADMISSION_SYNTAX *as, STACK_OF(ADMISSIONS) *a); | - |
905 | const GENERAL_NAME *ADMISSIONS_get0_admissionAuthority(const ADMISSIONS *a); | - |
906 | void ADMISSIONS_set0_admissionAuthority(ADMISSIONS *a, GENERAL_NAME *aa); | - |
907 | const NAMING_AUTHORITY *ADMISSIONS_get0_namingAuthority(const ADMISSIONS *a); | - |
908 | void ADMISSIONS_set0_namingAuthority(ADMISSIONS *a, NAMING_AUTHORITY *na); | - |
909 | const PROFESSION_INFOS *ADMISSIONS_get0_professionInfos(const ADMISSIONS *a); | - |
910 | void ADMISSIONS_set0_professionInfos(ADMISSIONS *a, PROFESSION_INFOS *pi); | - |
911 | const ASN1_OCTET_STRING *PROFESSION_INFO_get0_addProfessionInfo( | - |
912 | const PROFESSION_INFO *pi); | - |
913 | void PROFESSION_INFO_set0_addProfessionInfo( | - |
914 | PROFESSION_INFO *pi, ASN1_OCTET_STRING *aos); | - |
915 | const NAMING_AUTHORITY *PROFESSION_INFO_get0_namingAuthority( | - |
916 | const PROFESSION_INFO *pi); | - |
917 | void PROFESSION_INFO_set0_namingAuthority( | - |
918 | PROFESSION_INFO *pi, NAMING_AUTHORITY *na); | - |
919 | const STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems( | - |
920 | const PROFESSION_INFO *pi); | - |
921 | void PROFESSION_INFO_set0_professionItems( | - |
922 | PROFESSION_INFO *pi, STACK_OF(ASN1_STRING) *as); | - |
923 | const STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs( | - |
924 | const PROFESSION_INFO *pi); | - |
925 | void PROFESSION_INFO_set0_professionOIDs( | - |
926 | PROFESSION_INFO *pi, STACK_OF(ASN1_OBJECT) *po); | - |
927 | const ASN1_PRINTABLESTRING *PROFESSION_INFO_get0_registrationNumber( | - |
928 | const PROFESSION_INFO *pi); | - |
929 | void PROFESSION_INFO_set0_registrationNumber( | - |
930 | PROFESSION_INFO *pi, ASN1_PRINTABLESTRING *rn); | - |
931 | - | |
932 | # ifdef __cplusplus | - |
933 | } | - |
934 | # endif | - |
935 | #endif | - |
Source code | Switch to Preprocessed file |