X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2Fcrypto.pod;h=7a527992bb5eb29eb9aa5aa39c2bae3ca242d87e;hp=c12eec1409c56c7aac25da6fd9321faf139295fc;hb=9034c56c6c71ac68f25f195300e3d7b129280824;hpb=5256b021f3f41396763cb4a93653460a396f393e diff --git a/doc/crypto/crypto.pod b/doc/crypto/crypto.pod index c12eec1409..7a527992bb 100644 --- a/doc/crypto/crypto.pod +++ b/doc/crypto/crypto.pod @@ -62,6 +62,22 @@ L =back +=head1 NOTES + +Some of the newer functions follow a naming convention using the numbers +B<0> and B<1>. For example the functions: + + int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev); + int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj); + +The B<0> version uses the supplied structure pointer directly +in the parent and it will be freed up when the parent is freed. +In the above example B would be freed but B would not. + +The B<1> function uses a copy of the supplied structure pointer +(or in some cases increases its link count) in the parent and +so both (B and B above) should be freed up. + =head1 SEE ALSO L, L