On 18 Nov, Mark John Buenconsejo wrote:
> Where can I find sample codes using OpenSSL.
1. Have a look at the OpenSSL source: apps/s_client.c and
apps/s_server.c may give you some hints.
2. I had the same problem and the result is echohttpd. It is a
primitive old stype forking HTTP/HTTPS server hat simply echos the http
protocoll data back to the the browser. It is not intended for use, it
is only a programming example. It shows varios aspects about
implementing a HTTPS server from creating a connection, ..., forcing a
renegotation, ... doing client cert based authorisation, ... up to CRL
checking. (This part ist stolen from Mr. Engelschalls mod_ssl.)
echohttpd was my test environement for learning how the SSL suff works
before I integrated SSL into thttpd. (http://www.acme.com/software/thttpd)
I can give you the code if you are interrested.
3. If the OpenSSL maintainers think this would be a usable example I
will clean up the code and add more comments so that it can be included
in the OpenSSL distribution in the demos/ssl directory. The code in
this directory was my starting point. But I found it not that usefull,
because it does not handle any non trivial tasks.
--
tschuess,
Jochen
Homepage: http://www.unixag-kl.fh-kl.de/~jkunz
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]