X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.224.184.11 with SMTP id ci11mr10974634qab.1.1356356356318; Mon, 24 Dec 2012 05:39:16 -0800 (PST) Newsgroups: comp.os.msdos.djgpp Date: Mon, 24 Dec 2012 05:39:16 -0800 (PST) Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.79.98.127; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr NNTP-Posting-Host: 46.79.98.127 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1b2d3d9b-2d91-40b0-b816-0de2061ea1b2@googlegroups.com> Subject: Openssl problems From: dosusb AT googlemail DOT com Injection-Date: Mon, 24 Dec 2012 13:39:16 +0000 Content-Type: text/plain; charset=ISO-8859-1 Bytes: 2180 Lines: 22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I try to use the openssl library Juan has ported recently. First: thank you very much for that! To test this I try to get the demo programs sconnect.c (in demo/bio) and cli.cpp (in demo/ssl) to work. sconnect.c has a "#if WATT32" in there so it must have worked once with watt32. I compile these with: gcc -o sconnect.exe sconnect.c -lssl -lcrypto -lwatt -lz and gpp -o cli.exe cli.cpp -lssl -lcrypto -lwatt -lz Made a PEM file with openssl.exe but do not know where openssl will look for that. From what I read openssl needs a client certificate, a client key and a CA cert. My PEM file just contains a private key and a certificate. I devload "noise586.sys /i /m" . I also load a packet driver successfully which does work with other programs. All this in real mode. noise586.sys works since in a different test the message "Insufficient random entropy" did no longer appear after loading noise586.sys. cli.cpp will not successfully make a tcp/ip connection (to 127.0.0.1 as in the code). sconnect.c will jump to the "err:" label when trying a BIO_write(). Is there a working example? (wget/htget in ssl mode?) Or can someone spot what I am doing wrong? Georg