Dr Stephen Henson wrote:
>
> Greetings,
> from time to time I get the Win32 version of OpenSSL in a form
> where it compiles. A few problems have recently become apparent.
>
>
> An alternative which should (hopefully) solve this problem once and for
> all is to junk the DEF files and generator completely. In my PKCS#12
> stuff I use the EXTERN macro for external functions. Normally this gets
> #define'd to nothing but under Win32 its becomes: __declspec( dllexport
> ) which causes the symbols to be exported if a DLL is built.
Works very easily together with the '_P' macros that I was proposing
earlier.
then we can put in whatever we want into those macros: Win32 __declspec,
Unix prototypes for k&r and ansi.
As to generating the def file if needed:
how about having the perl script operate on the cpp out put after
defining
#define _P(param) (WIN32-DEF)
and the incl/excl of algorithms should work and the perl script has an
easier
task of identifying the relevant lines
>
> As you can imagine changing every header file to support this is quite a
> big step. Before I try it can anyone think of a good reason why it may
> not work?
I am in favor of removing those double prototypes.
mfg lutz
--
*******************************************************************
Lutz Behnke Tel.: 040 / 766 29 1423
TC TrustCenter for Security Fax.: 040 / 766 29 577
in Data Networks GmbH email: [EMAIL PROTECTED]
Am Werder 1
21073 Hamburg, Germany
S/MIME Cryptographic Signature