Coverage Report

Created: 2026-09-12 06:55

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openssl36/include/openssl/asn1t.h
Line
Count
Source
1
/*
2
 * WARNING: do not edit!
3
 * Generated by Makefile from include/openssl/asn1t.h.in
4
 *
5
 * Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
6
 *
7
 * Licensed under the Apache License 2.0 (the "License").  You may not use
8
 * this file except in compliance with the License.  You can obtain a copy
9
 * in the file LICENSE in the source distribution or at
10
 * https://www.openssl.org/source/license.html
11
 */
12
13
/* clang-format off */
14
15
/* clang-format on */
16
17
#ifndef OPENSSL_ASN1T_H
18
#define OPENSSL_ASN1T_H
19
#pragma once
20
21
#include <openssl/macros.h>
22
#ifndef OPENSSL_NO_DEPRECATED_3_0
23
#define HEADER_ASN1T_H
24
#endif
25
26
#include <stddef.h>
27
#include <openssl/e_os2.h>
28
#include <openssl/asn1.h>
29
30
#ifdef OPENSSL_BUILD_SHLIBCRYPTO
31
#undef OPENSSL_EXTERN
32
#define OPENSSL_EXTERN OPENSSL_EXPORT
33
#endif
34
35
/* ASN1 template defines, structures and functions */
36
37
#ifdef __cplusplus
38
extern "C" {
39
#endif
40
41
/*-
42
 * These are the possible values for the itype field of the
43
 * ASN1_ITEM structure and determine how it is interpreted.
44
 *
45
 * For PRIMITIVE types the underlying type
46
 * determines the behaviour if items is NULL.
47
 *
48
 * Otherwise templates must contain a single
49
 * template and the type is treated in the
50
 * same way as the type specified in the template.
51
 *
52
 * For SEQUENCE types the templates field points
53
 * to the members, the size field is the
54
 * structure size.
55
 *
56
 * For CHOICE types the templates field points
57
 * to each possible member (typically a union)
58
 * and the 'size' field is the offset of the
59
 * selector.
60
 *
61
 * The 'funcs' field is used for application-specific
62
 * data and functions.
63
 *
64
 * The EXTERN type uses a new style d2i/i2d.
65
 * The new style should be used where possible
66
 * because it avoids things like the d2i IMPLICIT
67
 * hack.
68
 *
69
 * MSTRING is a multiple string type, it is used
70
 * for a CHOICE of character strings where the
71
 * actual strings all occupy an ASN1_STRING
72
 * structure. In this case the 'utype' field
73
 * has a special meaning, it is used as a mask
74
 * of acceptable types using the B_ASN1 constants.
75
 *
76
 * NDEF_SEQUENCE is the same as SEQUENCE except
77
 * that it will use indefinite length constructed
78
 * encoding if requested.
79
 *
80
 */
81
82
2.44G
#define ASN1_ITYPE_PRIMITIVE 0x0
83
542M
#define ASN1_ITYPE_SEQUENCE 0x1
84
41.5M
#define ASN1_ITYPE_CHOICE 0x2
85
/* unused value                          0x3 */
86
41.7M
#define ASN1_ITYPE_EXTERN 0x4
87
1.14G
#define ASN1_ITYPE_MSTRING 0x5
88
10.0M
#define ASN1_ITYPE_NDEF_SEQUENCE 0x6
89
90
/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */
91
2.63M
#define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)((iptr)()))
92
93
/* Macros for start and end of ASN1_ITEM definition */
94
95
#define ASN1_ITEM_start(itname)        \
96
    const ASN1_ITEM *itname##_it(void) \
97
1.20G
    {                                  \
98
1.20G
        static const ASN1_ITEM local_it = {
99
100
#define static_ASN1_ITEM_start(itname) \
101
193M
    static ASN1_ITEM_start(itname)
102
103
#define ASN1_ITEM_end(itname) \
104
1.20G
    }                         \
105
1.20G
    ;                         \
106
1.20G
    return &local_it;         \
107
1.20G
    }
108
109
/* Macros to aid ASN1 template writing */
110
111
#define ASN1_ITEM_TEMPLATE(tname) \
112
    static const ASN1_TEMPLATE tname##_item_tt
113
114
#define ASN1_ITEM_TEMPLATE_END(tname) \
115
    ;                                 \
116
10.2M
    ASN1_ITEM_start(tname)            \
117
10.2M
        ASN1_ITYPE_PRIMITIVE,         \
118
10.2M
        -1,                           \
119
10.2M
        &tname##_item_tt,             \
120
10.2M
        0,                            \
121
10.2M
        NULL,                         \
122
10.2M
        0,                            \
123
10.2M
        #tname ASN1_ITEM_end(tname)
124
#define static_ASN1_ITEM_TEMPLATE_END(tname) \
125
    ;                                        \
126
183M
    static_ASN1_ITEM_start(tname)            \
127
183M
        ASN1_ITYPE_PRIMITIVE,                \
128
183M
        -1,                                  \
129
183M
        &tname##_item_tt,                    \
130
183M
        0,                                   \
131
183M
        NULL,                                \
132
183M
        0,                                   \
133
183M
        #tname ASN1_ITEM_end(tname)
134
135
/* This is a ASN1 type which just embeds a template */
136
137
/*-
138
 * This pair helps declare a SEQUENCE. We can do:
139
 *
140
 *      ASN1_SEQUENCE(stname) = {
141
 *              ... SEQUENCE components ...
142
 *      } ASN1_SEQUENCE_END(stname)
143
 *
144
 *      This will produce an ASN1_ITEM called stname_it
145
 *      for a structure called stname.
146
 *
147
 *      If you want the same structure but a different
148
 *      name then use:
149
 *
150
 *      ASN1_SEQUENCE(itname) = {
151
 *              ... SEQUENCE components ...
152
 *      } ASN1_SEQUENCE_END_name(stname, itname)
153
 *
154
 *      This will create an item called itname_it using
155
 *      a structure called stname.
156
 */
157
158
#define ASN1_SEQUENCE(tname) \
159
    static const ASN1_TEMPLATE tname##_seq_tt[]
160
161
#define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
162
163
#define static_ASN1_SEQUENCE_END(stname) static_ASN1_SEQUENCE_END_name(stname, stname)
164
165
#define ASN1_SEQUENCE_END_name(stname, tname)           \
166
    ;                                                   \
167
190M
    ASN1_ITEM_start(tname)                              \
168
190M
        ASN1_ITYPE_SEQUENCE,                            \
169
190M
        V_ASN1_SEQUENCE,                                \
170
190M
        tname##_seq_tt,                                 \
171
190M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
172
190M
        NULL,                                           \
173
190M
        sizeof(stname),                                 \
174
190M
        #tname ASN1_ITEM_end(tname)
175
176
#define static_ASN1_SEQUENCE_END_name(stname, tname)    \
177
    ;                                                   \
178
9.35M
    static_ASN1_ITEM_start(tname)                       \
179
9.35M
        ASN1_ITYPE_SEQUENCE,                            \
180
9.35M
        V_ASN1_SEQUENCE,                                \
181
9.35M
        tname##_seq_tt,                                 \
182
9.35M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
183
9.35M
        NULL,                                           \
184
9.35M
        sizeof(stname),                                 \
185
9.35M
        #stname ASN1_ITEM_end(tname)
186
187
#define ASN1_NDEF_SEQUENCE(tname) \
188
    ASN1_SEQUENCE(tname)
189
190
#define ASN1_NDEF_SEQUENCE_cb(tname, cb) \
191
    ASN1_SEQUENCE_cb(tname, cb)
192
193
#define ASN1_SEQUENCE_cb(tname, cb)                                     \
194
    static const ASN1_AUX tname##_aux = { NULL, 0, 0, 0, cb, 0, NULL }; \
195
    ASN1_SEQUENCE(tname)
196
197
#define ASN1_SEQUENCE_const_cb(tname, const_cb)                                                \
198
    static const ASN1_AUX tname##_aux = { NULL, ASN1_AFLG_CONST_CB, 0, 0, NULL, 0, const_cb }; \
199
    ASN1_SEQUENCE(tname)
200
201
#define ASN1_SEQUENCE_cb_const_cb(tname, cb, const_cb)                                       \
202
    static const ASN1_AUX tname##_aux = { NULL, ASN1_AFLG_CONST_CB, 0, 0, cb, 0, const_cb }; \
203
    ASN1_SEQUENCE(tname)
204
205
#define ASN1_SEQUENCE_ref(tname, cb)                                                                                                   \
206
    static const ASN1_AUX tname##_aux = { NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), offsetof(tname, lock), cb, 0, NULL }; \
207
    ASN1_SEQUENCE(tname)
208
209
#define ASN1_SEQUENCE_enc(tname, enc, cb)                                                                   \
210
    static const ASN1_AUX tname##_aux = { NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc), NULL }; \
211
    ASN1_SEQUENCE(tname)
212
213
#define ASN1_NDEF_SEQUENCE_END(tname)                   \
214
    ;                                                   \
215
683k
    ASN1_ITEM_start(tname)                              \
216
683k
        ASN1_ITYPE_NDEF_SEQUENCE,                       \
217
683k
        V_ASN1_SEQUENCE,                                \
218
683k
        tname##_seq_tt,                                 \
219
683k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
220
683k
        NULL,                                           \
221
683k
        sizeof(tname),                                  \
222
683k
        #tname ASN1_ITEM_end(tname)
223
#define static_ASN1_NDEF_SEQUENCE_END(tname)            \
224
    ;                                                   \
225
114k
    static_ASN1_ITEM_start(tname)                       \
226
114k
        ASN1_ITYPE_NDEF_SEQUENCE,                       \
227
114k
        V_ASN1_SEQUENCE,                                \
228
114k
        tname##_seq_tt,                                 \
229
114k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
230
114k
        NULL,                                           \
231
114k
        sizeof(tname),                                  \
232
114k
        #tname ASN1_ITEM_end(tname)
233
234
#define ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)
235
236
#define ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)
237
#define static_ASN1_SEQUENCE_END_cb(stname, tname) static_ASN1_SEQUENCE_END_ref(stname, tname)
238
239
#define ASN1_SEQUENCE_END_ref(stname, tname)            \
240
    ;                                                   \
241
18.4M
    ASN1_ITEM_start(tname)                              \
242
18.4M
        ASN1_ITYPE_SEQUENCE,                            \
243
18.4M
        V_ASN1_SEQUENCE,                                \
244
18.4M
        tname##_seq_tt,                                 \
245
18.4M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
18.4M
        &tname##_aux,                                   \
247
18.4M
        sizeof(stname),                                 \
248
18.4M
        #tname ASN1_ITEM_end(tname)
PKCS8_PRIV_KEY_INFO_it
Line
Count
Source
241
2.75M
    ASN1_ITEM_start(tname)                              \
242
2.75M
        ASN1_ITYPE_SEQUENCE,                            \
243
2.75M
        V_ASN1_SEQUENCE,                                \
244
2.75M
        tname##_seq_tt,                                 \
245
2.75M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
2.75M
        &tname##_aux,                                   \
247
2.75M
        sizeof(stname),                                 \
248
2.75M
        #tname ASN1_ITEM_end(tname)
DHparams_it
Line
Count
Source
241
134k
    ASN1_ITEM_start(tname)                              \
242
134k
        ASN1_ITYPE_SEQUENCE,                            \
243
134k
        V_ASN1_SEQUENCE,                                \
244
134k
        tname##_seq_tt,                                 \
245
134k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
134k
        &tname##_aux,                                   \
247
134k
        sizeof(stname),                                 \
248
134k
        #tname ASN1_ITEM_end(tname)
RSAPrivateKey_it
Line
Count
Source
241
214k
    ASN1_ITEM_start(tname)                              \
242
214k
        ASN1_ITYPE_SEQUENCE,                            \
243
214k
        V_ASN1_SEQUENCE,                                \
244
214k
        tname##_seq_tt,                                 \
245
214k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
214k
        &tname##_aux,                                   \
247
214k
        sizeof(stname),                                 \
248
214k
        #tname ASN1_ITEM_end(tname)
RSAPublicKey_it
Line
Count
Source
241
254k
    ASN1_ITEM_start(tname)                              \
242
254k
        ASN1_ITYPE_SEQUENCE,                            \
243
254k
        V_ASN1_SEQUENCE,                                \
244
254k
        tname##_seq_tt,                                 \
245
254k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
254k
        &tname##_aux,                                   \
247
254k
        sizeof(stname),                                 \
248
254k
        #tname ASN1_ITEM_end(tname)
RSA_PSS_PARAMS_it
Line
Count
Source
241
519k
    ASN1_ITEM_start(tname)                              \
242
519k
        ASN1_ITYPE_SEQUENCE,                            \
243
519k
        V_ASN1_SEQUENCE,                                \
244
519k
        tname##_seq_tt,                                 \
245
519k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
519k
        &tname##_aux,                                   \
247
519k
        sizeof(stname),                                 \
248
519k
        #tname ASN1_ITEM_end(tname)
RSA_OAEP_PARAMS_it
Line
Count
Source
241
52.5k
    ASN1_ITEM_start(tname)                              \
242
52.5k
        ASN1_ITYPE_SEQUENCE,                            \
243
52.5k
        V_ASN1_SEQUENCE,                                \
244
52.5k
        tname##_seq_tt,                                 \
245
52.5k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
52.5k
        &tname##_aux,                                   \
247
52.5k
        sizeof(stname),                                 \
248
52.5k
        #tname ASN1_ITEM_end(tname)
X509_CRL_INFO_it
Line
Count
Source
241
1.19M
    ASN1_ITEM_start(tname)                              \
242
1.19M
        ASN1_ITYPE_SEQUENCE,                            \
243
1.19M
        V_ASN1_SEQUENCE,                                \
244
1.19M
        tname##_seq_tt,                                 \
245
1.19M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
1.19M
        &tname##_aux,                                   \
247
1.19M
        sizeof(stname),                                 \
248
1.19M
        #tname ASN1_ITEM_end(tname)
X509_CRL_it
Line
Count
Source
241
720k
    ASN1_ITEM_start(tname)                              \
242
720k
        ASN1_ITYPE_SEQUENCE,                            \
243
720k
        V_ASN1_SEQUENCE,                                \
244
720k
        tname##_seq_tt,                                 \
245
720k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
720k
        &tname##_aux,                                   \
247
720k
        sizeof(stname),                                 \
248
720k
        #tname ASN1_ITEM_end(tname)
X509_REQ_INFO_it
Line
Count
Source
241
258k
    ASN1_ITEM_start(tname)                              \
242
258k
        ASN1_ITYPE_SEQUENCE,                            \
243
258k
        V_ASN1_SEQUENCE,                                \
244
258k
        tname##_seq_tt,                                 \
245
258k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
258k
        &tname##_aux,                                   \
247
258k
        sizeof(stname),                                 \
248
258k
        #tname ASN1_ITEM_end(tname)
X509_REQ_it
Line
Count
Source
241
177k
    ASN1_ITEM_start(tname)                              \
242
177k
        ASN1_ITYPE_SEQUENCE,                            \
243
177k
        V_ASN1_SEQUENCE,                                \
244
177k
        tname##_seq_tt,                                 \
245
177k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
177k
        &tname##_aux,                                   \
247
177k
        sizeof(stname),                                 \
248
177k
        #tname ASN1_ITEM_end(tname)
X509_CINF_it
Line
Count
Source
241
2.93M
    ASN1_ITEM_start(tname)                              \
242
2.93M
        ASN1_ITYPE_SEQUENCE,                            \
243
2.93M
        V_ASN1_SEQUENCE,                                \
244
2.93M
        tname##_seq_tt,                                 \
245
2.93M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
2.93M
        &tname##_aux,                                   \
247
2.93M
        sizeof(stname),                                 \
248
2.93M
        #tname ASN1_ITEM_end(tname)
X509_it
Line
Count
Source
241
7.73M
    ASN1_ITEM_start(tname)                              \
242
7.73M
        ASN1_ITYPE_SEQUENCE,                            \
243
7.73M
        V_ASN1_SEQUENCE,                                \
244
7.73M
        tname##_seq_tt,                                 \
245
7.73M
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
7.73M
        &tname##_aux,                                   \
247
7.73M
        sizeof(stname),                                 \
248
7.73M
        #tname ASN1_ITEM_end(tname)
PKCS7_SIGNER_INFO_it
Line
Count
Source
241
179k
    ASN1_ITEM_start(tname)                              \
242
179k
        ASN1_ITYPE_SEQUENCE,                            \
243
179k
        V_ASN1_SEQUENCE,                                \
244
179k
        tname##_seq_tt,                                 \
245
179k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
179k
        &tname##_aux,                                   \
247
179k
        sizeof(stname),                                 \
248
179k
        #tname ASN1_ITEM_end(tname)
PKCS7_RECIP_INFO_it
Line
Count
Source
241
153k
    ASN1_ITEM_start(tname)                              \
242
153k
        ASN1_ITYPE_SEQUENCE,                            \
243
153k
        V_ASN1_SEQUENCE,                                \
244
153k
        tname##_seq_tt,                                 \
245
153k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
153k
        &tname##_aux,                                   \
247
153k
        sizeof(stname),                                 \
248
153k
        #tname ASN1_ITEM_end(tname)
NETSCAPE_CERT_SEQUENCE_it
Line
Count
Source
241
52.5k
    ASN1_ITEM_start(tname)                              \
242
52.5k
        ASN1_ITYPE_SEQUENCE,                            \
243
52.5k
        V_ASN1_SEQUENCE,                                \
244
52.5k
        tname##_seq_tt,                                 \
245
52.5k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
52.5k
        &tname##_aux,                                   \
247
52.5k
        sizeof(stname),                                 \
248
52.5k
        #tname ASN1_ITEM_end(tname)
CMS_SignerInfo_it
Line
Count
Source
241
95.6k
    ASN1_ITEM_start(tname)                              \
242
95.6k
        ASN1_ITYPE_SEQUENCE,                            \
243
95.6k
        V_ASN1_SEQUENCE,                                \
244
95.6k
        tname##_seq_tt,                                 \
245
95.6k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
95.6k
        &tname##_aux,                                   \
247
95.6k
        sizeof(stname),                                 \
248
95.6k
        #tname ASN1_ITEM_end(tname)
CMS_RecipientEncryptedKey_it
Line
Count
Source
241
62.4k
    ASN1_ITEM_start(tname)                              \
242
62.4k
        ASN1_ITYPE_SEQUENCE,                            \
243
62.4k
        V_ASN1_SEQUENCE,                                \
244
62.4k
        tname##_seq_tt,                                 \
245
62.4k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
62.4k
        &tname##_aux,                                   \
247
62.4k
        sizeof(stname),                                 \
248
62.4k
        #tname ASN1_ITEM_end(tname)
CMS_KeyAgreeRecipientInfo_it
Line
Count
Source
241
148k
    ASN1_ITEM_start(tname)                              \
242
148k
        ASN1_ITYPE_SEQUENCE,                            \
243
148k
        V_ASN1_SEQUENCE,                                \
244
148k
        tname##_seq_tt,                                 \
245
148k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
148k
        &tname##_aux,                                   \
247
148k
        sizeof(stname),                                 \
248
148k
        #tname ASN1_ITEM_end(tname)
CMS_KEMRecipientInfo_it
Line
Count
Source
241
6
    ASN1_ITEM_start(tname)                              \
242
6
        ASN1_ITYPE_SEQUENCE,                            \
243
6
        V_ASN1_SEQUENCE,                                \
244
6
        tname##_seq_tt,                                 \
245
6
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
6
        &tname##_aux,                                   \
247
6
        sizeof(stname),                                 \
248
6
        #tname ASN1_ITEM_end(tname)
OSSL_CMP_MSG_it
Line
Count
Source
241
765k
    ASN1_ITEM_start(tname)                              \
242
765k
        ASN1_ITYPE_SEQUENCE,                            \
243
765k
        V_ASN1_SEQUENCE,                                \
244
765k
        tname##_seq_tt,                                 \
245
765k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
246
765k
        &tname##_aux,                                   \
247
765k
        sizeof(stname),                                 \
248
765k
        #tname ASN1_ITEM_end(tname)
249
#define static_ASN1_SEQUENCE_END_ref(stname, tname)     \
250
    ;                                                   \
251
484k
    static_ASN1_ITEM_start(tname)                       \
252
484k
        ASN1_ITYPE_SEQUENCE,                            \
253
484k
        V_ASN1_SEQUENCE,                                \
254
484k
        tname##_seq_tt,                                 \
255
484k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
256
484k
        &tname##_aux,                                   \
257
484k
        sizeof(stname),                                 \
258
484k
        #stname ASN1_ITEM_end(tname)
dsa_asn1.c:DSAPrivateKey_it
Line
Count
Source
251
197k
    static_ASN1_ITEM_start(tname)                       \
252
197k
        ASN1_ITYPE_SEQUENCE,                            \
253
197k
        V_ASN1_SEQUENCE,                                \
254
197k
        tname##_seq_tt,                                 \
255
197k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
256
197k
        &tname##_aux,                                   \
257
197k
        sizeof(stname),                                 \
258
197k
        #stname ASN1_ITEM_end(tname)
dsa_asn1.c:DSAparams_it
Line
Count
Source
251
152k
    static_ASN1_ITEM_start(tname)                       \
252
152k
        ASN1_ITYPE_SEQUENCE,                            \
253
152k
        V_ASN1_SEQUENCE,                                \
254
152k
        tname##_seq_tt,                                 \
255
152k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
256
152k
        &tname##_aux,                                   \
257
152k
        sizeof(stname),                                 \
258
152k
        #stname ASN1_ITEM_end(tname)
dsa_asn1.c:DSAPublicKey_it
Line
Count
Source
251
81.4k
    static_ASN1_ITEM_start(tname)                       \
252
81.4k
        ASN1_ITYPE_SEQUENCE,                            \
253
81.4k
        V_ASN1_SEQUENCE,                                \
254
81.4k
        tname##_seq_tt,                                 \
255
81.4k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
256
81.4k
        &tname##_aux,                                   \
257
81.4k
        sizeof(stname),                                 \
258
81.4k
        #stname ASN1_ITEM_end(tname)
ts_asn1.c:TS_RESP_it
Line
Count
Source
251
53.5k
    static_ASN1_ITEM_start(tname)                       \
252
53.5k
        ASN1_ITYPE_SEQUENCE,                            \
253
53.5k
        V_ASN1_SEQUENCE,                                \
254
53.5k
        tname##_seq_tt,                                 \
255
53.5k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
256
53.5k
        &tname##_aux,                                   \
257
53.5k
        sizeof(stname),                                 \
258
53.5k
        #stname ASN1_ITEM_end(tname)
259
260
#define ASN1_NDEF_SEQUENCE_END_cb(stname, tname)        \
261
    ;                                                   \
262
845k
    ASN1_ITEM_start(tname)                              \
263
845k
        ASN1_ITYPE_NDEF_SEQUENCE,                       \
264
845k
        V_ASN1_SEQUENCE,                                \
265
845k
        tname##_seq_tt,                                 \
266
845k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
267
845k
        &tname##_aux,                                   \
268
845k
        sizeof(stname),                                 \
269
845k
        #stname ASN1_ITEM_end(tname)
PKCS7_it
Line
Count
Source
262
716k
    ASN1_ITEM_start(tname)                              \
263
716k
        ASN1_ITYPE_NDEF_SEQUENCE,                       \
264
716k
        V_ASN1_SEQUENCE,                                \
265
716k
        tname##_seq_tt,                                 \
266
716k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
267
716k
        &tname##_aux,                                   \
268
716k
        sizeof(stname),                                 \
269
716k
        #stname ASN1_ITEM_end(tname)
CMS_EncryptedContentInfo_it
Line
Count
Source
262
30.0k
    ASN1_ITEM_start(tname)                              \
263
30.0k
        ASN1_ITYPE_NDEF_SEQUENCE,                       \
264
30.0k
        V_ASN1_SEQUENCE,                                \
265
30.0k
        tname##_seq_tt,                                 \
266
30.0k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
267
30.0k
        &tname##_aux,                                   \
268
30.0k
        sizeof(stname),                                 \
269
30.0k
        #stname ASN1_ITEM_end(tname)
CMS_ContentInfo_it
Line
Count
Source
262
99.7k
    ASN1_ITEM_start(tname)                              \
263
99.7k
        ASN1_ITYPE_NDEF_SEQUENCE,                       \
264
99.7k
        V_ASN1_SEQUENCE,                                \
265
99.7k
        tname##_seq_tt,                                 \
266
99.7k
        sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE), \
267
99.7k
        &tname##_aux,                                   \
268
99.7k
        sizeof(stname),                                 \
269
99.7k
        #stname ASN1_ITEM_end(tname)
270
271
/*-
272
 * This pair helps declare a CHOICE type. We can do:
273
 *
274
 *      ASN1_CHOICE(chname) = {
275
 *              ... CHOICE options ...
276
 *      ASN1_CHOICE_END(chname)
277
 *
278
 *      This will produce an ASN1_ITEM called chname_it
279
 *      for a structure called chname. The structure
280
 *      definition must look like this:
281
 *      typedef struct {
282
 *              int type;
283
 *              union {
284
 *                      ASN1_SOMETHING *opt1;
285
 *                      ASN1_SOMEOTHER *opt2;
286
 *              } value;
287
 *      } chname;
288
 *
289
 *      the name of the selector must be 'type'.
290
 *      to use an alternative selector name use the
291
 *      ASN1_CHOICE_END_selector() version.
292
 */
293
294
#define ASN1_CHOICE(tname) \
295
    static const ASN1_TEMPLATE tname##_ch_tt[]
296
297
#define ASN1_CHOICE_cb(tname, cb)                                       \
298
    static const ASN1_AUX tname##_aux = { NULL, 0, 0, 0, cb, 0, NULL }; \
299
    ASN1_CHOICE(tname)
300
301
#define ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname)
302
303
#define static_ASN1_CHOICE_END(stname) static_ASN1_CHOICE_END_name(stname, stname)
304
305
#define ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type)
306
307
#define static_ASN1_CHOICE_END_name(stname, tname) static_ASN1_CHOICE_END_selector(stname, tname, type)
308
309
#define ASN1_CHOICE_END_selector(stname, tname, selname) \
310
    ;                                                    \
311
17.4M
    ASN1_ITEM_start(tname)                               \
312
17.4M
        ASN1_ITYPE_CHOICE,                               \
313
17.4M
        offsetof(stname, selname),                       \
314
17.4M
        tname##_ch_tt,                                   \
315
17.4M
        sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),   \
316
17.4M
        NULL,                                            \
317
17.4M
        sizeof(stname),                                  \
318
17.4M
        #stname ASN1_ITEM_end(tname)
319
320
#define static_ASN1_CHOICE_END_selector(stname, tname, selname) \
321
    ;                                                           \
322
450k
    static_ASN1_ITEM_start(tname)                               \
323
450k
        ASN1_ITYPE_CHOICE,                                      \
324
450k
        offsetof(stname, selname),                              \
325
450k
        tname##_ch_tt,                                          \
326
450k
        sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),          \
327
450k
        NULL,                                                   \
328
450k
        sizeof(stname),                                         \
329
450k
        #stname ASN1_ITEM_end(tname)
330
331
#define ASN1_CHOICE_END_cb(stname, tname, selname)     \
332
    ;                                                  \
333
3.40M
    ASN1_ITEM_start(tname)                             \
334
3.40M
        ASN1_ITYPE_CHOICE,                             \
335
3.40M
        offsetof(stname, selname),                     \
336
3.40M
        tname##_ch_tt,                                 \
337
3.40M
        sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE), \
338
3.40M
        &tname##_aux,                                  \
339
3.40M
        sizeof(stname),                                \
340
3.40M
        #stname ASN1_ITEM_end(tname)
341
342
/* This helps with the template wrapper form of ASN1_ITEM */
343
344
#define ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \
345
    (flags), (tag), 0,                                  \
346
    #name, ASN1_ITEM_ref(type)                          \
347
}
348
349
/* These help with SEQUENCE or CHOICE components */
350
351
/* used to declare other types */
352
353
#define ASN1_EX_TYPE(flags, tag, stname, field, type) { \
354
    (flags), (tag), offsetof(stname, field),            \
355
    #field, ASN1_ITEM_ref(type)                         \
356
}
357
358
/* implicit and explicit helper macros */
359
360
#define ASN1_IMP_EX(stname, field, type, tag, ex) \
361
    ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | (ex), tag, stname, field, type)
362
363
#define ASN1_EXP_EX(stname, field, type, tag, ex) \
364
    ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | (ex), tag, stname, field, type)
365
366
/* Any defined by macros: the field used is in the table itself */
367
368
#define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb }
369
#define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb }
370
371
/* Plain simple type */
372
#define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0, 0, stname, field, type)
373
/* Embedded simple type */
374
#define ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED, 0, stname, field, type)
375
376
/* OPTIONAL simple type */
377
#define ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type)
378
#define ASN1_OPT_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL | ASN1_TFLG_EMBED, 0, stname, field, type)
379
380
/* IMPLICIT tagged simple type */
381
#define ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0)
382
#define ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)
383
384
/* IMPLICIT tagged OPTIONAL simple type */
385
#define ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)
386
#define ASN1_IMP_OPT_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL | ASN1_TFLG_EMBED)
387
388
/* Same as above but EXPLICIT */
389
390
#define ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0)
391
#define ASN1_EXP_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)
392
#define ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)
393
#define ASN1_EXP_OPT_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL | ASN1_TFLG_EMBED)
394
395
/* SEQUENCE OF type */
396
#define ASN1_SEQUENCE_OF(stname, field, type) \
397
    ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type)
398
399
/* OPTIONAL SEQUENCE OF */
400
#define ASN1_SEQUENCE_OF_OPT(stname, field, type) \
401
    ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL, 0, stname, field, type)
402
403
/* Same as above but for SET OF */
404
405
#define ASN1_SET_OF(stname, field, type) \
406
    ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type)
407
408
#define ASN1_SET_OF_OPT(stname, field, type) \
409
    ASN1_EX_TYPE(ASN1_TFLG_SET_OF | ASN1_TFLG_OPTIONAL, 0, stname, field, type)
410
411
/* Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL */
412
413
#define ASN1_IMP_SET_OF(stname, field, type, tag) \
414
    ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)
415
416
#define ASN1_EXP_SET_OF(stname, field, type, tag) \
417
    ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)
418
419
#define ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \
420
    ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF | ASN1_TFLG_OPTIONAL)
421
422
#define ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \
423
    ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF | ASN1_TFLG_OPTIONAL)
424
425
#define ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \
426
    ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)
427
428
#define ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \
429
    ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL)
430
431
#define ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \
432
    ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)
433
434
#define ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \
435
    ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL)
436
437
/* EXPLICIT using indefinite length constructed form */
438
#define ASN1_NDEF_EXP(stname, field, type, tag) \
439
    ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF)
440
441
/* EXPLICIT OPTIONAL using indefinite length constructed form */
442
#define ASN1_NDEF_EXP_OPT(stname, field, type, tag) \
443
    ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL | ASN1_TFLG_NDEF)
444
445
/* Macros for the ASN1_ADB structure */
446
447
#define ASN1_ADB(name) \
448
    static const ASN1_ADB_TABLE name##_adbtbl[]
449
450
#define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \
451
    ;                                                       \
452
    static const ASN1_ITEM *name##_adb(void)                \
453
3.55M
    {                                                       \
454
3.55M
        static const ASN1_ADB internal_adb = {              \
455
3.55M
            flags,                                          \
456
3.55M
            offsetof(name, field),                          \
457
3.55M
            adb_cb,                                         \
458
3.55M
            name##_adbtbl,                                  \
459
3.55M
            sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE), \
460
3.55M
            def,                                            \
461
3.55M
            none                                            \
462
3.55M
        };                                                  \
463
3.55M
        return (const ASN1_ITEM *)&internal_adb;            \
464
3.55M
    }                                                       \
465
    void dummy_function(void)
466
467
#define ADB_ENTRY(val, template) { val, template }
468
469
#define ASN1_ADB_TEMPLATE(name) \
470
    static const ASN1_TEMPLATE name##_tt
471
472
/*
473
 * This is the ASN1 template structure that defines a wrapper round the
474
 * actual type. It determines the actual position of the field in the value
475
 * structure, various flags such as OPTIONAL and the field name.
476
 */
477
478
struct ASN1_TEMPLATE_st {
479
    unsigned long flags; /* Various flags */
480
    long tag; /* tag, not used if no tagging */
481
    unsigned long offset; /* Offset of this field in structure */
482
    const char *field_name; /* Field name */
483
    ASN1_ITEM_EXP *item; /* Relevant ASN1_ITEM or ASN1_ADB */
484
};
485
486
/* Macro to extract ASN1_ITEM and ASN1_ADB pointer from ASN1_TEMPLATE */
487
488
#define ASN1_TEMPLATE_item(t) (t->item_ptr)
489
#define ASN1_TEMPLATE_adb(t) (t->item_ptr)
490
491
typedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE;
492
typedef struct ASN1_ADB_st ASN1_ADB;
493
494
struct ASN1_ADB_st {
495
    unsigned long flags; /* Various flags */
496
    unsigned long offset; /* Offset of selector field */
497
    int (*adb_cb)(long *psel); /* Application callback */
498
    const ASN1_ADB_TABLE *tbl; /* Table of possible types */
499
    long tblcount; /* Number of entries in tbl */
500
    const ASN1_TEMPLATE *default_tt; /* Type to use if no match */
501
    const ASN1_TEMPLATE *null_tt; /* Type to use if selector is NULL */
502
};
503
504
struct ASN1_ADB_TABLE_st {
505
    long value; /* NID for an object or value for an int */
506
    const ASN1_TEMPLATE tt; /* item for this value */
507
};
508
509
/* template flags */
510
511
/* Field is optional */
512
233M
#define ASN1_TFLG_OPTIONAL (0x1)
513
514
/* Field is a SET OF */
515
151M
#define ASN1_TFLG_SET_OF (0x1 << 1)
516
517
/* Field is a SEQUENCE OF */
518
20.7M
#define ASN1_TFLG_SEQUENCE_OF (0x2 << 1)
519
520
/*
521
 * Special case: this refers to a SET OF that will be sorted into DER order
522
 * when encoded *and* the corresponding STACK will be modified to match the
523
 * new order.
524
 */
525
#define ASN1_TFLG_SET_ORDER (0x3 << 1)
526
527
/* Mask for SET OF or SEQUENCE OF */
528
815M
#define ASN1_TFLG_SK_MASK (0x3 << 1)
529
530
/*
531
 * These flags mean the tag should be taken from the tag field. If EXPLICIT
532
 * then the underlying type is used for the inner tag.
533
 */
534
535
/* IMPLICIT tagging */
536
220M
#define ASN1_TFLG_IMPTAG (0x1 << 3)
537
538
/* EXPLICIT tagging, inner tag from underlying type */
539
466M
#define ASN1_TFLG_EXPTAG (0x2 << 3)
540
541
236M
#define ASN1_TFLG_TAG_MASK (0x3 << 3)
542
543
/* context specific IMPLICIT */
544
#define ASN1_TFLG_IMPLICIT (ASN1_TFLG_IMPTAG | ASN1_TFLG_CONTEXT)
545
546
/* context specific EXPLICIT */
547
#define ASN1_TFLG_EXPLICIT (ASN1_TFLG_EXPTAG | ASN1_TFLG_CONTEXT)
548
549
/*
550
 * If tagging is in force these determine the type of tag to use. Otherwise
551
 * the tag is determined by the underlying type. These values reflect the
552
 * actual octet format.
553
 */
554
555
/* Universal tag */
556
#define ASN1_TFLG_UNIVERSAL (0x0 << 6)
557
/* Application tag */
558
#define ASN1_TFLG_APPLICATION (0x1 << 6)
559
/* Context specific tag */
560
#define ASN1_TFLG_CONTEXT (0x2 << 6)
561
/* Private tag */
562
#define ASN1_TFLG_PRIVATE (0x3 << 6)
563
564
763M
#define ASN1_TFLG_TAG_CLASS (0x3 << 6)
565
566
/*
567
 * These are for ANY DEFINED BY type. In this case the 'item' field points to
568
 * an ASN1_ADB structure which contains a table of values to decode the
569
 * relevant type
570
 */
571
572
705M
#define ASN1_TFLG_ADB_MASK (0x3 << 8)
573
574
1.76M
#define ASN1_TFLG_ADB_OID (0x1 << 8)
575
576
#define ASN1_TFLG_ADB_INT (0x1 << 9)
577
578
/*
579
 * This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes
580
 * indefinite length constructed encoding to be used if required.
581
 */
582
583
453M
#define ASN1_TFLG_NDEF (0x1 << 11)
584
585
/* Field is embedded and not a pointer */
586
816M
#define ASN1_TFLG_EMBED (0x1 << 12)
587
588
/* This is the actual ASN1 item itself */
589
590
struct ASN1_ITEM_st {
591
    char itype; /* The item type, primitive, SEQUENCE, CHOICE
592
                 * or extern */
593
    long utype; /* underlying type */
594
    const ASN1_TEMPLATE *templates; /* If SEQUENCE or CHOICE this contains
595
                                     * the contents */
596
    long tcount; /* Number of templates if SEQUENCE or CHOICE */
597
    const void *funcs; /* further data and type-specific functions */
598
    /* funcs can be ASN1_PRIMITIVE_FUNCS*, ASN1_EXTERN_FUNCS*, or ASN1_AUX* */
599
    long size; /* Structure size (usually) */
600
    const char *sname; /* Structure name */
601
};
602
603
/*
604
 * Cache for ASN1 tag and length, so we don't keep re-reading it for things
605
 * like CHOICE
606
 */
607
608
struct ASN1_TLC_st {
609
    char valid; /* Values below are valid */
610
    int ret; /* return value */
611
    long plen; /* length */
612
    int ptag; /* class value */
613
    int pclass; /* class value */
614
    int hdrlen; /* header length */
615
};
616
617
/* Typedefs for ASN1 function pointers */
618
typedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
619
    const ASN1_ITEM *it, int tag, int aclass, char opt,
620
    ASN1_TLC *ctx);
621
622
typedef int ASN1_ex_d2i_ex(ASN1_VALUE **pval, const unsigned char **in, long len,
623
    const ASN1_ITEM *it, int tag, int aclass, char opt,
624
    ASN1_TLC *ctx, OSSL_LIB_CTX *libctx,
625
    const char *propq);
626
typedef int ASN1_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
627
    const ASN1_ITEM *it, int tag, int aclass);
628
typedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
629
typedef int ASN1_ex_new_ex_func(ASN1_VALUE **pval, const ASN1_ITEM *it,
630
    OSSL_LIB_CTX *libctx, const char *propq);
631
typedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);
632
633
typedef int ASN1_ex_print_func(BIO *out, const ASN1_VALUE **pval,
634
    int indent, const char *fname,
635
    const ASN1_PCTX *pctx);
636
637
typedef int ASN1_primitive_i2c(const ASN1_VALUE **pval, unsigned char *cont,
638
    int *putype, const ASN1_ITEM *it);
639
typedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont,
640
    int len, int utype, char *free_cont,
641
    const ASN1_ITEM *it);
642
typedef int ASN1_primitive_print(BIO *out, const ASN1_VALUE **pval,
643
    const ASN1_ITEM *it, int indent,
644
    const ASN1_PCTX *pctx);
645
646
typedef struct ASN1_EXTERN_FUNCS_st {
647
    void *app_data;
648
    ASN1_ex_new_func *asn1_ex_new;
649
    ASN1_ex_free_func *asn1_ex_free;
650
    ASN1_ex_free_func *asn1_ex_clear;
651
    ASN1_ex_d2i *asn1_ex_d2i;
652
    ASN1_ex_i2d *asn1_ex_i2d;
653
    ASN1_ex_print_func *asn1_ex_print;
654
    ASN1_ex_new_ex_func *asn1_ex_new_ex;
655
    ASN1_ex_d2i_ex *asn1_ex_d2i_ex;
656
} ASN1_EXTERN_FUNCS;
657
658
typedef struct ASN1_PRIMITIVE_FUNCS_st {
659
    void *app_data;
660
    unsigned long flags;
661
    ASN1_ex_new_func *prim_new;
662
    ASN1_ex_free_func *prim_free;
663
    ASN1_ex_free_func *prim_clear;
664
    ASN1_primitive_c2i *prim_c2i;
665
    ASN1_primitive_i2c *prim_i2c;
666
    ASN1_primitive_print *prim_print;
667
} ASN1_PRIMITIVE_FUNCS;
668
669
/*
670
 * This is the ASN1_AUX structure: it handles various miscellaneous
671
 * requirements. For example the use of reference counts and an informational
672
 * callback. The "informational callback" is called at various points during
673
 * the ASN1 encoding and decoding. It can be used to provide minor
674
 * customisation of the structures used. This is most useful where the
675
 * supplied routines *almost* do the right thing but need some extra help at
676
 * a few points. If the callback returns zero then it is assumed a fatal
677
 * error has occurred and the main operation should be abandoned. If major
678
 * changes in the default behaviour are required then an external type is
679
 * more appropriate.
680
 * For the operations ASN1_OP_I2D_PRE, ASN1_OP_I2D_POST, ASN1_OP_PRINT_PRE, and
681
 * ASN1_OP_PRINT_POST, meanwhile a variant of the callback with const parameter
682
 * 'in' is provided to make clear statically that its input is not modified. If
683
 * and only if this variant is in use the flag ASN1_AFLG_CONST_CB must be set.
684
 */
685
686
typedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it,
687
    void *exarg);
688
typedef int ASN1_aux_const_cb(int operation, const ASN1_VALUE **in,
689
    const ASN1_ITEM *it, void *exarg);
690
691
typedef struct ASN1_AUX_st {
692
    void *app_data;
693
    int flags;
694
    int ref_offset; /* Offset of reference value */
695
    int ref_lock; /* Offset of lock value */
696
    ASN1_aux_cb *asn1_cb;
697
    int enc_offset; /* Offset of ASN1_ENCODING structure */
698
    ASN1_aux_const_cb *asn1_const_cb; /* for ASN1_OP_I2D_ and ASN1_OP_PRINT_ */
699
} ASN1_AUX;
700
701
/* For print related callbacks exarg points to this structure */
702
typedef struct ASN1_PRINT_ARG_st {
703
    BIO *out;
704
    int indent;
705
    const ASN1_PCTX *pctx;
706
} ASN1_PRINT_ARG;
707
708
/* For streaming related callbacks exarg points to this structure */
709
typedef struct ASN1_STREAM_ARG_st {
710
    /* BIO to stream through */
711
    BIO *out;
712
    /* BIO with filters appended */
713
    BIO *ndef_bio;
714
    /* Streaming I/O boundary */
715
    unsigned char **boundary;
716
} ASN1_STREAM_ARG;
717
718
/* Flags in ASN1_AUX */
719
720
/* Use a reference count */
721
9.33M
#define ASN1_AFLG_REFCOUNT 1
722
/* Save the encoding of structure (useful for signatures) */
723
13.1M
#define ASN1_AFLG_ENCODING 2
724
/* The Sequence length is invalid */
725
4.70M
#define ASN1_AFLG_BROKEN 4
726
/* Use the new asn1_const_cb */
727
5.56M
#define ASN1_AFLG_CONST_CB 8
728
729
/* operation values for asn1_cb */
730
731
7.08M
#define ASN1_OP_NEW_PRE 0
732
7.18M
#define ASN1_OP_NEW_POST 1
733
7.89M
#define ASN1_OP_FREE_PRE 2
734
6.26M
#define ASN1_OP_FREE_POST 3
735
5.16M
#define ASN1_OP_D2I_PRE 4
736
3.07M
#define ASN1_OP_D2I_POST 5
737
1.29M
#define ASN1_OP_I2D_PRE 6
738
379k
#define ASN1_OP_I2D_POST 7
739
56.8k
#define ASN1_OP_PRINT_PRE 8
740
40.2k
#define ASN1_OP_PRINT_POST 9
741
0
#define ASN1_OP_STREAM_PRE 10
742
0
#define ASN1_OP_STREAM_POST 11
743
0
#define ASN1_OP_DETACHED_PRE 12
744
0
#define ASN1_OP_DETACHED_POST 13
745
9
#define ASN1_OP_DUP_PRE 14
746
9
#define ASN1_OP_DUP_POST 15
747
9
#define ASN1_OP_GET0_LIBCTX 16
748
9
#define ASN1_OP_GET0_PROPQ 17
749
750
/* Macro to implement a primitive type */
751
#define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0)
752
#define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \
753
572M
    ASN1_ITEM_start(itname)                       \
754
572M
        ASN1_ITYPE_PRIMITIVE,                     \
755
572M
        V_##vname, NULL, 0, NULL, ex, #itname ASN1_ITEM_end(itname)
756
757
/* Macro to implement a multi string type */
758
#define IMPLEMENT_ASN1_MSTRING(itname, mask) \
759
156M
    ASN1_ITEM_start(itname)                  \
760
156M
        ASN1_ITYPE_MSTRING,                  \
761
156M
        mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname ASN1_ITEM_end(itname)
762
763
#define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \
764
26.6M
    ASN1_ITEM_start(sname)                       \
765
26.6M
        ASN1_ITYPE_EXTERN,                       \
766
26.6M
        tag,                                     \
767
26.6M
        NULL,                                    \
768
26.6M
        0,                                       \
769
26.6M
        &fptrs,                                  \
770
26.6M
        0,                                       \
771
26.6M
        #sname ASN1_ITEM_end(sname)
772
773
/* Macro to implement standard functions in terms of ASN1_ITEM structures */
774
775
#define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname)
776
777
#define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname)
778
779
#define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \
780
    IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname)
781
782
#define IMPLEMENT_STATIC_ASN1_ALLOC_FUNCTIONS(stname) \
783
    IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(static, stname, stname, stname)
784
785
#define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \
786
    IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname)
787
788
#define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(pre, stname, itname, fname) \
789
    pre stname *fname##_new(void)                                         \
790
    {                                                                     \
791
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));           \
792
    }                                                                     \
793
    pre void fname##_free(stname *a)                                      \
794
    {                                                                     \
795
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));          \
796
    }
797
798
#define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \
799
    stname *fname##_new(void)                                       \
800
54.1M
    {                                                               \
801
54.1M
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
54.1M
    }                                                               \
Unexecuted instantiation: GOST_KX_MESSAGE_new
PKCS8_PRIV_KEY_INFO_new
Line
Count
Source
800
1.14k
    {                                                               \
801
1.14k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
1.14k
    }                                                               \
ASN1_NULL_new
Line
Count
Source
800
79
    {                                                               \
801
79
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
79
    }                                                               \
ASN1_TYPE_new
Line
Count
Source
800
35.5M
    {                                                               \
801
35.5M
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
35.5M
    }                                                               \
Unexecuted instantiation: ASN1_PRINTABLE_new
Unexecuted instantiation: DISPLAYTEXT_new
Unexecuted instantiation: DIRECTORYSTRING_new
X509_ALGOR_new
Line
Count
Source
800
2.37M
    {                                                               \
801
2.37M
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
2.37M
    }                                                               \
Unexecuted instantiation: X9_62_PENTANOMIAL_new
Unexecuted instantiation: X9_62_CHARACTERISTIC_TWO_new
ECPARAMETERS_new
Line
Count
Source
800
972
    {                                                               \
801
972
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
972
    }                                                               \
ECPKPARAMETERS_new
Line
Count
Source
800
6.05k
    {                                                               \
801
6.05k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
6.05k
    }                                                               \
EC_PRIVATEKEY_new
Line
Count
Source
800
7.70k
    {                                                               \
801
7.70k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
7.70k
    }                                                               \
Unexecuted instantiation: OCSP_SIGNATURE_new
OCSP_CERTID_new
Line
Count
Source
800
425
    {                                                               \
801
425
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
425
    }                                                               \
Unexecuted instantiation: OCSP_ONEREQ_new
Unexecuted instantiation: OCSP_REQINFO_new
Unexecuted instantiation: OCSP_REQUEST_new
Unexecuted instantiation: OCSP_RESPBYTES_new
Unexecuted instantiation: OCSP_RESPONSE_new
Unexecuted instantiation: OCSP_RESPID_new
Unexecuted instantiation: OCSP_REVOKEDINFO_new
Unexecuted instantiation: OCSP_CERTSTATUS_new
Unexecuted instantiation: OCSP_SINGLERESP_new
Unexecuted instantiation: OCSP_RESPDATA_new
Unexecuted instantiation: OCSP_BASICRESP_new
Unexecuted instantiation: OCSP_CRLID_new
Unexecuted instantiation: OCSP_SERVICELOC_new
Unexecuted instantiation: RSA_PSS_PARAMS_new
Unexecuted instantiation: RSA_OAEP_PARAMS_new
OTHERNAME_new
Line
Count
Source
800
229
    {                                                               \
801
229
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
229
    }                                                               \
Unexecuted instantiation: EDIPARTYNAME_new
GENERAL_NAME_new
Line
Count
Source
800
198k
    {                                                               \
801
198k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
198k
    }                                                               \
GENERAL_NAMES_new
Line
Count
Source
800
34.4k
    {                                                               \
801
34.4k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
34.4k
    }                                                               \
ACCESS_DESCRIPTION_new
Line
Count
Source
800
1.49k
    {                                                               \
801
1.49k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
1.49k
    }                                                               \
Unexecuted instantiation: AUTHORITY_INFO_ACCESS_new
GENERAL_SUBTREE_new
Line
Count
Source
800
1.56k
    {                                                               \
801
1.56k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
1.56k
    }                                                               \
NAME_CONSTRAINTS_new
Line
Count
Source
800
604
    {                                                               \
801
604
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
604
    }                                                               \
Unexecuted instantiation: PROXY_POLICY_new
PROXY_CERT_INFO_EXTENSION_new
Line
Count
Source
800
68
    {                                                               \
801
68
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
68
    }                                                               \
POLICY_CONSTRAINTS_new
Line
Count
Source
800
270
    {                                                               \
801
270
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
270
    }                                                               \
Unexecuted instantiation: PKEY_USAGE_PERIOD_new
POLICY_MAPPING_new
Line
Count
Source
800
285
    {                                                               \
801
285
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
285
    }                                                               \
Unexecuted instantiation: OSSL_ROLE_SPEC_CERT_ID_new
Unexecuted instantiation: OSSL_ROLE_SPEC_CERT_ID_SYNTAX_new
Unexecuted instantiation: OSSL_ATTRIBUTES_SYNTAX_new
SXNETID_new
Line
Count
Source
800
814
    {                                                               \
801
814
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
814
    }                                                               \
SXNET_new
Line
Count
Source
800
215
    {                                                               \
801
215
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
215
    }                                                               \
Unexecuted instantiation: OSSL_DAY_TIME_new
Unexecuted instantiation: OSSL_DAY_TIME_BAND_new
Unexecuted instantiation: OSSL_TIME_SPEC_DAY_new
Unexecuted instantiation: OSSL_TIME_SPEC_WEEKS_new
Unexecuted instantiation: OSSL_TIME_SPEC_MONTH_new
Unexecuted instantiation: OSSL_NAMED_DAY_new
Unexecuted instantiation: OSSL_TIME_SPEC_X_DAY_OF_new
Unexecuted instantiation: OSSL_TIME_SPEC_ABSOLUTE_new
Unexecuted instantiation: OSSL_TIME_SPEC_TIME_new
Unexecuted instantiation: OSSL_TIME_SPEC_new
Unexecuted instantiation: OSSL_TIME_PERIOD_new
Unexecuted instantiation: TLS_FEATURE_new
Unexecuted instantiation: OSSL_USER_NOTICE_SYNTAX_new
Unexecuted instantiation: X509_ATTRIBUTE_new
Unexecuted instantiation: X509_REVOKED_new
Unexecuted instantiation: X509_CRL_INFO_new
Unexecuted instantiation: X509_CRL_new
X509_EXTENSION_new
Line
Count
Source
800
10.0k
    {                                                               \
801
10.0k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
10.0k
    }                                                               \
X509_NAME_ENTRY_new
Line
Count
Source
800
15.6M
    {                                                               \
801
15.6M
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
15.6M
    }                                                               \
X509_NAME_new
Line
Count
Source
800
82.9k
    {                                                               \
801
82.9k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
82.9k
    }                                                               \
Unexecuted instantiation: X509_PUBKEY_new
Unexecuted instantiation: X509_REQ_INFO_new
Unexecuted instantiation: X509_REQ_new
Unexecuted instantiation: X509_CINF_new
X509_new
Line
Count
Source
800
47.6k
    {                                                               \
801
47.6k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
47.6k
    }                                                               \
Unexecuted instantiation: X509_CERT_AUX_new
Unexecuted instantiation: ASN1_TIME_new
Unexecuted instantiation: X509_SIG_new
Unexecuted instantiation: NETSCAPE_SPKAC_new
Unexecuted instantiation: NETSCAPE_SPKI_new
Unexecuted instantiation: X509_VAL_new
Unexecuted instantiation: PKCS12_MAC_DATA_new
Unexecuted instantiation: PKCS12_BAGS_new
Unexecuted instantiation: PKCS12_SAFEBAG_new
Unexecuted instantiation: PKCS7_SIGNED_new
Unexecuted instantiation: PKCS7_SIGNER_INFO_new
Unexecuted instantiation: PKCS7_ISSUER_AND_SERIAL_new
Unexecuted instantiation: PKCS7_ENVELOPE_new
Unexecuted instantiation: PKCS7_RECIP_INFO_new
Unexecuted instantiation: PKCS7_ENC_CONTENT_new
Unexecuted instantiation: PKCS7_SIGN_ENVELOPE_new
Unexecuted instantiation: PKCS7_ENCRYPT_new
Unexecuted instantiation: PKCS7_DIGEST_new
Unexecuted instantiation: SM2_Ciphertext_new
Unexecuted instantiation: OSSL_ALLOWED_ATTRIBUTES_CHOICE_new
Unexecuted instantiation: OSSL_ALLOWED_ATTRIBUTES_ITEM_new
Unexecuted instantiation: OSSL_ALLOWED_ATTRIBUTES_SYNTAX_new
Unexecuted instantiation: OSSL_TARGET_new
Unexecuted instantiation: OSSL_TARGETS_new
Unexecuted instantiation: OSSL_TARGETING_INFORMATION_new
Unexecuted instantiation: IPAddressRange_new
Unexecuted instantiation: IPAddressOrRange_new
Unexecuted instantiation: IPAddressChoice_new
Unexecuted instantiation: IPAddressFamily_new
Unexecuted instantiation: NAMING_AUTHORITY_new
Unexecuted instantiation: PROFESSION_INFO_new
Unexecuted instantiation: ADMISSIONS_new
Unexecuted instantiation: ADMISSION_SYNTAX_new
AUTHORITY_KEYID_new
Line
Count
Source
800
3.48k
    {                                                               \
801
3.48k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
3.48k
    }                                                               \
ASRange_new
Line
Count
Source
800
2.46k
    {                                                               \
801
2.46k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
2.46k
    }                                                               \
ASIdOrRange_new
Line
Count
Source
800
8.15k
    {                                                               \
801
8.15k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
8.15k
    }                                                               \
ASIdentifierChoice_new
Line
Count
Source
800
891
    {                                                               \
801
891
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
891
    }                                                               \
ASIdentifiers_new
Line
Count
Source
800
1.00k
    {                                                               \
801
1.00k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
1.00k
    }                                                               \
Unexecuted instantiation: OSSL_HASH_new
Unexecuted instantiation: OSSL_INFO_SYNTAX_new
Unexecuted instantiation: OSSL_INFO_SYNTAX_POINTER_new
Unexecuted instantiation: OSSL_PRIVILEGE_POLICY_ID_new
Unexecuted instantiation: OSSL_ATTRIBUTE_DESCRIPTOR_new
Unexecuted instantiation: OSSL_ATAV_new
Unexecuted instantiation: OSSL_ATTRIBUTE_TYPE_MAPPING_new
Unexecuted instantiation: OSSL_ATTRIBUTE_VALUE_MAPPING_new
Unexecuted instantiation: OSSL_ATTRIBUTE_MAPPING_new
Unexecuted instantiation: OSSL_ATTRIBUTE_MAPPINGS_new
Unexecuted instantiation: OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX_new
OSSL_BASIC_ATTR_CONSTRAINTS_new
Line
Count
Source
800
172
    {                                                               \
801
172
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
172
    }                                                               \
BASIC_CONSTRAINTS_new
Line
Count
Source
800
367
    {                                                               \
801
367
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
367
    }                                                               \
Unexecuted instantiation: CERTIFICATEPOLICIES_new
POLICYINFO_new
Line
Count
Source
800
2.67k
    {                                                               \
801
2.67k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
2.67k
    }                                                               \
POLICYQUALINFO_new
Line
Count
Source
800
803
    {                                                               \
801
803
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
803
    }                                                               \
USERNOTICE_new
Line
Count
Source
800
751
    {                                                               \
801
751
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
751
    }                                                               \
NOTICEREF_new
Line
Count
Source
800
354
    {                                                               \
801
354
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
354
    }                                                               \
DIST_POINT_NAME_new
Line
Count
Source
800
34.4k
    {                                                               \
801
34.4k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
34.4k
    }                                                               \
DIST_POINT_new
Line
Count
Source
800
34.7k
    {                                                               \
801
34.7k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
34.7k
    }                                                               \
Unexecuted instantiation: CRL_DIST_POINTS_new
ISSUING_DIST_POINT_new
Line
Count
Source
800
139
    {                                                               \
801
139
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
139
    }                                                               \
OSSL_AA_DIST_POINT_new
Line
Count
Source
800
641
    {                                                               \
801
641
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
641
    }                                                               \
Unexecuted instantiation: EXTENDED_KEY_USAGE_new
ISSUER_SIGN_TOOL_new
Line
Count
Source
800
277
    {                                                               \
801
277
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
277
    }                                                               \
Unexecuted instantiation: X509_ACERT_new
Unexecuted instantiation: X509_ACERT_INFO_new
Unexecuted instantiation: OSSL_ISSUER_SERIAL_new
Unexecuted instantiation: OSSL_OBJECT_DIGEST_INFO_new
Unexecuted instantiation: X509_ACERT_ISSUER_V2FORM_new
Unexecuted instantiation: NETSCAPE_CERT_SEQUENCE_new
Unexecuted instantiation: PBEPARAM_new
Unexecuted instantiation: PBE2PARAM_new
Unexecuted instantiation: PBKDF2PARAM_new
Unexecuted instantiation: PBMAC1PARAM_new
Unexecuted instantiation: SCRYPT_PARAMS_new
Unexecuted instantiation: CMS_SignedData_new
Unexecuted instantiation: CMS_OtherRecipientInfo_new
Unexecuted instantiation: CMS_ContentInfo_new
Unexecuted instantiation: ESS_ISSUER_SERIAL_new
Unexecuted instantiation: ESS_CERT_ID_new
Unexecuted instantiation: ESS_SIGNING_CERT_new
Unexecuted instantiation: ESS_CERT_ID_V2_new
Unexecuted instantiation: ESS_SIGNING_CERT_V2_new
Unexecuted instantiation: TS_MSG_IMPRINT_new
Unexecuted instantiation: TS_REQ_new
Unexecuted instantiation: TS_ACCURACY_new
Unexecuted instantiation: TS_TST_INFO_new
Unexecuted instantiation: TS_STATUS_INFO_new
Unexecuted instantiation: TS_RESP_new
Unexecuted instantiation: CMS_ReceiptRequest_new
Unexecuted instantiation: OSSL_CMP_REVANNCONTENT_new
Unexecuted instantiation: OSSL_CMP_CHALLENGE_new
Unexecuted instantiation: OSSL_CMP_CAKEYUPDANNCONTENT_new
OSSL_CMP_ERRORMSGCONTENT_new
Line
Count
Source
800
30.4k
    {                                                               \
801
30.4k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
30.4k
    }                                                               \
Unexecuted instantiation: OSSL_CMP_ITAV_new
Unexecuted instantiation: OSSL_CMP_ROOTCAKEYUPDATE_new
Unexecuted instantiation: OSSL_CMP_ATAVS_new
Unexecuted instantiation: OSSL_CMP_CERTREQTEMPLATE_new
Unexecuted instantiation: OSSL_CMP_CRLSOURCE_new
Unexecuted instantiation: OSSL_CMP_CRLSTATUS_new
Unexecuted instantiation: OSSL_CMP_CERTORENCCERT_new
Unexecuted instantiation: OSSL_CMP_CERTIFIEDKEYPAIR_new
OSSL_CMP_REVDETAILS_new
Line
Count
Source
800
354
    {                                                               \
801
354
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
354
    }                                                               \
Unexecuted instantiation: OSSL_CMP_REVREPCONTENT_new
Unexecuted instantiation: OSSL_CMP_KEYRECREPCONTENT_new
OSSL_CMP_PKISI_new
Line
Count
Source
800
30.4k
    {                                                               \
801
30.4k
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
30.4k
    }                                                               \
Unexecuted instantiation: OSSL_CMP_CERTSTATUS_new
Unexecuted instantiation: OSSL_CMP_CERTRESPONSE_new
OSSL_CMP_POLLREQ_new
Line
Count
Source
800
184
    {                                                               \
801
184
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
184
    }                                                               \
Unexecuted instantiation: OSSL_CMP_POLLREP_new
Unexecuted instantiation: OSSL_CMP_CERTREPMESSAGE_new
Unexecuted instantiation: OSSL_CMP_PKIBODY_new
Unexecuted instantiation: OSSL_CMP_PKIHEADER_new
Unexecuted instantiation: OSSL_CMP_PROTECTEDPART_new
Unexecuted instantiation: OSSL_CRMF_PRIVATEKEYINFO_new
Unexecuted instantiation: OSSL_CRMF_ENCKEYWITHID_IDENTIFIER_new
Unexecuted instantiation: OSSL_CRMF_ENCKEYWITHID_new
OSSL_CRMF_CERTID_new
Line
Count
Source
800
77
    {                                                               \
801
77
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
77
    }                                                               \
Unexecuted instantiation: OSSL_CRMF_ENCRYPTEDVALUE_new
Unexecuted instantiation: OSSL_CRMF_ENCRYPTEDKEY_new
Unexecuted instantiation: OSSL_CRMF_SINGLEPUBINFO_new
Unexecuted instantiation: OSSL_CRMF_PKIPUBLICATIONINFO_new
Unexecuted instantiation: OSSL_CRMF_PKMACVALUE_new
Unexecuted instantiation: OSSL_CRMF_POPOPRIVKEY_new
Unexecuted instantiation: OSSL_CRMF_PBMPARAMETER_new
Unexecuted instantiation: OSSL_CRMF_POPOSIGNINGKEYINPUT_AUTHINFO_new
Unexecuted instantiation: OSSL_CRMF_POPOSIGNINGKEYINPUT_new
Unexecuted instantiation: OSSL_CRMF_POPOSIGNINGKEY_new
Unexecuted instantiation: OSSL_CRMF_POPO_new
OSSL_CRMF_ATTRIBUTETYPEANDVALUE_new
Line
Count
Source
800
49
    {                                                               \
801
49
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
49
    }                                                               \
Unexecuted instantiation: OSSL_CRMF_OPTIONALVALIDITY_new
Unexecuted instantiation: OSSL_CRMF_CERTTEMPLATE_new
Unexecuted instantiation: OSSL_CRMF_CERTREQUEST_new
OSSL_CRMF_MSG_new
Line
Count
Source
800
949
    {                                                               \
801
949
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
949
    }                                                               \
OSSL_CRMF_MSGS_new
Line
Count
Source
800
949
    {                                                               \
801
949
        return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname));     \
802
949
    }                                                               \
803
    void fname##_free(stname *a)                                    \
804
55.5M
    {                                                               \
805
55.5M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
55.5M
    }
Unexecuted instantiation: GOST_KX_MESSAGE_free
PKCS8_PRIV_KEY_INFO_free
Line
Count
Source
804
1.17M
    {                                                               \
805
1.17M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.17M
    }
Unexecuted instantiation: ASN1_NULL_free
ASN1_TYPE_free
Line
Count
Source
804
2.84M
    {                                                               \
805
2.84M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
2.84M
    }
Unexecuted instantiation: ASN1_PRINTABLE_free
Unexecuted instantiation: DISPLAYTEXT_free
Unexecuted instantiation: DIRECTORYSTRING_free
X509_ALGOR_free
Line
Count
Source
804
2.50M
    {                                                               \
805
2.50M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
2.50M
    }
Unexecuted instantiation: X9_62_PENTANOMIAL_free
Unexecuted instantiation: X9_62_CHARACTERISTIC_TWO_free
Unexecuted instantiation: ECPARAMETERS_free
ECPKPARAMETERS_free
Line
Count
Source
804
209k
    {                                                               \
805
209k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
209k
    }
EC_PRIVATEKEY_free
Line
Count
Source
804
69.7k
    {                                                               \
805
69.7k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
69.7k
    }
Unexecuted instantiation: OCSP_SIGNATURE_free
OCSP_CERTID_free
Line
Count
Source
804
53.0k
    {                                                               \
805
53.0k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
53.0k
    }
Unexecuted instantiation: OCSP_ONEREQ_free
Unexecuted instantiation: OCSP_REQINFO_free
Unexecuted instantiation: OCSP_REQUEST_free
Unexecuted instantiation: OCSP_RESPBYTES_free
OCSP_RESPONSE_free
Line
Count
Source
804
53.0k
    {                                                               \
805
53.0k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
53.0k
    }
OCSP_RESPID_free
Line
Count
Source
804
136
    {                                                               \
805
136
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
136
    }
Unexecuted instantiation: OCSP_REVOKEDINFO_free
Unexecuted instantiation: OCSP_CERTSTATUS_free
Unexecuted instantiation: OCSP_SINGLERESP_free
Unexecuted instantiation: OCSP_RESPDATA_free
OCSP_BASICRESP_free
Line
Count
Source
804
53.0k
    {                                                               \
805
53.0k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
53.0k
    }
Unexecuted instantiation: OCSP_CRLID_free
Unexecuted instantiation: OCSP_SERVICELOC_free
RSA_PSS_PARAMS_free
Line
Count
Source
804
451k
    {                                                               \
805
451k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
451k
    }
Unexecuted instantiation: RSA_OAEP_PARAMS_free
OTHERNAME_free
Line
Count
Source
804
78
    {                                                               \
805
78
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
78
    }
Unexecuted instantiation: EDIPARTYNAME_free
GENERAL_NAME_free
Line
Count
Source
804
81.6k
    {                                                               \
805
81.6k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
81.6k
    }
GENERAL_NAMES_free
Line
Count
Source
804
1.55M
    {                                                               \
805
1.55M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.55M
    }
ACCESS_DESCRIPTION_free
Line
Count
Source
804
498
    {                                                               \
805
498
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
498
    }
Unexecuted instantiation: AUTHORITY_INFO_ACCESS_free
GENERAL_SUBTREE_free
Line
Count
Source
804
463
    {                                                               \
805
463
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
463
    }
NAME_CONSTRAINTS_free
Line
Count
Source
804
1.57M
    {                                                               \
805
1.57M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.57M
    }
Unexecuted instantiation: PROXY_POLICY_free
PROXY_CERT_INFO_EXTENSION_free
Line
Count
Source
804
912
    {                                                               \
805
912
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
912
    }
POLICY_CONSTRAINTS_free
Line
Count
Source
804
262
    {                                                               \
805
262
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
262
    }
Unexecuted instantiation: PKEY_USAGE_PERIOD_free
POLICY_MAPPING_free
Line
Count
Source
804
212
    {                                                               \
805
212
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
212
    }
Unexecuted instantiation: OSSL_ROLE_SPEC_CERT_ID_free
Unexecuted instantiation: OSSL_ROLE_SPEC_CERT_ID_SYNTAX_free
Unexecuted instantiation: OSSL_ATTRIBUTES_SYNTAX_free
Unexecuted instantiation: SXNETID_free
SXNET_free
Line
Count
Source
804
148
    {                                                               \
805
148
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
148
    }
Unexecuted instantiation: OSSL_DAY_TIME_free
Unexecuted instantiation: OSSL_DAY_TIME_BAND_free
Unexecuted instantiation: OSSL_TIME_SPEC_DAY_free
Unexecuted instantiation: OSSL_TIME_SPEC_WEEKS_free
Unexecuted instantiation: OSSL_TIME_SPEC_MONTH_free
Unexecuted instantiation: OSSL_NAMED_DAY_free
Unexecuted instantiation: OSSL_TIME_SPEC_X_DAY_OF_free
Unexecuted instantiation: OSSL_TIME_SPEC_ABSOLUTE_free
Unexecuted instantiation: OSSL_TIME_SPEC_TIME_free
Unexecuted instantiation: OSSL_TIME_SPEC_free
Unexecuted instantiation: OSSL_TIME_PERIOD_free
Unexecuted instantiation: TLS_FEATURE_free
Unexecuted instantiation: OSSL_USER_NOTICE_SYNTAX_free
Unexecuted instantiation: X509_ATTRIBUTE_free
Unexecuted instantiation: X509_REVOKED_free
Unexecuted instantiation: X509_CRL_INFO_free
X509_CRL_free
Line
Count
Source
804
104k
    {                                                               \
805
104k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
104k
    }
X509_EXTENSION_free
Line
Count
Source
804
10.0k
    {                                                               \
805
10.0k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
10.0k
    }
X509_NAME_ENTRY_free
Line
Count
Source
804
29.5M
    {                                                               \
805
29.5M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
29.5M
    }
X509_NAME_free
Line
Count
Source
804
617k
    {                                                               \
805
617k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
617k
    }
X509_PUBKEY_free
Line
Count
Source
804
1.88M
    {                                                               \
805
1.88M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.88M
    }
Unexecuted instantiation: X509_REQ_INFO_free
X509_REQ_free
Line
Count
Source
804
60.9k
    {                                                               \
805
60.9k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
60.9k
    }
Unexecuted instantiation: X509_CINF_free
X509_free
Line
Count
Source
804
5.41M
    {                                                               \
805
5.41M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
5.41M
    }
X509_CERT_AUX_free
Line
Count
Source
804
1.54M
    {                                                               \
805
1.54M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.54M
    }
ASN1_TIME_free
Line
Count
Source
804
11.3k
    {                                                               \
805
11.3k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
11.3k
    }
X509_SIG_free
Line
Count
Source
804
152
    {                                                               \
805
152
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
152
    }
Unexecuted instantiation: NETSCAPE_SPKAC_free
Unexecuted instantiation: NETSCAPE_SPKI_free
Unexecuted instantiation: X509_VAL_free
Unexecuted instantiation: PKCS12_MAC_DATA_free
Unexecuted instantiation: PKCS12_BAGS_free
PKCS12_SAFEBAG_free
Line
Count
Source
804
78
    {                                                               \
805
78
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
78
    }
Unexecuted instantiation: PKCS7_SIGNED_free
Unexecuted instantiation: PKCS7_SIGNER_INFO_free
Unexecuted instantiation: PKCS7_ISSUER_AND_SERIAL_free
Unexecuted instantiation: PKCS7_ENVELOPE_free
Unexecuted instantiation: PKCS7_RECIP_INFO_free
Unexecuted instantiation: PKCS7_ENC_CONTENT_free
Unexecuted instantiation: PKCS7_SIGN_ENVELOPE_free
Unexecuted instantiation: PKCS7_ENCRYPT_free
Unexecuted instantiation: PKCS7_DIGEST_free
Unexecuted instantiation: SM2_Ciphertext_free
Unexecuted instantiation: OSSL_ALLOWED_ATTRIBUTES_CHOICE_free
Unexecuted instantiation: OSSL_ALLOWED_ATTRIBUTES_ITEM_free
Unexecuted instantiation: OSSL_ALLOWED_ATTRIBUTES_SYNTAX_free
Unexecuted instantiation: OSSL_TARGET_free
Unexecuted instantiation: OSSL_TARGETS_free
Unexecuted instantiation: OSSL_TARGETING_INFORMATION_free
Unexecuted instantiation: IPAddressRange_free
Unexecuted instantiation: IPAddressOrRange_free
Unexecuted instantiation: IPAddressChoice_free
IPAddressFamily_free
Line
Count
Source
804
675
    {                                                               \
805
675
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
675
    }
Unexecuted instantiation: NAMING_AUTHORITY_free
Unexecuted instantiation: PROFESSION_INFO_free
Unexecuted instantiation: ADMISSIONS_free
Unexecuted instantiation: ADMISSION_SYNTAX_free
AUTHORITY_KEYID_free
Line
Count
Source
804
1.97M
    {                                                               \
805
1.97M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.97M
    }
Unexecuted instantiation: ASRange_free
ASIdOrRange_free
Line
Count
Source
804
267
    {                                                               \
805
267
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
267
    }
Unexecuted instantiation: ASIdentifierChoice_free
ASIdentifiers_free
Line
Count
Source
804
1.57M
    {                                                               \
805
1.57M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.57M
    }
Unexecuted instantiation: OSSL_HASH_free
Unexecuted instantiation: OSSL_INFO_SYNTAX_free
Unexecuted instantiation: OSSL_INFO_SYNTAX_POINTER_free
Unexecuted instantiation: OSSL_PRIVILEGE_POLICY_ID_free
Unexecuted instantiation: OSSL_ATTRIBUTE_DESCRIPTOR_free
Unexecuted instantiation: OSSL_ATAV_free
Unexecuted instantiation: OSSL_ATTRIBUTE_TYPE_MAPPING_free
Unexecuted instantiation: OSSL_ATTRIBUTE_VALUE_MAPPING_free
Unexecuted instantiation: OSSL_ATTRIBUTE_MAPPING_free
Unexecuted instantiation: OSSL_ATTRIBUTE_MAPPINGS_free
Unexecuted instantiation: OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX_free
OSSL_BASIC_ATTR_CONSTRAINTS_free
Line
Count
Source
804
167
    {                                                               \
805
167
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
167
    }
BASIC_CONSTRAINTS_free
Line
Count
Source
804
73.9k
    {                                                               \
805
73.9k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
73.9k
    }
Unexecuted instantiation: CERTIFICATEPOLICIES_free
POLICYINFO_free
Line
Count
Source
804
1.53k
    {                                                               \
805
1.53k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.53k
    }
POLICYQUALINFO_free
Line
Count
Source
804
148
    {                                                               \
805
148
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
148
    }
Unexecuted instantiation: USERNOTICE_free
Unexecuted instantiation: NOTICEREF_free
Unexecuted instantiation: DIST_POINT_NAME_free
DIST_POINT_free
Line
Count
Source
804
3.78k
    {                                                               \
805
3.78k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
3.78k
    }
CRL_DIST_POINTS_free
Line
Count
Source
804
1.54M
    {                                                               \
805
1.54M
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.54M
    }
ISSUING_DIST_POINT_free
Line
Count
Source
804
399k
    {                                                               \
805
399k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
399k
    }
OSSL_AA_DIST_POINT_free
Line
Count
Source
804
309
    {                                                               \
805
309
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
309
    }
Unexecuted instantiation: EXTENDED_KEY_USAGE_free
ISSUER_SIGN_TOOL_free
Line
Count
Source
804
259
    {                                                               \
805
259
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
259
    }
X509_ACERT_free
Line
Count
Source
804
17.8k
    {                                                               \
805
17.8k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
17.8k
    }
Unexecuted instantiation: X509_ACERT_INFO_free
Unexecuted instantiation: OSSL_ISSUER_SERIAL_free
Unexecuted instantiation: OSSL_OBJECT_DIGEST_INFO_free
Unexecuted instantiation: X509_ACERT_ISSUER_V2FORM_free
Unexecuted instantiation: NETSCAPE_CERT_SEQUENCE_free
PBEPARAM_free
Line
Count
Source
804
20
    {                                                               \
805
20
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
20
    }
PBE2PARAM_free
Line
Count
Source
804
508
    {                                                               \
805
508
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
508
    }
PBKDF2PARAM_free
Line
Count
Source
804
976
    {                                                               \
805
976
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
976
    }
PBMAC1PARAM_free
Line
Count
Source
804
1.20k
    {                                                               \
805
1.20k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.20k
    }
Unexecuted instantiation: SCRYPT_PARAMS_free
Unexecuted instantiation: CMS_SignedData_free
Unexecuted instantiation: CMS_OtherRecipientInfo_free
CMS_ContentInfo_free
Line
Count
Source
804
5.50k
    {                                                               \
805
5.50k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
5.50k
    }
ESS_ISSUER_SERIAL_free
Line
Count
Source
804
16
    {                                                               \
805
16
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
16
    }
ESS_CERT_ID_free
Line
Count
Source
804
91
    {                                                               \
805
91
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
91
    }
ESS_SIGNING_CERT_free
Line
Count
Source
804
111
    {                                                               \
805
111
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
111
    }
ESS_CERT_ID_V2_free
Line
Count
Source
804
115
    {                                                               \
805
115
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
115
    }
ESS_SIGNING_CERT_V2_free
Line
Count
Source
804
111
    {                                                               \
805
111
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
111
    }
TS_MSG_IMPRINT_free
Line
Count
Source
804
24
    {                                                               \
805
24
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
24
    }
TS_REQ_free
Line
Count
Source
804
5.06k
    {                                                               \
805
5.06k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
5.06k
    }
TS_ACCURACY_free
Line
Count
Source
804
1.29k
    {                                                               \
805
1.29k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.29k
    }
TS_TST_INFO_free
Line
Count
Source
804
41.9k
    {                                                               \
805
41.9k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
41.9k
    }
TS_STATUS_INFO_free
Line
Count
Source
804
2.09k
    {                                                               \
805
2.09k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
2.09k
    }
TS_RESP_free
Line
Count
Source
804
521
    {                                                               \
805
521
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
521
    }
Unexecuted instantiation: CMS_ReceiptRequest_free
Unexecuted instantiation: OSSL_CMP_REVANNCONTENT_free
Unexecuted instantiation: OSSL_CMP_CHALLENGE_free
Unexecuted instantiation: OSSL_CMP_CAKEYUPDANNCONTENT_free
Unexecuted instantiation: OSSL_CMP_ERRORMSGCONTENT_free
Unexecuted instantiation: OSSL_CMP_ITAV_free
Unexecuted instantiation: OSSL_CMP_ROOTCAKEYUPDATE_free
Unexecuted instantiation: OSSL_CMP_ATAVS_free
Unexecuted instantiation: OSSL_CMP_CERTREQTEMPLATE_free
Unexecuted instantiation: OSSL_CMP_CRLSOURCE_free
Unexecuted instantiation: OSSL_CMP_CRLSTATUS_free
Unexecuted instantiation: OSSL_CMP_CERTORENCCERT_free
Unexecuted instantiation: OSSL_CMP_CERTIFIEDKEYPAIR_free
OSSL_CMP_REVDETAILS_free
Line
Count
Source
804
354
    {                                                               \
805
354
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
354
    }
Unexecuted instantiation: OSSL_CMP_REVREPCONTENT_free
Unexecuted instantiation: OSSL_CMP_KEYRECREPCONTENT_free
OSSL_CMP_PKISI_free
Line
Count
Source
804
66.0k
    {                                                               \
805
66.0k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
66.0k
    }
Unexecuted instantiation: OSSL_CMP_CERTSTATUS_free
Unexecuted instantiation: OSSL_CMP_CERTRESPONSE_free
OSSL_CMP_POLLREQ_free
Line
Count
Source
804
184
    {                                                               \
805
184
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
184
    }
Unexecuted instantiation: OSSL_CMP_POLLREP_free
Unexecuted instantiation: OSSL_CMP_CERTREPMESSAGE_free
Unexecuted instantiation: OSSL_CMP_PKIBODY_free
Unexecuted instantiation: OSSL_CMP_PKIHEADER_free
Unexecuted instantiation: OSSL_CMP_PROTECTEDPART_free
Unexecuted instantiation: OSSL_CRMF_PRIVATEKEYINFO_free
Unexecuted instantiation: OSSL_CRMF_ENCKEYWITHID_IDENTIFIER_free
Unexecuted instantiation: OSSL_CRMF_ENCKEYWITHID_free
OSSL_CRMF_CERTID_free
Line
Count
Source
804
92
    {                                                               \
805
92
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
92
    }
Unexecuted instantiation: OSSL_CRMF_ENCRYPTEDVALUE_free
Unexecuted instantiation: OSSL_CRMF_ENCRYPTEDKEY_free
Unexecuted instantiation: OSSL_CRMF_SINGLEPUBINFO_free
Unexecuted instantiation: OSSL_CRMF_PKIPUBLICATIONINFO_free
Unexecuted instantiation: OSSL_CRMF_PKMACVALUE_free
Unexecuted instantiation: OSSL_CRMF_POPOPRIVKEY_free
OSSL_CRMF_PBMPARAMETER_free
Line
Count
Source
804
1.21k
    {                                                               \
805
1.21k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.21k
    }
Unexecuted instantiation: OSSL_CRMF_POPOSIGNINGKEYINPUT_AUTHINFO_free
Unexecuted instantiation: OSSL_CRMF_POPOSIGNINGKEYINPUT_free
Unexecuted instantiation: OSSL_CRMF_POPOSIGNINGKEY_free
OSSL_CRMF_POPO_free
Line
Count
Source
804
949
    {                                                               \
805
949
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
949
    }
Unexecuted instantiation: OSSL_CRMF_ATTRIBUTETYPEANDVALUE_free
Unexecuted instantiation: OSSL_CRMF_OPTIONALVALIDITY_free
Unexecuted instantiation: OSSL_CRMF_CERTTEMPLATE_free
Unexecuted instantiation: OSSL_CRMF_CERTREQUEST_free
OSSL_CRMF_MSG_free
Line
Count
Source
804
1.01k
    {                                                               \
805
1.01k
        ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname));    \
806
1.01k
    }
Unexecuted instantiation: OSSL_CRMF_MSGS_free
807
808
#define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname)    \
809
    IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \
810
    IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)
811
812
#define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname)                       \
813
    stname *d2i_##fname(stname **a, const unsigned char **in, long len)                    \
814
7.05M
    {                                                                                      \
815
7.05M
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
7.05M
    }                                                                                      \
Unexecuted instantiation: d2i_GOST_KX_MESSAGE
d2i_PKCS8_PRIV_KEY_INFO
Line
Count
Source
814
1.52M
    {                                                                                      \
815
1.52M
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
1.52M
    }                                                                                      \
d2i_ASN1_OCTET_STRING
Line
Count
Source
814
891k
    {                                                                                      \
815
891k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
891k
    }                                                                                      \
d2i_ASN1_INTEGER
Line
Count
Source
814
968k
    {                                                                                      \
815
968k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
968k
    }                                                                                      \
d2i_ASN1_ENUMERATED
Line
Count
Source
814
103k
    {                                                                                      \
815
103k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
103k
    }                                                                                      \
Unexecuted instantiation: d2i_ASN1_BIT_STRING
Unexecuted instantiation: d2i_ASN1_UTF8STRING
Unexecuted instantiation: d2i_ASN1_PRINTABLESTRING
Unexecuted instantiation: d2i_ASN1_T61STRING
Unexecuted instantiation: d2i_ASN1_IA5STRING
Unexecuted instantiation: d2i_ASN1_GENERALSTRING
Unexecuted instantiation: d2i_ASN1_UTCTIME
Unexecuted instantiation: d2i_ASN1_GENERALIZEDTIME
Unexecuted instantiation: d2i_ASN1_VISIBLESTRING
Unexecuted instantiation: d2i_ASN1_UNIVERSALSTRING
Unexecuted instantiation: d2i_ASN1_BMPSTRING
Unexecuted instantiation: d2i_ASN1_NULL
d2i_ASN1_TYPE
Line
Count
Source
814
2.03k
    {                                                                                      \
815
2.03k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
2.03k
    }                                                                                      \
Unexecuted instantiation: d2i_ASN1_PRINTABLE
Unexecuted instantiation: d2i_DISPLAYTEXT
Unexecuted instantiation: d2i_DIRECTORYSTRING
d2i_ASN1_SEQUENCE_ANY
Line
Count
Source
814
46.0k
    {                                                                                      \
815
46.0k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
46.0k
    }                                                                                      \
Unexecuted instantiation: d2i_ASN1_SET_ANY
Unexecuted instantiation: d2i_X509_ALGOR
Unexecuted instantiation: d2i_X509_ALGORS
d2i_DHparams
Line
Count
Source
814
81.3k
    {                                                                                      \
815
81.3k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
81.3k
    }                                                                                      \
d2i_int_dhx
Line
Count
Source
814
151k
    {                                                                                      \
815
151k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
151k
    }                                                                                      \
d2i_DSAPrivateKey
Line
Count
Source
814
194k
    {                                                                                      \
815
194k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
194k
    }                                                                                      \
d2i_DSAparams
Line
Count
Source
814
152k
    {                                                                                      \
815
152k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
152k
    }                                                                                      \
d2i_DSAPublicKey
Line
Count
Source
814
81.4k
    {                                                                                      \
815
81.4k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
81.4k
    }                                                                                      \
d2i_ECPKPARAMETERS
Line
Count
Source
814
208k
    {                                                                                      \
815
208k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
208k
    }                                                                                      \
d2i_EC_PRIVATEKEY
Line
Count
Source
814
256k
    {                                                                                      \
815
256k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
256k
    }                                                                                      \
Unexecuted instantiation: d2i_OCSP_SIGNATURE
Unexecuted instantiation: d2i_OCSP_CERTID
Unexecuted instantiation: d2i_OCSP_ONEREQ
Unexecuted instantiation: d2i_OCSP_REQINFO
Unexecuted instantiation: d2i_OCSP_REQUEST
Unexecuted instantiation: d2i_OCSP_RESPBYTES
d2i_OCSP_RESPONSE
Line
Count
Source
814
5.61k
    {                                                                                      \
815
5.61k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
5.61k
    }                                                                                      \
d2i_OCSP_RESPID
Line
Count
Source
814
2.08k
    {                                                                                      \
815
2.08k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
2.08k
    }                                                                                      \
Unexecuted instantiation: d2i_OCSP_REVOKEDINFO
Unexecuted instantiation: d2i_OCSP_CERTSTATUS
Unexecuted instantiation: d2i_OCSP_SINGLERESP
Unexecuted instantiation: d2i_OCSP_RESPDATA
Unexecuted instantiation: d2i_OCSP_BASICRESP
Unexecuted instantiation: d2i_OCSP_CRLID
Unexecuted instantiation: d2i_OCSP_SERVICELOC
Unexecuted instantiation: d2i_RSA_PSS_PARAMS
Unexecuted instantiation: d2i_RSA_OAEP_PARAMS
d2i_RSAPrivateKey
Line
Count
Source
814
160k
    {                                                                                      \
815
160k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
160k
    }                                                                                      \
d2i_RSAPublicKey
Line
Count
Source
814
201k
    {                                                                                      \
815
201k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
201k
    }                                                                                      \
Unexecuted instantiation: d2i_OTHERNAME
Unexecuted instantiation: d2i_EDIPARTYNAME
d2i_GENERAL_NAME
Line
Count
Source
814
25.5k
    {                                                                                      \
815
25.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
25.5k
    }                                                                                      \
Unexecuted instantiation: d2i_GENERAL_NAMES
Unexecuted instantiation: d2i_ACCESS_DESCRIPTION
Unexecuted instantiation: d2i_AUTHORITY_INFO_ACCESS
Unexecuted instantiation: d2i_PROXY_POLICY
Unexecuted instantiation: d2i_PROXY_CERT_INFO_EXTENSION
Unexecuted instantiation: d2i_PKEY_USAGE_PERIOD
Unexecuted instantiation: d2i_OSSL_ROLE_SPEC_CERT_ID
Unexecuted instantiation: d2i_OSSL_ROLE_SPEC_CERT_ID_SYNTAX
Unexecuted instantiation: d2i_OSSL_ATTRIBUTES_SYNTAX
Unexecuted instantiation: d2i_SXNETID
Unexecuted instantiation: d2i_SXNET
Unexecuted instantiation: d2i_OSSL_DAY_TIME
Unexecuted instantiation: d2i_OSSL_DAY_TIME_BAND
Unexecuted instantiation: d2i_OSSL_TIME_SPEC_DAY
Unexecuted instantiation: d2i_OSSL_TIME_SPEC_WEEKS
Unexecuted instantiation: d2i_OSSL_TIME_SPEC_MONTH
Unexecuted instantiation: d2i_OSSL_NAMED_DAY
Unexecuted instantiation: d2i_OSSL_TIME_SPEC_X_DAY_OF
Unexecuted instantiation: d2i_OSSL_TIME_SPEC_ABSOLUTE
Unexecuted instantiation: d2i_OSSL_TIME_SPEC_TIME
Unexecuted instantiation: d2i_OSSL_TIME_SPEC
Unexecuted instantiation: d2i_OSSL_TIME_PERIOD
Unexecuted instantiation: d2i_OSSL_USER_NOTICE_SYNTAX
Unexecuted instantiation: d2i_X509_ATTRIBUTE
Unexecuted instantiation: d2i_X509_REVOKED
Unexecuted instantiation: d2i_X509_CRL_INFO
d2i_X509_CRL
Line
Count
Source
814
48.5k
    {                                                                                      \
815
48.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
48.5k
    }                                                                                      \
Unexecuted instantiation: d2i_X509_EXTENSION
d2i_X509_EXTENSIONS
Line
Count
Source
814
715
    {                                                                                      \
815
715
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
715
    }                                                                                      \
Unexecuted instantiation: d2i_X509_NAME_ENTRY
d2i_X509_NAME
Line
Count
Source
814
5.13k
    {                                                                                      \
815
5.13k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
5.13k
    }                                                                                      \
d2i_X509_PUBKEY
Line
Count
Source
814
1.03M
    {                                                                                      \
815
1.03M
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
1.03M
    }                                                                                      \
Unexecuted instantiation: d2i_X509_REQ_INFO
Unexecuted instantiation: d2i_X509_REQ
Unexecuted instantiation: d2i_X509_CINF
d2i_X509
Line
Count
Source
814
260k
    {                                                                                      \
815
260k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
260k
    }                                                                                      \
Unexecuted instantiation: d2i_X509_CERT_AUX
Unexecuted instantiation: d2i_ASN1_TIME
d2i_X509_SIG
Line
Count
Source
814
40.6k
    {                                                                                      \
815
40.6k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
40.6k
    }                                                                                      \
Unexecuted instantiation: d2i_NETSCAPE_SPKAC
Unexecuted instantiation: d2i_NETSCAPE_SPKI
Unexecuted instantiation: d2i_X509_VAL
Unexecuted instantiation: d2i_PKCS12
Unexecuted instantiation: d2i_PKCS12_MAC_DATA
Unexecuted instantiation: d2i_PKCS12_BAGS
Unexecuted instantiation: d2i_PKCS12_SAFEBAG
Unexecuted instantiation: d2i_PKCS7_SIGNED
Unexecuted instantiation: d2i_PKCS7_SIGNER_INFO
Unexecuted instantiation: d2i_PKCS7_ISSUER_AND_SERIAL
Unexecuted instantiation: d2i_PKCS7_ENVELOPE
Unexecuted instantiation: d2i_PKCS7_RECIP_INFO
Unexecuted instantiation: d2i_PKCS7_ENC_CONTENT
Unexecuted instantiation: d2i_PKCS7_SIGN_ENVELOPE
Unexecuted instantiation: d2i_PKCS7_ENCRYPT
Unexecuted instantiation: d2i_PKCS7_DIGEST
Unexecuted instantiation: d2i_SM2_Ciphertext
Unexecuted instantiation: d2i_OSSL_ALLOWED_ATTRIBUTES_CHOICE
Unexecuted instantiation: d2i_OSSL_ALLOWED_ATTRIBUTES_ITEM
Unexecuted instantiation: d2i_OSSL_ALLOWED_ATTRIBUTES_SYNTAX
Unexecuted instantiation: d2i_OSSL_TARGET
Unexecuted instantiation: d2i_OSSL_TARGETS
Unexecuted instantiation: d2i_OSSL_TARGETING_INFORMATION
Unexecuted instantiation: d2i_IPAddressRange
Unexecuted instantiation: d2i_IPAddressOrRange
Unexecuted instantiation: d2i_IPAddressChoice
Unexecuted instantiation: d2i_IPAddressFamily
Unexecuted instantiation: d2i_NAMING_AUTHORITY
Unexecuted instantiation: d2i_PROFESSION_INFO
Unexecuted instantiation: d2i_ADMISSIONS
Unexecuted instantiation: d2i_ADMISSION_SYNTAX
Unexecuted instantiation: d2i_AUTHORITY_KEYID
Unexecuted instantiation: d2i_ASRange
Unexecuted instantiation: d2i_ASIdOrRange
Unexecuted instantiation: d2i_ASIdentifierChoice
Unexecuted instantiation: d2i_ASIdentifiers
Unexecuted instantiation: d2i_OSSL_HASH
Unexecuted instantiation: d2i_OSSL_INFO_SYNTAX
Unexecuted instantiation: d2i_OSSL_INFO_SYNTAX_POINTER
Unexecuted instantiation: d2i_OSSL_PRIVILEGE_POLICY_ID
Unexecuted instantiation: d2i_OSSL_ATTRIBUTE_DESCRIPTOR
Unexecuted instantiation: d2i_OSSL_ATAV
Unexecuted instantiation: d2i_OSSL_ATTRIBUTE_TYPE_MAPPING
Unexecuted instantiation: d2i_OSSL_ATTRIBUTE_VALUE_MAPPING
Unexecuted instantiation: d2i_OSSL_ATTRIBUTE_MAPPING
Unexecuted instantiation: d2i_OSSL_ATTRIBUTE_MAPPINGS
Unexecuted instantiation: d2i_OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX
Unexecuted instantiation: d2i_OSSL_BASIC_ATTR_CONSTRAINTS
Unexecuted instantiation: d2i_BASIC_CONSTRAINTS
Unexecuted instantiation: d2i_CERTIFICATEPOLICIES
Unexecuted instantiation: d2i_POLICYINFO
Unexecuted instantiation: d2i_POLICYQUALINFO
Unexecuted instantiation: d2i_USERNOTICE
Unexecuted instantiation: d2i_NOTICEREF
Unexecuted instantiation: d2i_DIST_POINT_NAME
Unexecuted instantiation: d2i_DIST_POINT
Unexecuted instantiation: d2i_CRL_DIST_POINTS
Unexecuted instantiation: d2i_ISSUING_DIST_POINT
Unexecuted instantiation: d2i_OSSL_AA_DIST_POINT
Unexecuted instantiation: d2i_EXTENDED_KEY_USAGE
Unexecuted instantiation: d2i_ISSUER_SIGN_TOOL
d2i_X509_ACERT
Line
Count
Source
814
31.2k
    {                                                                                      \
815
31.2k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
31.2k
    }                                                                                      \
Unexecuted instantiation: d2i_NETSCAPE_CERT_SEQUENCE
Unexecuted instantiation: d2i_PBEPARAM
Unexecuted instantiation: d2i_PBE2PARAM
Unexecuted instantiation: d2i_PBKDF2PARAM
Unexecuted instantiation: d2i_PBMAC1PARAM
Unexecuted instantiation: d2i_SCRYPT_PARAMS
Unexecuted instantiation: d2i_CMS_OtherRecipientInfo
d2i_ESS_ISSUER_SERIAL
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_ESS_CERT_ID
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_ESS_SIGNING_CERT
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_ESS_CERT_ID_V2
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_ESS_SIGNING_CERT_V2
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_TS_MSG_IMPRINT
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_TS_REQ
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_TS_ACCURACY
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_TS_TST_INFO
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_TS_STATUS_INFO
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
d2i_TS_RESP
Line
Count
Source
814
52.5k
    {                                                                                      \
815
52.5k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
52.5k
    }                                                                                      \
Unexecuted instantiation: d2i_CMS_ReceiptRequest
Unexecuted instantiation: d2i_OSSL_CMP_REVANNCONTENT
Unexecuted instantiation: d2i_OSSL_CMP_CHALLENGE
Unexecuted instantiation: d2i_OSSL_CMP_CAKEYUPDANNCONTENT
Unexecuted instantiation: d2i_OSSL_CMP_ERRORMSGCONTENT
Unexecuted instantiation: d2i_OSSL_CMP_ITAV
Unexecuted instantiation: d2i_OSSL_CMP_ROOTCAKEYUPDATE
Unexecuted instantiation: d2i_OSSL_CMP_ATAVS
Unexecuted instantiation: d2i_OSSL_CMP_CERTREQTEMPLATE
Unexecuted instantiation: d2i_OSSL_CMP_CRLSOURCE
Unexecuted instantiation: d2i_OSSL_CMP_CRLSTATUS
Unexecuted instantiation: d2i_OSSL_CMP_CERTORENCCERT
Unexecuted instantiation: d2i_OSSL_CMP_CERTIFIEDKEYPAIR
Unexecuted instantiation: d2i_OSSL_CMP_REVDETAILS
Unexecuted instantiation: d2i_OSSL_CMP_REVREPCONTENT
Unexecuted instantiation: d2i_OSSL_CMP_KEYRECREPCONTENT
Unexecuted instantiation: d2i_OSSL_CMP_PKISI
Unexecuted instantiation: d2i_OSSL_CMP_CERTSTATUS
Unexecuted instantiation: d2i_OSSL_CMP_CERTRESPONSE
Unexecuted instantiation: d2i_OSSL_CMP_POLLREQ
Unexecuted instantiation: d2i_OSSL_CMP_POLLREP
Unexecuted instantiation: d2i_OSSL_CMP_CERTREPMESSAGE
Unexecuted instantiation: d2i_OSSL_CMP_PKIBODY
Unexecuted instantiation: d2i_OSSL_CMP_PKIHEADER
Unexecuted instantiation: d2i_OSSL_CMP_PROTECTEDPART
Unexecuted instantiation: d2i_OSSL_CRMF_PRIVATEKEYINFO
Unexecuted instantiation: d2i_OSSL_CRMF_ENCKEYWITHID_IDENTIFIER
Unexecuted instantiation: d2i_OSSL_CRMF_ENCKEYWITHID
Unexecuted instantiation: d2i_OSSL_CRMF_CERTID
Unexecuted instantiation: d2i_OSSL_CRMF_ENCRYPTEDVALUE
Unexecuted instantiation: d2i_OSSL_CRMF_ENCRYPTEDKEY
Unexecuted instantiation: d2i_OSSL_CRMF_SINGLEPUBINFO
Unexecuted instantiation: d2i_OSSL_CRMF_PKIPUBLICATIONINFO
Unexecuted instantiation: d2i_OSSL_CRMF_PKMACVALUE
Unexecuted instantiation: d2i_OSSL_CRMF_POPOPRIVKEY
d2i_OSSL_CRMF_PBMPARAMETER
Line
Count
Source
814
1.21k
    {                                                                                      \
815
1.21k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname)); \
816
1.21k
    }                                                                                      \
Unexecuted instantiation: d2i_OSSL_CRMF_POPOSIGNINGKEYINPUT_AUTHINFO
Unexecuted instantiation: d2i_OSSL_CRMF_POPOSIGNINGKEYINPUT
Unexecuted instantiation: d2i_OSSL_CRMF_POPOSIGNINGKEY
Unexecuted instantiation: d2i_OSSL_CRMF_POPO
Unexecuted instantiation: d2i_OSSL_CRMF_ATTRIBUTETYPEANDVALUE
Unexecuted instantiation: d2i_OSSL_CRMF_OPTIONALVALIDITY
Unexecuted instantiation: d2i_OSSL_CRMF_CERTTEMPLATE
Unexecuted instantiation: d2i_OSSL_CRMF_CERTREQUEST
Unexecuted instantiation: d2i_OSSL_CRMF_MSG
Unexecuted instantiation: d2i_OSSL_CRMF_MSGS
817
    int i2d_##fname(const stname *a, unsigned char **out)                                  \
818
252k
    {                                                                                      \
819
252k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
252k
    }
Unexecuted instantiation: i2d_GOST_KX_MESSAGE
i2d_PKCS8_PRIV_KEY_INFO
Line
Count
Source
818
336
    {                                                                                      \
819
336
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
336
    }
i2d_ASN1_OCTET_STRING
Line
Count
Source
818
1.64k
    {                                                                                      \
819
1.64k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
1.64k
    }
i2d_ASN1_INTEGER
Line
Count
Source
818
73
    {                                                                                      \
819
73
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
73
    }
Unexecuted instantiation: i2d_ASN1_ENUMERATED
Unexecuted instantiation: i2d_ASN1_BIT_STRING
Unexecuted instantiation: i2d_ASN1_UTF8STRING
Unexecuted instantiation: i2d_ASN1_PRINTABLESTRING
Unexecuted instantiation: i2d_ASN1_T61STRING
Unexecuted instantiation: i2d_ASN1_IA5STRING
Unexecuted instantiation: i2d_ASN1_GENERALSTRING
Unexecuted instantiation: i2d_ASN1_UTCTIME
Unexecuted instantiation: i2d_ASN1_GENERALIZEDTIME
Unexecuted instantiation: i2d_ASN1_VISIBLESTRING
Unexecuted instantiation: i2d_ASN1_UNIVERSALSTRING
Unexecuted instantiation: i2d_ASN1_BMPSTRING
Unexecuted instantiation: i2d_ASN1_NULL
i2d_ASN1_TYPE
Line
Count
Source
818
75.9k
    {                                                                                      \
819
75.9k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
75.9k
    }
Unexecuted instantiation: i2d_ASN1_PRINTABLE
Unexecuted instantiation: i2d_DISPLAYTEXT
Unexecuted instantiation: i2d_DIRECTORYSTRING
i2d_ASN1_SEQUENCE_ANY
Line
Count
Source
818
170
    {                                                                                      \
819
170
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
170
    }
i2d_ASN1_SET_ANY
Line
Count
Source
818
107
    {                                                                                      \
819
107
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
107
    }
Unexecuted instantiation: i2d_X509_ALGOR
Unexecuted instantiation: i2d_X509_ALGORS
i2d_DHparams
Line
Count
Source
818
336
    {                                                                                      \
819
336
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
336
    }
i2d_int_dhx
Line
Count
Source
818
232
    {                                                                                      \
819
232
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
232
    }
i2d_DSAPrivateKey
Line
Count
Source
818
2.58k
    {                                                                                      \
819
2.58k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
2.58k
    }
i2d_DSAparams
Line
Count
Source
818
79
    {                                                                                      \
819
79
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
79
    }
i2d_DSAPublicKey
Line
Count
Source
818
23
    {                                                                                      \
819
23
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
23
    }
i2d_ECPKPARAMETERS
Line
Count
Source
818
890
    {                                                                                      \
819
890
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
890
    }
i2d_EC_PRIVATEKEY
Line
Count
Source
818
5.09k
    {                                                                                      \
819
5.09k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
5.09k
    }
Unexecuted instantiation: i2d_OCSP_SIGNATURE
Unexecuted instantiation: i2d_OCSP_CERTID
Unexecuted instantiation: i2d_OCSP_ONEREQ
Unexecuted instantiation: i2d_OCSP_REQINFO
Unexecuted instantiation: i2d_OCSP_REQUEST
Unexecuted instantiation: i2d_OCSP_RESPBYTES
Unexecuted instantiation: i2d_OCSP_RESPONSE
Unexecuted instantiation: i2d_OCSP_RESPID
Unexecuted instantiation: i2d_OCSP_REVOKEDINFO
Unexecuted instantiation: i2d_OCSP_CERTSTATUS
Unexecuted instantiation: i2d_OCSP_SINGLERESP
Unexecuted instantiation: i2d_OCSP_RESPDATA
Unexecuted instantiation: i2d_OCSP_BASICRESP
Unexecuted instantiation: i2d_OCSP_CRLID
Unexecuted instantiation: i2d_OCSP_SERVICELOC
Unexecuted instantiation: i2d_RSA_PSS_PARAMS
Unexecuted instantiation: i2d_RSA_OAEP_PARAMS
i2d_RSAPrivateKey
Line
Count
Source
818
1.46k
    {                                                                                      \
819
1.46k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
1.46k
    }
i2d_RSAPublicKey
Line
Count
Source
818
263
    {                                                                                      \
819
263
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
263
    }
Unexecuted instantiation: i2d_OTHERNAME
Unexecuted instantiation: i2d_EDIPARTYNAME
Unexecuted instantiation: i2d_GENERAL_NAME
Unexecuted instantiation: i2d_GENERAL_NAMES
Unexecuted instantiation: i2d_ACCESS_DESCRIPTION
Unexecuted instantiation: i2d_AUTHORITY_INFO_ACCESS
Unexecuted instantiation: i2d_PROXY_POLICY
Unexecuted instantiation: i2d_PROXY_CERT_INFO_EXTENSION
Unexecuted instantiation: i2d_PKEY_USAGE_PERIOD
Unexecuted instantiation: i2d_OSSL_ROLE_SPEC_CERT_ID
Unexecuted instantiation: i2d_OSSL_ROLE_SPEC_CERT_ID_SYNTAX
Unexecuted instantiation: i2d_OSSL_ATTRIBUTES_SYNTAX
Unexecuted instantiation: i2d_SXNETID
Unexecuted instantiation: i2d_SXNET
Unexecuted instantiation: i2d_OSSL_DAY_TIME
Unexecuted instantiation: i2d_OSSL_DAY_TIME_BAND
Unexecuted instantiation: i2d_OSSL_TIME_SPEC_DAY
Unexecuted instantiation: i2d_OSSL_TIME_SPEC_WEEKS
Unexecuted instantiation: i2d_OSSL_TIME_SPEC_MONTH
Unexecuted instantiation: i2d_OSSL_NAMED_DAY
Unexecuted instantiation: i2d_OSSL_TIME_SPEC_X_DAY_OF
Unexecuted instantiation: i2d_OSSL_TIME_SPEC_ABSOLUTE
Unexecuted instantiation: i2d_OSSL_TIME_SPEC_TIME
Unexecuted instantiation: i2d_OSSL_TIME_SPEC
Unexecuted instantiation: i2d_OSSL_TIME_PERIOD
Unexecuted instantiation: i2d_OSSL_USER_NOTICE_SYNTAX
Unexecuted instantiation: i2d_X509_ATTRIBUTE
Unexecuted instantiation: i2d_X509_REVOKED
Unexecuted instantiation: i2d_X509_CRL_INFO
i2d_X509_CRL
Line
Count
Source
818
31.2k
    {                                                                                      \
819
31.2k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
31.2k
    }
Unexecuted instantiation: i2d_X509_EXTENSION
Unexecuted instantiation: i2d_X509_EXTENSIONS
Unexecuted instantiation: i2d_X509_NAME_ENTRY
i2d_X509_NAME
Line
Count
Source
818
32.1k
    {                                                                                      \
819
32.1k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
32.1k
    }
Unexecuted instantiation: i2d_X509_PUBKEY
Unexecuted instantiation: i2d_X509_REQ_INFO
Unexecuted instantiation: i2d_X509_REQ
Unexecuted instantiation: i2d_X509_CINF
i2d_X509
Line
Count
Source
818
71.2k
    {                                                                                      \
819
71.2k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
71.2k
    }
Unexecuted instantiation: i2d_X509_CERT_AUX
Unexecuted instantiation: i2d_ASN1_TIME
Unexecuted instantiation: i2d_X509_SIG
Unexecuted instantiation: i2d_NETSCAPE_SPKAC
Unexecuted instantiation: i2d_NETSCAPE_SPKI
Unexecuted instantiation: i2d_X509_VAL
Unexecuted instantiation: i2d_PKCS12
Unexecuted instantiation: i2d_PKCS12_MAC_DATA
Unexecuted instantiation: i2d_PKCS12_BAGS
Unexecuted instantiation: i2d_PKCS12_SAFEBAG
Unexecuted instantiation: i2d_PKCS7_SIGNED
Unexecuted instantiation: i2d_PKCS7_SIGNER_INFO
Unexecuted instantiation: i2d_PKCS7_ISSUER_AND_SERIAL
Unexecuted instantiation: i2d_PKCS7_ENVELOPE
Unexecuted instantiation: i2d_PKCS7_RECIP_INFO
Unexecuted instantiation: i2d_PKCS7_ENC_CONTENT
Unexecuted instantiation: i2d_PKCS7_SIGN_ENVELOPE
Unexecuted instantiation: i2d_PKCS7_ENCRYPT
Unexecuted instantiation: i2d_PKCS7_DIGEST
Unexecuted instantiation: i2d_SM2_Ciphertext
Unexecuted instantiation: i2d_OSSL_ALLOWED_ATTRIBUTES_CHOICE
Unexecuted instantiation: i2d_OSSL_ALLOWED_ATTRIBUTES_ITEM
Unexecuted instantiation: i2d_OSSL_ALLOWED_ATTRIBUTES_SYNTAX
Unexecuted instantiation: i2d_OSSL_TARGET
Unexecuted instantiation: i2d_OSSL_TARGETS
Unexecuted instantiation: i2d_OSSL_TARGETING_INFORMATION
Unexecuted instantiation: i2d_IPAddressRange
Unexecuted instantiation: i2d_IPAddressOrRange
Unexecuted instantiation: i2d_IPAddressChoice
Unexecuted instantiation: i2d_IPAddressFamily
Unexecuted instantiation: i2d_NAMING_AUTHORITY
Unexecuted instantiation: i2d_PROFESSION_INFO
Unexecuted instantiation: i2d_ADMISSIONS
Unexecuted instantiation: i2d_ADMISSION_SYNTAX
Unexecuted instantiation: i2d_AUTHORITY_KEYID
Unexecuted instantiation: i2d_ASRange
Unexecuted instantiation: i2d_ASIdOrRange
Unexecuted instantiation: i2d_ASIdentifierChoice
Unexecuted instantiation: i2d_ASIdentifiers
Unexecuted instantiation: i2d_OSSL_HASH
Unexecuted instantiation: i2d_OSSL_INFO_SYNTAX
Unexecuted instantiation: i2d_OSSL_INFO_SYNTAX_POINTER
Unexecuted instantiation: i2d_OSSL_PRIVILEGE_POLICY_ID
Unexecuted instantiation: i2d_OSSL_ATTRIBUTE_DESCRIPTOR
Unexecuted instantiation: i2d_OSSL_ATAV
Unexecuted instantiation: i2d_OSSL_ATTRIBUTE_TYPE_MAPPING
Unexecuted instantiation: i2d_OSSL_ATTRIBUTE_VALUE_MAPPING
Unexecuted instantiation: i2d_OSSL_ATTRIBUTE_MAPPING
Unexecuted instantiation: i2d_OSSL_ATTRIBUTE_MAPPINGS
Unexecuted instantiation: i2d_OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX
Unexecuted instantiation: i2d_OSSL_BASIC_ATTR_CONSTRAINTS
Unexecuted instantiation: i2d_BASIC_CONSTRAINTS
Unexecuted instantiation: i2d_CERTIFICATEPOLICIES
Unexecuted instantiation: i2d_POLICYINFO
Unexecuted instantiation: i2d_POLICYQUALINFO
Unexecuted instantiation: i2d_USERNOTICE
Unexecuted instantiation: i2d_NOTICEREF
Unexecuted instantiation: i2d_DIST_POINT_NAME
Unexecuted instantiation: i2d_DIST_POINT
Unexecuted instantiation: i2d_CRL_DIST_POINTS
Unexecuted instantiation: i2d_ISSUING_DIST_POINT
Unexecuted instantiation: i2d_OSSL_AA_DIST_POINT
Unexecuted instantiation: i2d_EXTENDED_KEY_USAGE
Unexecuted instantiation: i2d_ISSUER_SIGN_TOOL
i2d_X509_ACERT
Line
Count
Source
818
17.8k
    {                                                                                      \
819
17.8k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
17.8k
    }
Unexecuted instantiation: i2d_NETSCAPE_CERT_SEQUENCE
Unexecuted instantiation: i2d_PBEPARAM
Unexecuted instantiation: i2d_PBE2PARAM
Unexecuted instantiation: i2d_PBKDF2PARAM
Unexecuted instantiation: i2d_PBMAC1PARAM
Unexecuted instantiation: i2d_SCRYPT_PARAMS
Unexecuted instantiation: i2d_CMS_OtherRecipientInfo
i2d_ESS_ISSUER_SERIAL
Line
Count
Source
818
16
    {                                                                                      \
819
16
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
16
    }
i2d_ESS_CERT_ID
Line
Count
Source
818
91
    {                                                                                      \
819
91
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
91
    }
i2d_ESS_SIGNING_CERT
Line
Count
Source
818
111
    {                                                                                      \
819
111
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
111
    }
i2d_ESS_CERT_ID_V2
Line
Count
Source
818
115
    {                                                                                      \
819
115
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
115
    }
i2d_ESS_SIGNING_CERT_V2
Line
Count
Source
818
111
    {                                                                                      \
819
111
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
111
    }
i2d_TS_MSG_IMPRINT
Line
Count
Source
818
24
    {                                                                                      \
819
24
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
24
    }
i2d_TS_REQ
Line
Count
Source
818
5.06k
    {                                                                                      \
819
5.06k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
5.06k
    }
i2d_TS_ACCURACY
Line
Count
Source
818
1.29k
    {                                                                                      \
819
1.29k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
1.29k
    }
i2d_TS_TST_INFO
Line
Count
Source
818
42
    {                                                                                      \
819
42
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
42
    }
i2d_TS_STATUS_INFO
Line
Count
Source
818
2.09k
    {                                                                                      \
819
2.09k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
2.09k
    }
i2d_TS_RESP
Line
Count
Source
818
521
    {                                                                                      \
819
521
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
521
    }
Unexecuted instantiation: i2d_CMS_ReceiptRequest
Unexecuted instantiation: i2d_OSSL_CMP_REVANNCONTENT
Unexecuted instantiation: i2d_OSSL_CMP_CHALLENGE
Unexecuted instantiation: i2d_OSSL_CMP_CAKEYUPDANNCONTENT
Unexecuted instantiation: i2d_OSSL_CMP_ERRORMSGCONTENT
Unexecuted instantiation: i2d_OSSL_CMP_ITAV
Unexecuted instantiation: i2d_OSSL_CMP_ROOTCAKEYUPDATE
Unexecuted instantiation: i2d_OSSL_CMP_ATAVS
Unexecuted instantiation: i2d_OSSL_CMP_CERTREQTEMPLATE
Unexecuted instantiation: i2d_OSSL_CMP_CRLSOURCE
Unexecuted instantiation: i2d_OSSL_CMP_CRLSTATUS
Unexecuted instantiation: i2d_OSSL_CMP_CERTORENCCERT
Unexecuted instantiation: i2d_OSSL_CMP_CERTIFIEDKEYPAIR
Unexecuted instantiation: i2d_OSSL_CMP_REVDETAILS
Unexecuted instantiation: i2d_OSSL_CMP_REVREPCONTENT
Unexecuted instantiation: i2d_OSSL_CMP_KEYRECREPCONTENT
Unexecuted instantiation: i2d_OSSL_CMP_PKISI
Unexecuted instantiation: i2d_OSSL_CMP_CERTSTATUS
Unexecuted instantiation: i2d_OSSL_CMP_CERTRESPONSE
Unexecuted instantiation: i2d_OSSL_CMP_POLLREQ
Unexecuted instantiation: i2d_OSSL_CMP_POLLREP
Unexecuted instantiation: i2d_OSSL_CMP_CERTREPMESSAGE
Unexecuted instantiation: i2d_OSSL_CMP_PKIBODY
Unexecuted instantiation: i2d_OSSL_CMP_PKIHEADER
i2d_OSSL_CMP_PROTECTEDPART
Line
Count
Source
818
1.21k
    {                                                                                      \
819
1.21k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));          \
820
1.21k
    }
Unexecuted instantiation: i2d_OSSL_CRMF_PRIVATEKEYINFO
Unexecuted instantiation: i2d_OSSL_CRMF_ENCKEYWITHID_IDENTIFIER
Unexecuted instantiation: i2d_OSSL_CRMF_ENCKEYWITHID
Unexecuted instantiation: i2d_OSSL_CRMF_CERTID
Unexecuted instantiation: i2d_OSSL_CRMF_ENCRYPTEDVALUE
Unexecuted instantiation: i2d_OSSL_CRMF_ENCRYPTEDKEY
Unexecuted instantiation: i2d_OSSL_CRMF_SINGLEPUBINFO
Unexecuted instantiation: i2d_OSSL_CRMF_PKIPUBLICATIONINFO
Unexecuted instantiation: i2d_OSSL_CRMF_PKMACVALUE
Unexecuted instantiation: i2d_OSSL_CRMF_POPOPRIVKEY
Unexecuted instantiation: i2d_OSSL_CRMF_PBMPARAMETER
Unexecuted instantiation: i2d_OSSL_CRMF_POPOSIGNINGKEYINPUT_AUTHINFO
Unexecuted instantiation: i2d_OSSL_CRMF_POPOSIGNINGKEYINPUT
Unexecuted instantiation: i2d_OSSL_CRMF_POPOSIGNINGKEY
Unexecuted instantiation: i2d_OSSL_CRMF_POPO
Unexecuted instantiation: i2d_OSSL_CRMF_ATTRIBUTETYPEANDVALUE
Unexecuted instantiation: i2d_OSSL_CRMF_OPTIONALVALIDITY
Unexecuted instantiation: i2d_OSSL_CRMF_CERTTEMPLATE
Unexecuted instantiation: i2d_OSSL_CRMF_CERTREQUEST
Unexecuted instantiation: i2d_OSSL_CRMF_MSG
Unexecuted instantiation: i2d_OSSL_CRMF_MSGS
821
822
#define IMPLEMENT_ASN1_NDEF_FUNCTION(stname)                                           \
823
    int i2d_##stname##_NDEF(const stname *a, unsigned char **out)                      \
824
0
    {                                                                                  \
825
0
        return ASN1_item_ndef_i2d((const ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname)); \
826
0
    }
827
828
#define IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(stname)            \
829
    static stname *d2i_##stname(stname **a,                       \
830
        const unsigned char **in, long len)                       \
831
53.4k
    {                                                             \
832
53.4k
        return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, \
833
53.4k
            ASN1_ITEM_rptr(stname));                              \
834
53.4k
    }                                                             \
835
    static int i2d_##stname(const stname *a, unsigned char **out) \
836
1.89k
    {                                                             \
837
1.89k
        return ASN1_item_i2d((const ASN1_VALUE *)a, out,          \
838
1.89k
            ASN1_ITEM_rptr(stname));                              \
839
1.89k
    }
840
841
#define IMPLEMENT_ASN1_DUP_FUNCTION(stname)              \
842
    stname *stname##_dup(const stname *x)                \
843
129k
    {                                                    \
844
129k
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
129k
    }
Unexecuted instantiation: X509_ALGOR_dup
Unexecuted instantiation: OCSP_CERTID_dup
RSA_PSS_PARAMS_dup
Line
Count
Source
843
9
    {                                                    \
844
9
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
9
    }
Unexecuted instantiation: X509_ATTRIBUTE_dup
Unexecuted instantiation: X509_REVOKED_dup
Unexecuted instantiation: X509_CRL_dup
X509_EXTENSION_dup
Line
Count
Source
843
9.97k
    {                                                    \
844
9.97k
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
9.97k
    }
X509_NAME_ENTRY_dup
Line
Count
Source
843
18.1k
    {                                                    \
844
18.1k
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
18.1k
    }
X509_NAME_dup
Line
Count
Source
843
70.7k
    {                                                    \
844
70.7k
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
70.7k
    }
Unexecuted instantiation: X509_REQ_dup
Unexecuted instantiation: X509_dup
Unexecuted instantiation: ASN1_GENERALIZEDTIME_dup
Unexecuted instantiation: ASN1_TIME_dup
Unexecuted instantiation: ASN1_UTCTIME_dup
Unexecuted instantiation: PKCS7_dup
Unexecuted instantiation: DIST_POINT_NAME_dup
Unexecuted instantiation: X509_ACERT_dup
Unexecuted instantiation: CMS_EnvelopedData_dup
Unexecuted instantiation: ESS_ISSUER_SERIAL_dup
Unexecuted instantiation: ESS_CERT_ID_dup
Unexecuted instantiation: ESS_SIGNING_CERT_dup
Unexecuted instantiation: ESS_CERT_ID_V2_dup
Unexecuted instantiation: ESS_SIGNING_CERT_V2_dup
Unexecuted instantiation: TS_MSG_IMPRINT_dup
Unexecuted instantiation: TS_REQ_dup
Unexecuted instantiation: TS_ACCURACY_dup
Unexecuted instantiation: TS_TST_INFO_dup
Unexecuted instantiation: TS_STATUS_INFO_dup
Unexecuted instantiation: TS_RESP_dup
Unexecuted instantiation: OSSL_CMP_ITAV_dup
OSSL_CMP_PKISI_dup
Line
Count
Source
843
30.4k
    {                                                    \
844
30.4k
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
30.4k
    }
Unexecuted instantiation: OSSL_CMP_MSG_dup
OSSL_CRMF_CERTID_dup
Line
Count
Source
843
49
    {                                                    \
844
49
        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \
845
49
    }
Unexecuted instantiation: OSSL_CRMF_PKIPUBLICATIONINFO_dup
Unexecuted instantiation: OSSL_CRMF_ATTRIBUTETYPEANDVALUE_dup
Unexecuted instantiation: OSSL_CRMF_CERTTEMPLATE_dup
Unexecuted instantiation: OSSL_CRMF_CERTREQUEST_dup
Unexecuted instantiation: OSSL_CRMF_MSG_dup
846
847
#define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \
848
    IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname)
849
850
#define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \
851
    int fname##_print_ctx(BIO *out, const stname *x, int indent,   \
852
        const ASN1_PCTX *pctx)                                     \
853
0
    {                                                              \
854
0
        return ASN1_item_print(out, (const ASN1_VALUE *)x, indent, \
855
0
            ASN1_ITEM_rptr(itname), pctx);                         \
856
0
    }
Unexecuted instantiation: PKCS7_print_ctx
Unexecuted instantiation: CMS_ContentInfo_print_ctx
857
858
/* external definitions for primitive types */
859
860
DECLARE_ASN1_ITEM(ASN1_BOOLEAN)
861
DECLARE_ASN1_ITEM(ASN1_TBOOLEAN)
862
DECLARE_ASN1_ITEM(ASN1_FBOOLEAN)
863
DECLARE_ASN1_ITEM(ASN1_SEQUENCE)
864
DECLARE_ASN1_ITEM(CBIGNUM)
865
DECLARE_ASN1_ITEM(BIGNUM)
866
DECLARE_ASN1_ITEM(INT32)
867
DECLARE_ASN1_ITEM(ZINT32)
868
DECLARE_ASN1_ITEM(UINT32)
869
DECLARE_ASN1_ITEM(ZUINT32)
870
DECLARE_ASN1_ITEM(INT64)
871
DECLARE_ASN1_ITEM(ZINT64)
872
DECLARE_ASN1_ITEM(UINT64)
873
DECLARE_ASN1_ITEM(ZUINT64)
874
875
#ifndef OPENSSL_NO_DEPRECATED_3_0
876
/*
877
 * LONG and ZLONG are strongly discouraged for use as stored data, as the
878
 * underlying C type (long) differs in size depending on the architecture.
879
 * They are designed with 32-bit longs in mind.
880
 */
881
DECLARE_ASN1_ITEM(LONG)
882
DECLARE_ASN1_ITEM(ZLONG)
883
#endif
884
885
/* clang-format off */
886
SKM_DEFINE_STACK_OF_INTERNAL(ASN1_VALUE, ASN1_VALUE, ASN1_VALUE)
887
153M
#define sk_ASN1_VALUE_num(sk) OPENSSL_sk_num(ossl_check_const_ASN1_VALUE_sk_type(sk))
888
93.8M
#define sk_ASN1_VALUE_value(sk, idx) ((ASN1_VALUE *)OPENSSL_sk_value(ossl_check_const_ASN1_VALUE_sk_type(sk), (idx)))
889
#define sk_ASN1_VALUE_new(cmp) ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_new(ossl_check_ASN1_VALUE_compfunc_type(cmp)))
890
129M
#define sk_ASN1_VALUE_new_null() ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_new_null())
891
#define sk_ASN1_VALUE_new_reserve(cmp, n) ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_new_reserve(ossl_check_ASN1_VALUE_compfunc_type(cmp), (n)))
892
#define sk_ASN1_VALUE_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_ASN1_VALUE_sk_type(sk), (n))
893
57.7M
#define sk_ASN1_VALUE_free(sk) OPENSSL_sk_free(ossl_check_ASN1_VALUE_sk_type(sk))
894
#define sk_ASN1_VALUE_zero(sk) OPENSSL_sk_zero(ossl_check_ASN1_VALUE_sk_type(sk))
895
#define sk_ASN1_VALUE_delete(sk, i) ((ASN1_VALUE *)OPENSSL_sk_delete(ossl_check_ASN1_VALUE_sk_type(sk), (i)))
896
#define sk_ASN1_VALUE_delete_ptr(sk, ptr) ((ASN1_VALUE *)OPENSSL_sk_delete_ptr(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr)))
897
177M
#define sk_ASN1_VALUE_push(sk, ptr) OPENSSL_sk_push(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr))
898
#define sk_ASN1_VALUE_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr))
899
0
#define sk_ASN1_VALUE_pop(sk) ((ASN1_VALUE *)OPENSSL_sk_pop(ossl_check_ASN1_VALUE_sk_type(sk)))
900
#define sk_ASN1_VALUE_shift(sk) ((ASN1_VALUE *)OPENSSL_sk_shift(ossl_check_ASN1_VALUE_sk_type(sk)))
901
#define sk_ASN1_VALUE_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_freefunc_type(freefunc))
902
#define sk_ASN1_VALUE_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr), (idx))
903
#define sk_ASN1_VALUE_set(sk, idx, ptr) ((ASN1_VALUE *)OPENSSL_sk_set(ossl_check_ASN1_VALUE_sk_type(sk), (idx), ossl_check_ASN1_VALUE_type(ptr)))
904
#define sk_ASN1_VALUE_find(sk, ptr) OPENSSL_sk_find(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr))
905
#define sk_ASN1_VALUE_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr))
906
#define sk_ASN1_VALUE_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_type(ptr), pnum)
907
#define sk_ASN1_VALUE_sort(sk) OPENSSL_sk_sort(ossl_check_ASN1_VALUE_sk_type(sk))
908
#define sk_ASN1_VALUE_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_ASN1_VALUE_sk_type(sk))
909
#define sk_ASN1_VALUE_dup(sk) ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_dup(ossl_check_const_ASN1_VALUE_sk_type(sk)))
910
#define sk_ASN1_VALUE_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(ASN1_VALUE) *)OPENSSL_sk_deep_copy(ossl_check_const_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_copyfunc_type(copyfunc), ossl_check_ASN1_VALUE_freefunc_type(freefunc)))
911
#define sk_ASN1_VALUE_set_cmp_func(sk, cmp) ((sk_ASN1_VALUE_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_ASN1_VALUE_sk_type(sk), ossl_check_ASN1_VALUE_compfunc_type(cmp)))
912
913
/* clang-format on */
914
915
/* Functions used internally by the ASN1 code */
916
917
int ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);
918
void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
919
920
int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
921
    const ASN1_ITEM *it, int tag, int aclass, char opt,
922
    ASN1_TLC *ctx);
923
924
int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
925
    const ASN1_ITEM *it, int tag, int aclass);
926
927
/* Legacy compatibility */
928
#define IMPLEMENT_ASN1_FUNCTIONS_const(name) IMPLEMENT_ASN1_FUNCTIONS(name)
929
#define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \
930
    IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname)
931
932
#ifdef __cplusplus
933
}
934
#endif
935
#endif