It needs to be a macro so malloc etc will be the ones from the program,
and not the ones linked into the DLL. This makes a difference if the DLL
and the program are linked against different runtime libs. Precisely the
reason why CRYPTO_set_mem_functions should be used in those cases.

/Per


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Levitte - VMS
> Whacker
> Sent: Wednesday, January 05, 2000 10:50 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: CRYPTO_malloc_init undefined in latest snapshot
>
>
> jaltman> If the LIBEAY32.DLL is linked to the MSVCRT.DLL library
> and the app
> jaltman> is linked to MSVCRTD.DLL it is necessary for
> CRYTPO_malloc_init() to
> jaltman> be executed by the app so that the proper memory
> jaltman> allocation/deallocations routines are used.
>
> CRYPTO_malloc_init() did the following:
>
>       CRYPTO_set_mem_functions(malloc,realloc,free)
>
> This in turn initialises five function pointers in mem.c.  However,
> those variables are already initialised with exactly those values.
> Logically, this makes the CRYPTO_malloc_init() macro redudant and
> needless.
>
> Is this possibly some kind of glitch in Win32 when it links things in
> runtime, or is it some other mystery?
>
> --
> Richard Levitte   \ Spannv�gen 38, II \ [EMAIL PROTECTED]
> Redakteur@Stacken  \ S-161 43  BROMMA  \ T: +46-8-26 52 47
>                     \      SWEDEN       \ or +46-708-26 53 44
> Procurator Odiosus Ex Infernis             -- [EMAIL PROTECTED]
>
> Unsolicited commercial email is subject to an archival fee of $400.
> See <http://www.stacken.kth.se/~levitte/mail/> for more info.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to