X509_dup.pod 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. =pod
  2. =head1 NAME
  3. DECLARE_ASN1_FUNCTIONS,
  4. IMPLEMENT_ASN1_FUNCTIONS,
  5. ASN1_ITEM,
  6. ACCESS_DESCRIPTION_free,
  7. ACCESS_DESCRIPTION_new,
  8. ADMISSIONS_free,
  9. ADMISSIONS_new,
  10. ADMISSION_SYNTAX_free,
  11. ADMISSION_SYNTAX_new,
  12. ASIdOrRange_free,
  13. ASIdOrRange_new,
  14. ASIdentifierChoice_free,
  15. ASIdentifierChoice_new,
  16. ASIdentifiers_free,
  17. ASIdentifiers_new,
  18. ASRange_free,
  19. ASRange_new,
  20. AUTHORITY_INFO_ACCESS_free,
  21. AUTHORITY_INFO_ACCESS_new,
  22. AUTHORITY_KEYID_free,
  23. AUTHORITY_KEYID_new,
  24. BASIC_CONSTRAINTS_free,
  25. BASIC_CONSTRAINTS_new,
  26. CERTIFICATEPOLICIES_free,
  27. CERTIFICATEPOLICIES_new,
  28. CMS_ContentInfo_free,
  29. CMS_ContentInfo_new,
  30. CMS_ContentInfo_print_ctx,
  31. CMS_ReceiptRequest_free,
  32. CMS_ReceiptRequest_new,
  33. CRL_DIST_POINTS_free,
  34. CRL_DIST_POINTS_new,
  35. DIRECTORYSTRING_free,
  36. DIRECTORYSTRING_new,
  37. DISPLAYTEXT_free,
  38. DISPLAYTEXT_new,
  39. DIST_POINT_NAME_free,
  40. DIST_POINT_NAME_new,
  41. DIST_POINT_free,
  42. DIST_POINT_new,
  43. DSAparams_dup,
  44. ECPARAMETERS_free,
  45. ECPARAMETERS_new,
  46. ECPKPARAMETERS_free,
  47. ECPKPARAMETERS_new,
  48. EDIPARTYNAME_free,
  49. EDIPARTYNAME_new,
  50. ESS_CERT_ID_dup,
  51. ESS_CERT_ID_free,
  52. ESS_CERT_ID_new,
  53. ESS_ISSUER_SERIAL_dup,
  54. ESS_ISSUER_SERIAL_free,
  55. ESS_ISSUER_SERIAL_new,
  56. ESS_SIGNING_CERT_dup,
  57. ESS_SIGNING_CERT_free,
  58. ESS_SIGNING_CERT_new,
  59. EXTENDED_KEY_USAGE_free,
  60. EXTENDED_KEY_USAGE_new,
  61. GENERAL_NAMES_free,
  62. GENERAL_NAMES_new,
  63. GENERAL_NAME_dup,
  64. GENERAL_NAME_free,
  65. GENERAL_NAME_new,
  66. GENERAL_SUBTREE_free,
  67. GENERAL_SUBTREE_new,
  68. IPAddressChoice_free,
  69. IPAddressChoice_new,
  70. IPAddressFamily_free,
  71. IPAddressFamily_new,
  72. IPAddressOrRange_free,
  73. IPAddressOrRange_new,
  74. IPAddressRange_free,
  75. IPAddressRange_new,
  76. ISSUING_DIST_POINT_free,
  77. ISSUING_DIST_POINT_new,
  78. NAME_CONSTRAINTS_free,
  79. NAME_CONSTRAINTS_new,
  80. NAMING_AUTHORITY_free,
  81. NAMING_AUTHORITY_new,
  82. NETSCAPE_CERT_SEQUENCE_free,
  83. NETSCAPE_CERT_SEQUENCE_new,
  84. NETSCAPE_SPKAC_free,
  85. NETSCAPE_SPKAC_new,
  86. NETSCAPE_SPKI_free,
  87. NETSCAPE_SPKI_new,
  88. NOTICEREF_free,
  89. NOTICEREF_new,
  90. OCSP_BASICRESP_free,
  91. OCSP_BASICRESP_new,
  92. OCSP_CERTID_dup,
  93. OCSP_CERTID_new,
  94. OCSP_CERTSTATUS_free,
  95. OCSP_CERTSTATUS_new,
  96. OCSP_CRLID_free,
  97. OCSP_CRLID_new,
  98. OCSP_ONEREQ_free,
  99. OCSP_ONEREQ_new,
  100. OCSP_REQINFO_free,
  101. OCSP_REQINFO_new,
  102. OCSP_RESPBYTES_free,
  103. OCSP_RESPBYTES_new,
  104. OCSP_RESPDATA_free,
  105. OCSP_RESPDATA_new,
  106. OCSP_RESPID_free,
  107. OCSP_RESPID_new,
  108. OCSP_RESPONSE_new,
  109. OCSP_REVOKEDINFO_free,
  110. OCSP_REVOKEDINFO_new,
  111. OCSP_SERVICELOC_free,
  112. OCSP_SERVICELOC_new,
  113. OCSP_SIGNATURE_free,
  114. OCSP_SIGNATURE_new,
  115. OCSP_SINGLERESP_free,
  116. OCSP_SINGLERESP_new,
  117. OSSL_CMP_ITAV_free,
  118. OSSL_CMP_MSG_dup,
  119. OSSL_CMP_MSG_it,
  120. OSSL_CMP_MSG_free,
  121. OSSL_CMP_PKIHEADER_free,
  122. OSSL_CMP_PKIHEADER_it,
  123. OSSL_CMP_PKIHEADER_new,
  124. OSSL_CMP_PKISI_free,
  125. OSSL_CMP_PKISTATUS_it,
  126. OSSL_CRMF_CERTID_free,
  127. OSSL_CRMF_CERTID_it,
  128. OSSL_CRMF_CERTID_new,
  129. OSSL_CRMF_CERTTEMPLATE_free,
  130. OSSL_CRMF_CERTTEMPLATE_it,
  131. OSSL_CRMF_CERTTEMPLATE_new,
  132. OSSL_CRMF_ENCRYPTEDVALUE_free,
  133. OSSL_CRMF_ENCRYPTEDVALUE_it,
  134. OSSL_CRMF_ENCRYPTEDVALUE_new,
  135. OSSL_CRMF_MSGS_free,
  136. OSSL_CRMF_MSGS_it,
  137. OSSL_CRMF_MSGS_new,
  138. OSSL_CRMF_MSG_free,
  139. OSSL_CRMF_MSG_it,
  140. OSSL_CRMF_MSG_new,
  141. OSSL_CRMF_PBMPARAMETER_free,
  142. OSSL_CRMF_PBMPARAMETER_it,
  143. OSSL_CRMF_PBMPARAMETER_new,
  144. OSSL_CRMF_PKIPUBLICATIONINFO_free,
  145. OSSL_CRMF_PKIPUBLICATIONINFO_it,
  146. OSSL_CRMF_PKIPUBLICATIONINFO_new,
  147. OSSL_CRMF_SINGLEPUBINFO_free,
  148. OSSL_CRMF_SINGLEPUBINFO_it,
  149. OSSL_CRMF_SINGLEPUBINFO_new,
  150. OTHERNAME_free,
  151. OTHERNAME_new,
  152. PBE2PARAM_free,
  153. PBE2PARAM_new,
  154. PBEPARAM_free,
  155. PBEPARAM_new,
  156. PBKDF2PARAM_free,
  157. PBKDF2PARAM_new,
  158. PKCS12_BAGS_free,
  159. PKCS12_BAGS_new,
  160. PKCS12_MAC_DATA_free,
  161. PKCS12_MAC_DATA_new,
  162. PKCS12_SAFEBAG_free,
  163. PKCS12_SAFEBAG_new,
  164. PKCS12_free,
  165. PKCS12_new,
  166. PKCS7_DIGEST_free,
  167. PKCS7_DIGEST_new,
  168. PKCS7_ENCRYPT_free,
  169. PKCS7_ENCRYPT_new,
  170. PKCS7_ENC_CONTENT_free,
  171. PKCS7_ENC_CONTENT_new,
  172. PKCS7_ENVELOPE_free,
  173. PKCS7_ENVELOPE_new,
  174. PKCS7_ISSUER_AND_SERIAL_free,
  175. PKCS7_ISSUER_AND_SERIAL_new,
  176. PKCS7_RECIP_INFO_free,
  177. PKCS7_RECIP_INFO_new,
  178. PKCS7_SIGNED_free,
  179. PKCS7_SIGNED_new,
  180. PKCS7_SIGNER_INFO_free,
  181. PKCS7_SIGNER_INFO_new,
  182. PKCS7_SIGN_ENVELOPE_free,
  183. PKCS7_SIGN_ENVELOPE_new,
  184. PKCS7_dup,
  185. PKCS7_free,
  186. PKCS7_new,
  187. PKCS7_print_ctx,
  188. PKCS8_PRIV_KEY_INFO_free,
  189. PKCS8_PRIV_KEY_INFO_new,
  190. PKEY_USAGE_PERIOD_free,
  191. PKEY_USAGE_PERIOD_new,
  192. POLICYINFO_free,
  193. POLICYINFO_new,
  194. POLICYQUALINFO_free,
  195. POLICYQUALINFO_new,
  196. POLICY_CONSTRAINTS_free,
  197. POLICY_CONSTRAINTS_new,
  198. POLICY_MAPPING_free,
  199. POLICY_MAPPING_new,
  200. PROFESSION_INFO_free,
  201. PROFESSION_INFO_new,
  202. PROFESSION_INFOS_free,
  203. PROFESSION_INFOS_new,
  204. PROXY_CERT_INFO_EXTENSION_free,
  205. PROXY_CERT_INFO_EXTENSION_new,
  206. PROXY_POLICY_free,
  207. PROXY_POLICY_new,
  208. RSAPrivateKey_dup,
  209. RSAPublicKey_dup,
  210. RSA_OAEP_PARAMS_free,
  211. RSA_OAEP_PARAMS_new,
  212. RSA_PSS_PARAMS_free,
  213. RSA_PSS_PARAMS_new,
  214. SCRYPT_PARAMS_free,
  215. SCRYPT_PARAMS_new,
  216. SXNETID_free,
  217. SXNETID_new,
  218. SXNET_free,
  219. SXNET_new,
  220. TLS_FEATURE_free,
  221. TLS_FEATURE_new,
  222. TS_ACCURACY_dup,
  223. TS_ACCURACY_free,
  224. TS_ACCURACY_new,
  225. TS_MSG_IMPRINT_dup,
  226. TS_MSG_IMPRINT_free,
  227. TS_MSG_IMPRINT_new,
  228. TS_REQ_dup,
  229. TS_REQ_free,
  230. TS_REQ_new,
  231. TS_RESP_dup,
  232. TS_RESP_free,
  233. TS_RESP_new,
  234. TS_STATUS_INFO_dup,
  235. TS_STATUS_INFO_free,
  236. TS_STATUS_INFO_new,
  237. TS_TST_INFO_dup,
  238. TS_TST_INFO_free,
  239. TS_TST_INFO_new,
  240. USERNOTICE_free,
  241. USERNOTICE_new,
  242. X509_ALGOR_free,
  243. X509_ALGOR_new,
  244. X509_ATTRIBUTE_dup,
  245. X509_ATTRIBUTE_free,
  246. X509_ATTRIBUTE_new,
  247. X509_CERT_AUX_free,
  248. X509_CERT_AUX_new,
  249. X509_CINF_free,
  250. X509_CINF_new,
  251. X509_CRL_INFO_free,
  252. X509_CRL_INFO_new,
  253. X509_CRL_dup,
  254. X509_CRL_free,
  255. X509_CRL_new,
  256. X509_EXTENSION_dup,
  257. X509_EXTENSION_free,
  258. X509_EXTENSION_new,
  259. X509_NAME_ENTRY_dup,
  260. X509_NAME_ENTRY_free,
  261. X509_NAME_ENTRY_new,
  262. X509_NAME_dup,
  263. X509_NAME_free,
  264. X509_NAME_new,
  265. X509_REQ_INFO_free,
  266. X509_REQ_INFO_new,
  267. X509_REQ_dup,
  268. X509_REQ_free,
  269. X509_REQ_new,
  270. X509_REVOKED_dup,
  271. X509_REVOKED_free,
  272. X509_REVOKED_new,
  273. X509_SIG_free,
  274. X509_SIG_new,
  275. X509_VAL_free,
  276. X509_VAL_new,
  277. X509_dup,
  278. - ASN1 object utilities
  279. =head1 SYNOPSIS
  280. =for comment generic
  281. #include <openssl/asn1t.h>
  282. DECLARE_ASN1_FUNCTIONS(type)
  283. IMPLEMENT_ASN1_FUNCTIONS(stname)
  284. typedef struct ASN1_ITEM_st ASN1_ITEM;
  285. extern const ASN1_ITEM TYPE_it;
  286. TYPE *TYPE_new(void);
  287. TYPE *TYPE_dup(const TYPE *a);
  288. void TYPE_free(TYPE *a);
  289. int TYPE_print_ctx(BIO *out, TYPE *a, int indent, const ASN1_PCTX *pctx);
  290. =head1 DESCRIPTION
  291. In the description below, I<TYPE> is used
  292. as a placeholder for any of the OpenSSL datatypes, such as I<X509>.
  293. The OpenSSL ASN1 parsing library templates are like a data-driven bytecode
  294. interpreter.
  295. Every ASN1 object as a global variable, TYPE_it, that describes the item
  296. such as its fields. (On systems which cannot export variables from shared
  297. libraries, the global is instead a function which returns a pointer to a
  298. static variable.
  299. The macro DECLARE_ASN1_FUNCTIONS() is typically used in header files
  300. to generate the function declarations.
  301. The macro IMPLEMENT_ASN1_FUNCTIONS() is used once in a source file
  302. to generate the function bodies.
  303. TYPE_new() allocates an empty object of the indicated type.
  304. The object returned must be released by calling TYPE_free().
  305. TYPE_dup() copies an existing object, leaving it untouched.
  306. TYPE_free() releases the object and all pointers and sub-objects
  307. within it.
  308. TYPE_print_ctx() prints the object B<a> on the specified BIO B<out>.
  309. Each line will be prefixed with B<indent> spaces.
  310. The B<pctx> specifies the printing context and is for internal
  311. use; use NULL to get the default behavior. If a print function is
  312. user-defined, then pass in any B<pctx> down to any nested calls.
  313. =head1 RETURN VALUES
  314. TYPE_new() and TYPE_dup() return a pointer to the object or NULL on failure.
  315. TYPE_print_ctx() returns 1 on success or zero on failure.
  316. =head1 COPYRIGHT
  317. Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
  318. Licensed under the Apache License 2.0 (the "License"). You may not use
  319. this file except in compliance with the License. You can obtain a copy
  320. in the file LICENSE in the source distribution or at
  321. L<https://www.openssl.org/source/license.html>.
  322. =cut