summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-21 12:58:51 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:34 +0100
commit5fd97a181a2f625a9b441e17afab64199b9ed1dc (patch)
treead3d4ea63debb10297946d18428d13adbbf6f3d6 /lib/gnutls_int.h
parentcf912582bba30fa9e8563cf7a7e1d19819615a49 (diff)
downloadgnutls-5fd97a181a2f625a9b441e17afab64199b9ed1dc.tar.gz
handshake: introduced server side handshake [2/2]
That is, send server certificate verify and receive certificate and certificate verify messages. In addition introduced flags to mark the expected, or sent messages. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 998274e264..62dd6cb6c7 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -1106,6 +1106,11 @@ typedef struct {
unsigned int handshake_timeout_ms; /* timeout in milliseconds */
unsigned int record_timeout_ms; /* timeout in milliseconds */
+#define HSK_CRT_VRFY_EXPECTED 1
+#define HSK_CRT_SENT (1<<1)
+#define HSK_CRT_ASKED (1<<2)
+ unsigned hsk_flags; /* TLS1.3 only */
+
unsigned crt_requested; /* 1 if client auth was requested (i.e., client cert).
* In case of a server this holds 1 if we should wait
* for a client certificate verify