Thank you Ted. It compiles now. :> How can I set client certificate for SSL connection? I keep cert in sslclient.pfx file.
Best regards, Milan > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Bernhard Froehlich > Sent: Friday, July 15, 2005 1:29 PM > To: openssl-users@openssl.org > Subject: Re: HTTPS > > > Milan Tomic wrote: > > >Can "cli.cpp" run on Windows platform? I need Windows OpenSSL HTTPS > >client. > > > >While compiling I got an error saying that it can't find > "sys/socket.h" > >include file. > > > >Thank you. > > > > > Uhh, hard times ahead if you want to code SSL and ask me such > questions... ;) > > I guess you'll need the following headers: > > #include "windows.h" > #include "winsock.h" > #include "stdio.h" > #include "stdlib.h" > > plus the openssl-headers : > > #include <openssl/crypto.h> > #include <openssl/x509.h> > #include <openssl/pem.h> > #include <openssl/ssl.h> > #include <openssl/err.h> > > to compile cli.cpp. Maybe perror still gives you trouble, > just replace > it with printf. If it does not find any of the headers try to > kick out > the include-statement and if you get compile errors check your > compiler's documentation for the file to include for the > missing functions. > > Hope it helps > Ted > ;) > > -- > PGP Public Key Information > Download complete Key from http://www.convey.de/ted/tedkey_convey.asc > Key fingerprint = 31B0 E029 BCF9 6605 DAC1 B2E1 0CC8 70F4 7AFB 8D26 > > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]