5 DECLARE_ASN1_FUNCTIONS,
6 IMPLEMENT_ASN1_FUNCTIONS,
8 ACCESS_DESCRIPTION_free,
9 ACCESS_DESCRIPTION_new,
12 ADMISSION_SYNTAX_free,
16 ASIdentifierChoice_free,
17 ASIdentifierChoice_new,
22 AUTHORITY_INFO_ACCESS_free,
23 AUTHORITY_INFO_ACCESS_new,
26 BASIC_CONSTRAINTS_free,
27 BASIC_CONSTRAINTS_new,
28 CERTIFICATEPOLICIES_free,
29 CERTIFICATEPOLICIES_new,
32 CMS_ContentInfo_print_ctx,
33 CMS_ReceiptRequest_free,
34 CMS_ReceiptRequest_new,
58 ESS_ISSUER_SERIAL_dup,
59 ESS_ISSUER_SERIAL_free,
60 ESS_ISSUER_SERIAL_new,
62 ESS_SIGNING_CERT_free,
64 ESS_SIGNING_CERT_V2_dup,
65 ESS_SIGNING_CERT_V2_free,
66 ESS_SIGNING_CERT_V2_new,
67 EXTENDED_KEY_USAGE_free,
68 EXTENDED_KEY_USAGE_new,
80 IPAddressOrRange_free,
84 ISSUING_DIST_POINT_free,
85 ISSUING_DIST_POINT_new,
86 NAME_CONSTRAINTS_free,
88 NAMING_AUTHORITY_free,
90 NETSCAPE_CERT_SEQUENCE_free,
91 NETSCAPE_CERT_SEQUENCE_new,
102 OCSP_CERTSTATUS_free,
117 OCSP_REVOKEDINFO_free,
118 OCSP_REVOKEDINFO_new,
119 OCSP_SERVICELOC_free,
123 OCSP_SINGLERESP_free,
129 OSSL_CMP_PKIHEADER_free,
130 OSSL_CMP_PKIHEADER_it,
131 OSSL_CMP_PKIHEADER_new,
133 OSSL_CMP_PKISTATUS_it,
134 OSSL_CRMF_CERTID_free,
136 OSSL_CRMF_CERTID_new,
137 OSSL_CRMF_CERTTEMPLATE_free,
138 OSSL_CRMF_CERTTEMPLATE_it,
139 OSSL_CRMF_CERTTEMPLATE_new,
140 OSSL_CRMF_ENCRYPTEDVALUE_free,
141 OSSL_CRMF_ENCRYPTEDVALUE_it,
142 OSSL_CRMF_ENCRYPTEDVALUE_new,
149 OSSL_CRMF_PBMPARAMETER_free,
150 OSSL_CRMF_PBMPARAMETER_it,
151 OSSL_CRMF_PBMPARAMETER_new,
152 OSSL_CRMF_PKIPUBLICATIONINFO_free,
153 OSSL_CRMF_PKIPUBLICATIONINFO_it,
154 OSSL_CRMF_PKIPUBLICATIONINFO_new,
155 OSSL_CRMF_SINGLEPUBINFO_free,
156 OSSL_CRMF_SINGLEPUBINFO_it,
157 OSSL_CRMF_SINGLEPUBINFO_new,
168 PKCS12_MAC_DATA_free,
178 PKCS7_ENC_CONTENT_free,
179 PKCS7_ENC_CONTENT_new,
182 PKCS7_ISSUER_AND_SERIAL_free,
183 PKCS7_ISSUER_AND_SERIAL_new,
184 PKCS7_RECIP_INFO_free,
185 PKCS7_RECIP_INFO_new,
188 PKCS7_SIGNER_INFO_free,
189 PKCS7_SIGNER_INFO_new,
190 PKCS7_SIGN_ENVELOPE_free,
191 PKCS7_SIGN_ENVELOPE_new,
196 PKCS8_PRIV_KEY_INFO_free,
197 PKCS8_PRIV_KEY_INFO_new,
198 PKEY_USAGE_PERIOD_free,
199 PKEY_USAGE_PERIOD_new,
204 POLICY_CONSTRAINTS_free,
205 POLICY_CONSTRAINTS_new,
208 PROFESSION_INFOS_free,
209 PROFESSION_INFOS_new,
210 PROFESSION_INFO_free,
212 PROXY_CERT_INFO_EXTENSION_free,
213 PROXY_CERT_INFO_EXTENSION_new,
218 RSA_OAEP_PARAMS_free,
271 X509_NAME_ENTRY_free,
291 - ASN1 object utilities
297 #include <openssl/asn1t.h>
299 DECLARE_ASN1_FUNCTIONS(type)
300 IMPLEMENT_ASN1_FUNCTIONS(stname)
302 typedef struct ASN1_ITEM_st ASN1_ITEM;
304 extern const ASN1_ITEM TYPE_it;
305 TYPE *TYPE_new(void);
306 TYPE *TYPE_dup(const TYPE *a);
307 void TYPE_free(TYPE *a);
308 int TYPE_print_ctx(BIO *out, TYPE *a, int indent, const ASN1_PCTX *pctx);
312 In the description below, I<TYPE> is used
313 as a placeholder for any of the OpenSSL datatypes, such as I<X509>.
315 The OpenSSL ASN1 parsing library templates are like a data-driven bytecode
317 Every ASN1 object as a global variable, TYPE_it, that describes the item
318 such as its fields. (On systems which cannot export variables from shared
319 libraries, the global is instead a function which returns a pointer to a
322 The macro DECLARE_ASN1_FUNCTIONS() is typically used in header files
323 to generate the function declarations.
325 The macro IMPLEMENT_ASN1_FUNCTIONS() is used once in a source file
326 to generate the function bodies.
329 TYPE_new() allocates an empty object of the indicated type.
330 The object returned must be released by calling TYPE_free().
332 TYPE_dup() copies an existing object, leaving it untouched.
334 TYPE_free() releases the object and all pointers and sub-objects
337 TYPE_print_ctx() prints the object B<a> on the specified BIO B<out>.
338 Each line will be prefixed with B<indent> spaces.
339 The B<pctx> specifies the printing context and is for internal
340 use; use NULL to get the default behavior. If a print function is
341 user-defined, then pass in any B<pctx> down to any nested calls.
345 TYPE_new() and TYPE_dup() return a pointer to the object or NULL on failure.
347 TYPE_print_ctx() returns 1 on success or zero on failure.
351 Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
353 Licensed under the Apache License 2.0 (the "License"). You may not use
354 this file except in compliance with the License. You can obtain a copy
355 in the file LICENSE in the source distribution or at
356 L<https://www.openssl.org/source/license.html>.