Skip to content

Commit

Permalink
fixup! fixup! fixup! X509_dup.pod: add caveat that extra data is not …
Browse files Browse the repository at this point in the history
…copied and hints, e.g., to use X509_up_ref() instead
  • Loading branch information
DDvO committed Jan 17, 2024
1 parent f642ee4 commit 3689e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/man3/X509_dup.pod
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ binary data using B<d2i_I<TYPE>>().

B<I<TYPE>_dup>() copies an existing object, leaving it untouched.
Note, however, that the internal representation of the object
may contain besides the ASN.1 structure further data, which is not copied.
may contain (besides the ASN.1 structure) further data, which is not copied.
For instance, an B<X509> object usually is augmented by cached information
on X.509v3 extensions, etc., and losing it can lead to wrong validation results.
To avoid such situations, better use B<I<TYPE>_up_ref>() if available.
Expand Down

0 comments on commit 3689e80

Please sign in to comment.