I spent all of last week being sick and was not able to get any decent work done unfortunately, I will need to work hard this week to compensate. But I've at least managed to get SSL up and running with build-in certificates. SSL lacks configuration but enables serving of both encrypted and non encrypted content with the same monkey instance. The code is added in a new branch on github called [ssl_next](https://github.com/ksonny/monkey/tree/ssl_next).
To enable SSL support you need to add some extra options to configure.
The following depends on `polarssl` being installed and of recent
version.
CFLAGS="-DUSE_POLARSSL" LDFLAGS="-lpolarssl" ./configure --debug
The code is very much borrowed from the polarssl plugin but should be
quite a bit faster since it's able to pass it's context around using
`conn->data`.
I'm planning on adding context recycling and session resuming when
configuration has been added and the protocol is better tested.
The code is split into two parts, the generic SSL part is in `mk_ssl.c`
while the protocol specific stuff is located in `mk_http.c`.
The first file contains almost as much code as `polarssl.c` while the
later mostly contains wrapper code for using `mk_ssl.c`.
Parsing, processing and filtering requests is already done without
touching the network functions all this code is reused.
[Blog](https://lotrax.org/gsoc/gsoc-2013-status-future-protocols-week-13.html)
[Code](https://github.com/ksonny/)
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
