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. 

The main one is how to handle the DEF files: specifically if you have
some function #ifdef'ed out either because it isn't supported on that
platform or is not wanted (e.g. NO_RSA) the DEF files and the DEF file
generator (mkdef.pl) still includes them in the DEF files, you then get
unresolved symbols when the DLL is built.

The only solution I know of is to manually delete the unresolved
functions from the auto generated DEF file.

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.

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?

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Senior crypto engineer, Celo Communications: http://www.celocom.com/
OpenSSL core developer. Email: [EMAIL PROTECTED]
PGP key: via homepage.


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

Reply via email to