What allocates and what doesn't

2009-04-01 Thread Rene Hollan
Are there any hard and fast rules regarding which openssl functions allocate memory which they expect the caller to then manage and which ones just return a pointer to an existing structure? I'm thinking about things like X509_get_issuer_name, X509_get_subject_name (which, I think, return

Re: What allocates and what doesn't

2009-04-01 Thread Dr. Stephen Henson
On Wed, Apr 01, 2009, Rene Hollan wrote: Are there any hard and fast rules regarding which openssl functions allocate memory which they expect the caller to then manage and which ones just return a pointer to an existing structure? I'm thinking about things like X509_get_issuer_name,