Recent openssl is required for OPENSSL_free [Re: Please test snapshots for 3.0 release] (fwd)

Tim Rice tim at multitalents.net
Wed Oct 31 07:28:55 EST 2001


On Tue, 30 Oct 2001, Lutz Jaenicke wrote:

> On Tue, Oct 30, 2001 at 06:49:55PM +0100, Lutz Jaenicke wrote:
> > ...
> >  Changes between 0.9.5a and 0.9.6  [24 Sep 2000]
> > ...
> >   *) Rename memory handling macros to avoid conflicts with other
> >      software:
> >           Malloc         =>  OPENSSL_malloc
> >           Malloc_locked  =>  OPENSSL_malloc_locked
> >           Realloc        =>  OPENSSL_realloc
> >           Free           =>  OPENSSL_free
> > ...
>
> Hmm, while thinking about it: the correct macro substution should therefore
> be "Free()" instead of "free()", as we must make sure that the correct
> memory handling function (CRYPTO_free()) is being called:
>
> /* OPENSSL_free() is only available in OpenSSL 0.9.6 onwards */
> #if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f)
> # define OPENSSL_free(x) Free(x)
> #endif
>

This builds fine with 0.9.5a also.
But I have not tested it. (I use 0.9.6b on my production versions)

>

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list