Bug 36207 - Add example which dumps recieved TLS certificates to stdout
Summary: Add example which dumps recieved TLS certificates to stdout
Status: RESOLVED FIXED
Alias: None
Product: Wocky
Classification: Unclassified
Component: General (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/st...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-04-13 07:11 UTC by Stef Walter
Modified: 2012-11-14 18:34 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Stef Walter 2011-04-13 07:11:27 UTC
Also a handly tool, since TLS is hard to debug with 'openssl s_client'
Comment 1 Jonny Lamb 2011-04-13 07:21:29 UTC
This won't build if --with-tls isn't openssl. You should make it check that.
Comment 2 Stef Walter 2011-04-13 08:02:54 UTC
Good catch, fixed.
Comment 3 Jonny Lamb 2011-04-13 12:17:56 UTC
Oh yeah, I meant gnutls, not openssl. :-)

How come your example is full of printf/fprintfs? This makes me rather sad. 

+ * @author Jonny Lamb <jonny.lamb@collabora.co.uk>

o rly? Did I write any of this?!

I haven't really reviewed this though as I don't know anything about gnutls. Sorry...
Comment 4 Stef Walter 2011-04-20 22:01:11 UTC
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).
Comment 5 Stef Walter 2011-08-13 05:56:44 UTC
Rebased and updated for wocky master. Sjoerd can I merge this?
Comment 6 Will Thompson 2012-11-14 18:34:08 UTC
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!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.