diff options
| author | Lars Magne Ingebrigtsen | 2014-11-23 14:52:04 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2014-11-23 14:52:04 +0100 |
| commit | a85950469e6fc045de6157f9ad739e28f30ecd8d (patch) | |
| tree | 99d4c9b37dd5b23db0112eaafe27f0f8ea1c89e1 /src/process.h | |
| parent | 0b1d7cd596b9784584812d1bde8aa2d376891cdb (diff) | |
| download | emacs-a85950469e6fc045de6157f9ad739e28f30ecd8d.tar.gz emacs-a85950469e6fc045de6157f9ad739e28f30ecd8d.zip | |
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.h | 3 |
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 | |||
| 162 | gnutls_session_t gnutls_state; | 162 | gnutls_session_t gnutls_state; |
| 163 | gnutls_certificate_client_credentials gnutls_x509_cred; | 163 | gnutls_certificate_client_credentials gnutls_x509_cred; |
| 164 | gnutls_anon_client_credentials_t gnutls_anon_cred; | 164 | gnutls_anon_client_credentials_t gnutls_anon_cred; |
| 165 | gnutls_x509_crt_t gnutls_certificate; | ||
| 166 | unsigned int gnutls_peer_verification; | ||
| 167 | unsigned int gnutls_extra_peer_verification; | ||
| 165 | int gnutls_log_level; | 168 | int gnutls_log_level; |
| 166 | int gnutls_handshakes_tried; | 169 | int gnutls_handshakes_tried; |
| 167 | bool_bf gnutls_p : 1; | 170 | bool_bf gnutls_p : 1; |