From 806075f78c6fe317b7b91d3cba4d9c70a495761e Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Tue, 19 Dec 2023 16:27:25 +0100 Subject: [PATCH] fixup! X509_dup.pod: add caveat that extra data is not copied and hints, e.g., to use X509_up_ref() instead --- doc/man3/X509_dup.pod | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/man3/X509_dup.pod b/doc/man3/X509_dup.pod index 107a0b237cafc..6f3819f8cd45e 100644 --- a/doc/man3/X509_dup.pod +++ b/doc/man3/X509_dup.pod @@ -364,10 +364,11 @@ may contain extra data besides the ASN.1 structure. For instance, an B object usually is augmented by cached information on X.509v3 extensions, etc. Such extra data is not copied. -If it needs to be retained, maybe better use B_up_ref>(). +If it needs to be retained, it may be better to use B_up_ref>(). For the case of B objects, an alternative to using L -is to still call, e.g., I, yet followed by -I, which re-builds the cached data. +is to still call B_dup>(), e.g., I, +followed by I, +which re-builds the cached data. B_free>() releases the object and all pointers and sub-objects within it.