X509_dup.3ossl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "X509_DUP 3ossl"
  58. .TH X509_DUP 3ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. DECLARE_ASN1_FUNCTIONS,
  65. IMPLEMENT_ASN1_FUNCTIONS,
  66. ASN1_ITEM,
  67. ACCESS_DESCRIPTION_free,
  68. ACCESS_DESCRIPTION_new,
  69. ADMISSIONS_free,
  70. ADMISSIONS_new,
  71. ADMISSION_SYNTAX_free,
  72. ADMISSION_SYNTAX_new,
  73. ASIdOrRange_free,
  74. ASIdOrRange_new,
  75. ASIdentifierChoice_free,
  76. ASIdentifierChoice_new,
  77. ASIdentifiers_free,
  78. ASIdentifiers_new,
  79. ASRange_free,
  80. ASRange_new,
  81. AUTHORITY_INFO_ACCESS_free,
  82. AUTHORITY_INFO_ACCESS_new,
  83. AUTHORITY_KEYID_free,
  84. AUTHORITY_KEYID_new,
  85. BASIC_CONSTRAINTS_free,
  86. BASIC_CONSTRAINTS_new,
  87. CERTIFICATEPOLICIES_free,
  88. CERTIFICATEPOLICIES_new,
  89. CMS_ContentInfo_free,
  90. CMS_ContentInfo_new,
  91. CMS_ContentInfo_new_ex,
  92. CMS_ContentInfo_print_ctx,
  93. CMS_EnvelopedData_it,
  94. CMS_ReceiptRequest_free,
  95. CMS_ReceiptRequest_new,
  96. CMS_SignedData_free,
  97. CMS_SignedData_new,
  98. CRL_DIST_POINTS_free,
  99. CRL_DIST_POINTS_new,
  100. DIRECTORYSTRING_free,
  101. DIRECTORYSTRING_new,
  102. DISPLAYTEXT_free,
  103. DISPLAYTEXT_new,
  104. DIST_POINT_NAME_free,
  105. DIST_POINT_NAME_new,
  106. DIST_POINT_NAME_dup,
  107. DIST_POINT_free,
  108. DIST_POINT_new,
  109. DSAparams_dup,
  110. ECPARAMETERS_free,
  111. ECPARAMETERS_new,
  112. ECPKPARAMETERS_free,
  113. ECPKPARAMETERS_new,
  114. EDIPARTYNAME_free,
  115. EDIPARTYNAME_new,
  116. ESS_CERT_ID_dup,
  117. ESS_CERT_ID_free,
  118. ESS_CERT_ID_new,
  119. ESS_CERT_ID_V2_dup,
  120. ESS_CERT_ID_V2_free,
  121. ESS_CERT_ID_V2_new,
  122. ESS_ISSUER_SERIAL_dup,
  123. ESS_ISSUER_SERIAL_free,
  124. ESS_ISSUER_SERIAL_new,
  125. ESS_SIGNING_CERT_dup,
  126. ESS_SIGNING_CERT_free,
  127. ESS_SIGNING_CERT_it,
  128. ESS_SIGNING_CERT_new,
  129. ESS_SIGNING_CERT_V2_dup,
  130. ESS_SIGNING_CERT_V2_free,
  131. ESS_SIGNING_CERT_V2_it,
  132. ESS_SIGNING_CERT_V2_new,
  133. EXTENDED_KEY_USAGE_free,
  134. EXTENDED_KEY_USAGE_new,
  135. GENERAL_NAMES_free,
  136. GENERAL_NAMES_new,
  137. GENERAL_NAME_dup,
  138. GENERAL_NAME_free,
  139. GENERAL_NAME_new,
  140. GENERAL_SUBTREE_free,
  141. GENERAL_SUBTREE_new,
  142. OSSL_IETF_ATTR_SYNTAX_free,
  143. OSSL_IETF_ATTR_SYNTAX_it,
  144. OSSL_IETF_ATTR_SYNTAX_new,
  145. IPAddressChoice_free,
  146. IPAddressChoice_new,
  147. IPAddressFamily_free,
  148. IPAddressFamily_new,
  149. IPAddressOrRange_free,
  150. IPAddressOrRange_new,
  151. IPAddressRange_free,
  152. IPAddressRange_new,
  153. ISSUER_SIGN_TOOL_free,
  154. ISSUER_SIGN_TOOL_it,
  155. ISSUER_SIGN_TOOL_new,
  156. ISSUING_DIST_POINT_free,
  157. ISSUING_DIST_POINT_it,
  158. ISSUING_DIST_POINT_new,
  159. NAME_CONSTRAINTS_free,
  160. NAME_CONSTRAINTS_new,
  161. NAMING_AUTHORITY_free,
  162. NAMING_AUTHORITY_new,
  163. NETSCAPE_CERT_SEQUENCE_free,
  164. NETSCAPE_CERT_SEQUENCE_new,
  165. NETSCAPE_SPKAC_free,
  166. NETSCAPE_SPKAC_new,
  167. NETSCAPE_SPKI_free,
  168. NETSCAPE_SPKI_new,
  169. NOTICEREF_free,
  170. NOTICEREF_new,
  171. OCSP_BASICRESP_free,
  172. OCSP_BASICRESP_new,
  173. OCSP_CERTID_dup,
  174. OCSP_CERTID_new,
  175. OCSP_CERTSTATUS_free,
  176. OCSP_CERTSTATUS_new,
  177. OCSP_CRLID_free,
  178. OCSP_CRLID_new,
  179. OCSP_ONEREQ_free,
  180. OCSP_ONEREQ_new,
  181. OCSP_REQINFO_free,
  182. OCSP_REQINFO_new,
  183. OCSP_RESPBYTES_free,
  184. OCSP_RESPBYTES_new,
  185. OCSP_RESPDATA_free,
  186. OCSP_RESPDATA_new,
  187. OCSP_RESPID_free,
  188. OCSP_RESPID_new,
  189. OCSP_RESPONSE_new,
  190. OCSP_REVOKEDINFO_free,
  191. OCSP_REVOKEDINFO_new,
  192. OCSP_SERVICELOC_free,
  193. OCSP_SERVICELOC_new,
  194. OCSP_SIGNATURE_free,
  195. OCSP_SIGNATURE_new,
  196. OCSP_SINGLERESP_free,
  197. OCSP_SINGLERESP_new,
  198. OSSL_ATTRIBUTES_SYNTAX_free,
  199. OSSL_ATTRIBUTES_SYNTAX_it,
  200. OSSL_ATTRIBUTES_SYNTAX_new,
  201. OSSL_BASIC_ATTR_CONSTRAINTS_free,
  202. OSSL_BASIC_ATTR_CONSTRAINTS_it,
  203. OSSL_BASIC_ATTR_CONSTRAINTS_new,
  204. OSSL_CMP_ATAVS_new,
  205. OSSL_CMP_ATAVS_free,
  206. OSSL_CMP_ATAVS_it,
  207. OSSL_CMP_CRLSTATUS_free,
  208. OSSL_CMP_ITAV_dup,
  209. OSSL_CMP_ITAV_free,
  210. OSSL_CMP_MSG_dup,
  211. OSSL_CMP_MSG_it,
  212. OSSL_CMP_MSG_free,
  213. OSSL_CMP_PKIHEADER_free,
  214. OSSL_CMP_PKIHEADER_it,
  215. OSSL_CMP_PKIHEADER_new,
  216. OSSL_CMP_PKISI_dup,
  217. OSSL_CMP_PKISI_free,
  218. OSSL_CMP_PKISI_it,
  219. OSSL_CMP_PKISI_new,
  220. OSSL_CMP_PKISTATUS_it,
  221. OSSL_CRMF_CERTID_dup,
  222. OSSL_CRMF_CERTID_free,
  223. OSSL_CRMF_CERTID_it,
  224. OSSL_CRMF_CERTID_new,
  225. OSSL_CRMF_CERTTEMPLATE_free,
  226. OSSL_CRMF_CERTTEMPLATE_it,
  227. OSSL_CRMF_CERTTEMPLATE_new,
  228. OSSL_CRMF_CERTTEMPLATE_dup,
  229. OSSL_CRMF_ATTRIBUTETYPEANDVALUE_dup,
  230. OSSL_CRMF_ATTRIBUTETYPEANDVALUE_free,
  231. OSSL_CRMF_ENCRYPTEDVALUE_free,
  232. OSSL_CRMF_ENCRYPTEDVALUE_it,
  233. OSSL_CRMF_ENCRYPTEDVALUE_new,
  234. OSSL_CRMF_MSGS_free,
  235. OSSL_CRMF_MSGS_it,
  236. OSSL_CRMF_MSGS_new,
  237. OSSL_CRMF_MSG_dup,
  238. OSSL_CRMF_MSG_free,
  239. OSSL_CRMF_MSG_it,
  240. OSSL_CRMF_MSG_new,
  241. OSSL_CRMF_PBMPARAMETER_free,
  242. OSSL_CRMF_PBMPARAMETER_it,
  243. OSSL_CRMF_PBMPARAMETER_new,
  244. OSSL_CRMF_PKIPUBLICATIONINFO_free,
  245. OSSL_CRMF_PKIPUBLICATIONINFO_it,
  246. OSSL_CRMF_PKIPUBLICATIONINFO_new,
  247. OSSL_CRMF_SINGLEPUBINFO_free,
  248. OSSL_CRMF_SINGLEPUBINFO_it,
  249. OSSL_CRMF_SINGLEPUBINFO_new,
  250. OSSL_TARGET_CERT_free,
  251. OSSL_TARGET_CERT_it,
  252. OSSL_TARGET_CERT_new,
  253. OSSL_TARGET_free,
  254. OSSL_TARGET_it,
  255. OSSL_TARGET_new,
  256. OSSL_TARGETING_INFORMATION_free,
  257. OSSL_TARGETING_INFORMATION_it,
  258. OSSL_TARGETING_INFORMATION_new,
  259. OSSL_TARGETS_free,
  260. OSSL_TARGETS_it,
  261. OSSL_TARGETS_new,
  262. OSSL_IETF_ATTR_SYNTAX_VALUE_free,
  263. OSSL_IETF_ATTR_SYNTAX_VALUE_it,
  264. OSSL_IETF_ATTR_SYNTAX_VALUE_new,
  265. OSSL_ISSUER_SERIAL_free,
  266. OSSL_ISSUER_SERIAL_new,
  267. OSSL_OBJECT_DIGEST_INFO_free,
  268. OSSL_OBJECT_DIGEST_INFO_new,
  269. OSSL_USER_NOTICE_SYNTAX_free,
  270. OSSL_USER_NOTICE_SYNTAX_new,
  271. OSSL_USER_NOTICE_SYNTAX_it,
  272. OTHERNAME_free,
  273. OTHERNAME_new,
  274. PBE2PARAM_free,
  275. PBE2PARAM_new,
  276. PBEPARAM_free,
  277. PBEPARAM_new,
  278. PBKDF2PARAM_free,
  279. PBKDF2PARAM_new,
  280. PBMAC1PARAM_free,
  281. PBMAC1PARAM_it,
  282. PBMAC1PARAM_new,
  283. PKCS12_BAGS_free,
  284. PKCS12_BAGS_new,
  285. PKCS12_MAC_DATA_free,
  286. PKCS12_MAC_DATA_new,
  287. PKCS12_SAFEBAG_free,
  288. PKCS12_SAFEBAG_new,
  289. PKCS12_free,
  290. PKCS12_new,
  291. PKCS7_DIGEST_free,
  292. PKCS7_DIGEST_new,
  293. PKCS7_ENCRYPT_free,
  294. PKCS7_ENCRYPT_new,
  295. PKCS7_ENC_CONTENT_free,
  296. PKCS7_ENC_CONTENT_new,
  297. PKCS7_ENVELOPE_free,
  298. PKCS7_ENVELOPE_new,
  299. PKCS7_ISSUER_AND_SERIAL_free,
  300. PKCS7_ISSUER_AND_SERIAL_new,
  301. PKCS7_RECIP_INFO_free,
  302. PKCS7_RECIP_INFO_new,
  303. PKCS7_SIGNED_free,
  304. PKCS7_SIGNED_new,
  305. PKCS7_SIGNER_INFO_free,
  306. PKCS7_SIGNER_INFO_new,
  307. PKCS7_SIGN_ENVELOPE_free,
  308. PKCS7_SIGN_ENVELOPE_new,
  309. PKCS7_dup,
  310. PKCS7_free,
  311. PKCS7_new_ex,
  312. PKCS7_new,
  313. PKCS7_print_ctx,
  314. PKCS8_PRIV_KEY_INFO_free,
  315. PKCS8_PRIV_KEY_INFO_new,
  316. PKEY_USAGE_PERIOD_free,
  317. PKEY_USAGE_PERIOD_new,
  318. POLICYINFO_free,
  319. POLICYINFO_new,
  320. POLICYQUALINFO_free,
  321. POLICYQUALINFO_new,
  322. POLICY_CONSTRAINTS_free,
  323. POLICY_CONSTRAINTS_new,
  324. POLICY_MAPPING_free,
  325. POLICY_MAPPING_new,
  326. PROFESSION_INFOS_free,
  327. PROFESSION_INFOS_new,
  328. PROFESSION_INFO_free,
  329. PROFESSION_INFO_new,
  330. PROXY_CERT_INFO_EXTENSION_free,
  331. PROXY_CERT_INFO_EXTENSION_new,
  332. PROXY_POLICY_free,
  333. PROXY_POLICY_new,
  334. RSAPrivateKey_dup,
  335. RSAPublicKey_dup,
  336. RSA_OAEP_PARAMS_free,
  337. RSA_OAEP_PARAMS_new,
  338. RSA_PSS_PARAMS_free,
  339. RSA_PSS_PARAMS_new,
  340. RSA_PSS_PARAMS_dup,
  341. SCRYPT_PARAMS_free,
  342. SCRYPT_PARAMS_new,
  343. SXNETID_free,
  344. SXNETID_new,
  345. SXNET_free,
  346. SXNET_new,
  347. TLS_FEATURE_free,
  348. TLS_FEATURE_new,
  349. TS_ACCURACY_dup,
  350. TS_ACCURACY_free,
  351. TS_ACCURACY_new,
  352. TS_MSG_IMPRINT_dup,
  353. TS_MSG_IMPRINT_free,
  354. TS_MSG_IMPRINT_new,
  355. TS_REQ_dup,
  356. TS_REQ_free,
  357. TS_REQ_new,
  358. TS_RESP_dup,
  359. TS_RESP_free,
  360. TS_RESP_new,
  361. TS_STATUS_INFO_dup,
  362. TS_STATUS_INFO_free,
  363. TS_STATUS_INFO_new,
  364. TS_TST_INFO_dup,
  365. TS_TST_INFO_free,
  366. TS_TST_INFO_new,
  367. USERNOTICE_free,
  368. USERNOTICE_new,
  369. X509_ACERT_dup,
  370. X509_ACERT_free,
  371. X509_ACERT_it,
  372. X509_ACERT_new,
  373. X509_ACERT_INFO_free,
  374. X509_ACERT_INFO_it,
  375. X509_ACERT_INFO_new,
  376. X509_ACERT_ISSUER_V2FORM_free,
  377. X509_ACERT_ISSUER_V2FORM_new,
  378. X509_ALGOR_free,
  379. X509_ALGOR_it,
  380. X509_ALGOR_new,
  381. X509_ATTRIBUTE_dup,
  382. X509_ATTRIBUTE_free,
  383. X509_ATTRIBUTE_new,
  384. X509_CERT_AUX_free,
  385. X509_CERT_AUX_new,
  386. X509_CINF_free,
  387. X509_CINF_new,
  388. X509_CRL_INFO_free,
  389. X509_CRL_INFO_new,
  390. X509_CRL_dup,
  391. X509_CRL_free,
  392. X509_CRL_new_ex,
  393. X509_CRL_new,
  394. X509_EXTENSION_dup,
  395. X509_EXTENSION_free,
  396. X509_EXTENSION_new,
  397. X509_NAME_ENTRY_dup,
  398. X509_NAME_ENTRY_free,
  399. X509_NAME_ENTRY_new,
  400. X509_NAME_dup,
  401. X509_NAME_free,
  402. X509_NAME_new,
  403. X509_REQ_INFO_free,
  404. X509_REQ_INFO_new,
  405. X509_REQ_dup,
  406. X509_REQ_free,
  407. X509_REQ_new,
  408. X509_REQ_new_ex,
  409. X509_REVOKED_dup,
  410. X509_REVOKED_free,
  411. X509_REVOKED_new,
  412. X509_SIG_free,
  413. X509_SIG_new,
  414. X509_VAL_free,
  415. X509_VAL_new,
  416. X509_dup,
  417. \&\- ASN1 object utilities
  418. .SH SYNOPSIS
  419. .IX Header "SYNOPSIS"
  420. .Vb 1
  421. \& #include <openssl/asn1t.h>
  422. \&
  423. \& DECLARE_ASN1_FUNCTIONS(type)
  424. \& IMPLEMENT_ASN1_FUNCTIONS(stname)
  425. \&
  426. \& typedef struct ASN1_ITEM_st ASN1_ITEM;
  427. \&
  428. \& extern const ASN1_ITEM TYPE_it;
  429. \& TYPE *TYPE_new(void);
  430. \& TYPE *TYPE_dup(const TYPE *a);
  431. \& void TYPE_free(TYPE *a);
  432. \& int TYPE_print_ctx(BIO *out, TYPE *a, int indent, const ASN1_PCTX *pctx);
  433. .Ve
  434. .PP
  435. The following functions have been deprecated since OpenSSL 3.0, and can be
  436. hidden entirely by defining \fBOPENSSL_API_COMPAT\fR with a suitable version value,
  437. see \fBopenssl_user_macros\fR\|(7):
  438. .PP
  439. .Vb 3
  440. \& DSA *DSAparams_dup(const DSA *dsa);
  441. \& RSA *RSAPrivateKey_dup(const RSA *rsa);
  442. \& RSA *RSAPublicKey_dup(const RSA *rsa);
  443. .Ve
  444. .SH DESCRIPTION
  445. .IX Header "DESCRIPTION"
  446. In the description below, \fR\f(BITYPE\fR\fB\fR is used
  447. as a placeholder for any of the OpenSSL datatypes, such as \fBX509\fR.
  448. .PP
  449. The OpenSSL ASN1 parsing library templates are like a data-driven bytecode
  450. interpreter.
  451. Every ASN1 object as a global variable, TYPE_it, that describes the item
  452. such as its fields. (On systems which cannot export variables from shared
  453. libraries, the global is instead a function which returns a pointer to a
  454. static variable.
  455. .PP
  456. The macro \fBDECLARE_ASN1_FUNCTIONS()\fR is typically used in header files
  457. to generate the function declarations.
  458. .PP
  459. The macro \fBIMPLEMENT_ASN1_FUNCTIONS()\fR is used once in a source file
  460. to generate the function bodies.
  461. .PP
  462. \&\fR\f(BITYPE\fR\fB_new\fR() allocates an empty object of the indicated type.
  463. The object returned must be released by calling \fB\fR\f(BITYPE\fR\fB_free\fR().
  464. .PP
  465. \&\fR\f(BITYPE\fR\fB_new_ex\fR() is similar to \fB\fR\f(BITYPE\fR\fB_new\fR() but also passes the
  466. library context \fIlibctx\fR and the property query \fIpropq\fR to use when retrieving
  467. algorithms from providers. This created object can then be used when loading
  468. binary data using \fBd2i_\fR\f(BITYPE\fR\fB\fR().
  469. .PP
  470. \&\fR\f(BITYPE\fR\fB_dup\fR() copies an existing object, leaving it untouched.
  471. Note, however, that the internal representation of the object
  472. may contain (besides the ASN.1 structure) further data, which is not copied.
  473. For instance, an \fBX509\fR object usually is augmented by cached information
  474. on X.509v3 extensions, etc., and losing it can lead to wrong validation results.
  475. To avoid such situations, better use \fB\fR\f(BITYPE\fR\fB_up_ref\fR() if available.
  476. For the case of \fBX509\fR objects, an alternative to using \fBX509_up_ref\fR\|(3)
  477. may be to still call \fB\fR\f(BITYPE\fR\fB_dup\fR(), e.g., \fIcopied_cert = X509_dup(cert)\fR,
  478. followed by \fIX509_check_purpose(copied_cert, \-1, 0)\fR,
  479. which re-builds the cached data.
  480. .PP
  481. \&\fR\f(BITYPE\fR\fB_free\fR() releases the object and all pointers and sub-objects
  482. within it. If the argument is NULL, nothing is done.
  483. .PP
  484. \&\fR\f(BITYPE\fR\fB_print_ctx\fR() prints the object \fIa\fR on the specified BIO \fIout\fR.
  485. Each line will be prefixed with \fIindent\fR spaces.
  486. The \fIpctx\fR specifies the printing context and is for internal
  487. use; use NULL to get the default behavior. If a print function is
  488. user-defined, then pass in any \fIpctx\fR down to any nested calls.
  489. .SH "RETURN VALUES"
  490. .IX Header "RETURN VALUES"
  491. \&\fR\f(BITYPE\fR\fB_new\fR(), \fB\fR\f(BITYPE\fR\fB_new_ex\fR() and \fB\fR\f(BITYPE\fR\fB_dup\fR() return a pointer to
  492. the object or NULL on failure.
  493. .PP
  494. \&\fR\f(BITYPE\fR\fB_print_ctx\fR() returns 1 on success or zero on failure.
  495. .SH "SEE ALSO"
  496. .IX Header "SEE ALSO"
  497. \&\fBX509_up_ref\fR\|(3)
  498. .SH HISTORY
  499. .IX Header "HISTORY"
  500. The functions \fBX509_REQ_new_ex()\fR, \fBX509_CRL_new_ex()\fR, \fBPKCS7_new_ex()\fR and
  501. \&\fBCMS_ContentInfo_new_ex()\fR were added in OpenSSL 3.0.
  502. .PP
  503. The functions \fBDSAparams_dup()\fR, \fBRSAPrivateKey_dup()\fR and \fBRSAPublicKey_dup()\fR were
  504. deprecated in 3.0.
  505. .SH COPYRIGHT
  506. .IX Header "COPYRIGHT"
  507. Copyright 2016\-2024 The OpenSSL Project Authors. All Rights Reserved.
  508. .PP
  509. Licensed under the Apache License 2.0 (the "License"). You may not use
  510. this file except in compliance with the License. You can obtain a copy
  511. in the file LICENSE in the source distribution or at
  512. <https://www.openssl.org/source/license.html>.