summaryrefslogtreecommitdiff
path: root/src/process.h
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2014-11-23 14:52:04 +0100
committerLars Magne Ingebrigtsen <larsi@gnus.org>2014-11-23 14:52:04 +0100
commita85950469e6fc045de6157f9ad739e28f30ecd8d (patch)
tree99d4c9b37dd5b23db0112eaafe27f0f8ea1c89e1 /src/process.h
parent0b1d7cd596b9784584812d1bde8aa2d376891cdb (diff)
downloademacs-a85950469e6fc045de6157f9ad739e28f30ecd8d.tar.gz
Add functions to gnutls.c for exporting certificate details
* gnutls.c (gnutls_hex_string, gnutls_certificate_details) (Fgnutls_peer_status): New functions to export TLS certificate details to Emacs Lisp. * process.h: Added more fields to Lisp_Process to track certificate details. * gnutls.c (Fgnutls_boot): Save certificate for later inspection.
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 273ad9267d6..56c0f6d6302 100644
--- a/src/process.h
+++ b/src/process.h
@@ -162,6 +162,9 @@ struct Lisp_Process
gnutls_session_t gnutls_state;
gnutls_certificate_client_credentials gnutls_x509_cred;
gnutls_anon_client_credentials_t gnutls_anon_cred;
+ gnutls_x509_crt_t gnutls_certificate;
+ unsigned int gnutls_peer_verification;
+ unsigned int gnutls_extra_peer_verification;
int gnutls_log_level;
int gnutls_handshakes_tried;
bool_bf gnutls_p : 1;