curl-library
Patch: Support CURLINFO_CERTINFO with GnuTLS
From: Christian Grothoff <grothoff_at_in.tum.de>
Date: Wed, 18 Sep 2013 22:14:47 +0200
Received on 2013-09-18
Date: Wed, 18 Sep 2013 22:14:47 +0200
Here's a little patch to get CURLINFO_CERTINFO to do something
meaningful if libcurl was compiled to use GnuTLS instead of OpenSSL.
As described in the log, I'd prefer to get PEM as the returned text to
the client, but the OpenSSL API doesn't allow that either. Would you
be happy with a patch to add an option CURLINFO_CERTINFO_PEM that would
return the server certificate in PEM format for machine-processing?
Happy hacking!
Christian
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/x-patch attachment: stored
- application/pgp-keys attachment: 0x48426C7E.asc
- application/pgp-signature attachment: OpenPGP digital signature