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

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Wed Oct 31 05:05:15 EST 2001


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

-- 
Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153



More information about the openssh-unix-dev mailing list