cURL / Mailing Lists / curl-library / Single Mail

curl-library

SSL not supported in libcurl win32

From: <chilaf_at_libero.it>
Date: Tue, 12 Mar 2002 17:26:27 +0100

Hi,
I have a big trouble:
I want to use OpenSSL support in my app client.
SO : win 95
IDE VC 6.0

I compile libcurl following the instructions in the Install.html
doc,section WIN32/WithSSL / Microsoft / Botland Style :
- Setting USE_SSLEAY symbol (also USE_OPENSSL)
- I indicate the include e lib path for open SSL
- I downloaeded the openssl source 0.9.6c from openssl.org and the
openssl-bin for VC (libeay32.lib,rsaglue.lib,ssleay32.lib) from :

http://www.mmlab.cse.yzu.edu.tw/ftp/pub/security/openssl-0.9.6-
bin/openssl_vc/

Compilation of libcurl ok!! but when I use Libcurl.lib in my app
curl_easy_perform returns 1 : "LibCurl doesn't support SSL"

------------- my code -------------
curl_easy_setopt(Client_pCurl, CURLOPT_URL, "https://...");
curl_easy_setopt(Client_pCurl, CURLOPT_HEADER, 1);
curl_easy_setopt(Client_pCurl, CURLOPT_VERBOSE, 1);
curl_easy_setopt(Client_pCurl, CURLOPT_ERRORBUFFER, ErrorMsg);
curl_easy_setopt(Client_pCurl, CURLOPT_WRITEFUNCTION, WriteData);
if((pWrite = fopen("Prova.txt", "w")) != NULL)
        ;
curl_easy_setopt(Client_pCurl, CURLOPT_FILE, (void *)fpWrite);
curl_error = curl_easy_perform(Client_pCurl);
if(curl_error != CURLE_OK )

.... curl_error = 1....
---------------
                        

- Project Properties are :

CPP_PROJ=/nologo /MTd /W3 /Gm /GX /ZI /Od /I "c:\curl-7.9.4
\include" /I "c:\curl-7.9.4
\include\openssl" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_U
SRDLL" /D "CURLLIB_EXPORTS" /D "USE_SSLEAY" /D "USE_OPENSSL" /FR"$(INTDI
R)\\" /Fp"$(INTDIR)\curlibssl.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)
\\" /FD /GZ /c

LINK32_FLAGS=kernel32.lib ws2_32.lib ssleay32.lib libeay32.lib
rsaglue.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)
\libcurl.pdb" /map:"$(INTDIR)
\libcurl.map" /debug /machine:I386 /def:"..\libcurl.def" /out:"$(OUTDIR)
\libcurl.dll" /implib:"$(OUTDIR)
\libcurl.lib" /pdbtype:sept /libpath:"c:\openssl"

Someone Can Help me
Thanks Francesca
Received on 2002-03-12