Also a handly tool, since TLS is hard to debug with 'openssl s_client'
This won't build if --with-tls isn't openssl. You should make it check that.
Good catch, fixed.
Oh yeah, I meant gnutls, not openssl. :-)
How come your example is full of printf/fprintfs? This makes me rather sad.
+ * @author Jonny Lamb <firstname.lastname@example.org>
o rly? Did I write any of this?!
I haven't really reviewed this though as I don't know anything about gnutls. Sorry...
Fixed those things. Rebased and pushed now branch to above url.
There's not much to know about gnutls in this case, we're just parsing out bits of the certificate, and encoding it in PEM format (base64).
Rebased and updated for wocky master. Sjoerd can I merge this?
I rebased and merged this, along with an extra patch to not use a real password: <http://cgit.freedesktop.org/wocky/commit/?id=3b8e1050>.
Only took 15 months… sorry!