I have some problems of using "ssleay32.dll" and "libeay32.dll" in BCB5 on Windows
platform.
I did my job as follows:
1. Used implib.exe of CB to obtain .lib files--
implib.exe ssleay32.lib ssleay32.dll
implib.exe libeay32.lib libeay32.dll
2. Added the two .lib files in my CB application project.
3. Included .h files of openssl in my project--
when I compiled my project without modifying the .h files,there were some link
errors
like "Unresolved external......". So I added a line in each .h files:
#define IMPORT __declspec(dllimport) __stdcall
then added "IMPORT" in the definition of EACH function(that's so tiring!! :(( ):
EVP_PKEY * IMPORT EVP_PKEY_new(void);
I built the project again,this time it was OK.
I did not know wether the way of modifying .h files was a FORMAL & PROPER way!! :((
Although it worked,it did not work well. There were unovercomed link errors when I
wanted to call another format API like that:
#define PEM_write_RSAPublicKey(fp,x) PEM_ASN1_write((int
(*)())i2d_RSAPublicKey.....
int IMPORT PEM_ASN1_write_bio(int (*i2d)(),const char *name..........
PEM_write_RSAPublicKey was not a directly defined function.
Have somebody met the same problem like me?
Who can tell me a correct way of link and call APIs of Openssl in C++ Builer?
Thanx!!!
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]