On Wed, Aug 23, 2000 at 02:21:54PM +0300, Komarnitski Igori wrote:
> Hi.
> I have a question.
> Using OpenSSL it posible to write a client/server app who will work by
> my protocol. If Yes i'll be glad to know how it may write.Becouse the
> code of "s_server" && "s_client" is too hard to understend for me to
> rewrite him.
Yes it is possible and I'm tempted to add, obviously.
Examples do far better than attempting to provide a tutorial.
Look at the code in the edssl or stunnel or sproxy packages
for how they handle ssl in building tunnels for arbitrary protocols.
Alternatively, you could look at the Fetchmail sources
<http://www.tuxedo.org/~esr/fetchmail>. I wrote the SSL patches
for fetchmail to support pop3s and imaps. Those are largely confined
to the socket.c source file (other files had changes to support port
numbers and configuration options). You can see how all that's done
from those sources.
Mutt also has SSL support for imaps and would be another
example of how to impliment SSL tunneling on a protocol.
If you have some weird layer-violating or reverse connection
protocol (like ftp amongst others) you may have some challenges, but if
it's a straight forward, single connection, tcp protocol, you should
have no problem.
> And a 2 q:
> My platform is Win32 and to compile OpenSSL i had use the "gcc"
> compiler.
I don't do Windows. You're on your own there. :-)
> How i can to compile My OWN code who based on SSLeay library.
> What I need to do. How to include that library in my project. There are
> 2 *.dll's
> libeay32.dll and libssl32.dll and also in out directory 4 library
> with .a extention.
Someone who works on Windows will have to help you there.
> Please if it posible write me.
> [EMAIL PROTECTED]
Mike
--
Michael H. Warfield | (770) 985-6132 | [EMAIL PROTECTED]
(The Mad Wizard) | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]