Milan Tomic wrote:
Uhh, hard times ahead if you want to code SSL and ask me such questions... ;)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.
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
smime.p7s
Description: S/MIME Cryptographic Signature