summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorAnder Juaristi <a@juaristi.eus>2018-04-18 20:56:07 +0200
committerDaiki Ueno <dueno@redhat.com>2018-04-20 16:10:20 +0200
commitb65254724993d4fd5a290d439321f5d8ff54e4c5 (patch)
treed2f31251bb8e64288477034a3a88d5bbd2461c35 /lib/gnutls_int.h
parent277b2e9b054884b6e5317a313e1a6433402c4bca (diff)
downloadgnutls-tmp-session-resumption-tls13.tar.gz
ext/psk_ke_modes: Take into account of server priority stringtmp-session-resumption-tls13
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 08c76f5caf..2871607b53 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -1225,9 +1225,6 @@ typedef struct {
/* it is a copy of the handshake hash buffer if post handshake is used */
gnutls_buffer_st post_handshake_hash_buffer;
-/* When either of PSK or DHE-PSK is received */
-#define HSK_PSK_KE_MODES_RECEIVED (HSK_PSK_KE_MODE_PSK|HSK_PSK_KE_MODE_DHE_PSK|HSK_PSK_KE_MODE_INVALID)
-
#define HSK_CRT_VRFY_EXPECTED 1
#define HSK_CRT_SENT (1<<1)
#define HSK_CRT_ASKED (1<<2)
@@ -1345,6 +1342,12 @@ typedef struct {
/* the ciphersuite received in HRR */
uint8_t hrr_cs[2];
+#define PSK_KE 0
+#define PSK_DHE_KE 1
+
+ int psk_ke_modes[2];
+ unsigned psk_ke_modes_size;
+
int session_ticket_enable;
int session_ticket_renew;