X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2Fcrypto.pod;h=7a527992bb5eb29eb9aa5aa39c2bae3ca242d87e;hp=b6efcf8e1b4275db41767aa6e7651d6fc774a4d2;hb=72e04bd13f22a14c29f2cfe8f432875641b3e772;hpb=7cf6e2a35b36b690c93b85cb68d103b4bc946e30 diff --git a/doc/crypto/crypto.pod b/doc/crypto/crypto.pod index b6efcf8e1b..7a527992bb 100644 --- a/doc/crypto/crypto.pod +++ b/doc/crypto/crypto.pod @@ -40,12 +40,14 @@ L, L =item AUTHENTICATION CODES, HASH FUNCTIONS -L, L, L, L, -L, L +L, L, L, +L, L, L, +L =item AUXILIARY FUNCTIONS -L, L +L, L, L, +L =item INPUT/OUTPUT, DATA ENCODING @@ -55,11 +57,27 @@ L, L =item INTERNAL FUNCTIONS L, L, L, -L, L, L, +L, L, 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