libtls: Add downgrade protection for TLS 1.3 and TLS 1.2
Section 4.1.3 in RFC 8446 defines a new downgrade protection mechanism that also affects TLS 1.2.
This commit is contained in:
committed by
Tobias Brunner
parent
a4a128bd2f
commit
dc9f6c68df
+7
-1
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Tobias Brunner
|
||||
* Copyright (C) 2020 Pascal Knecht
|
||||
* Copyright (C) 2020-2021 Pascal Knecht
|
||||
* HSR Hochschule fuer Technik Rapperswil
|
||||
*
|
||||
* Copyright (C) 2010 Martin Willi
|
||||
@@ -213,6 +213,12 @@ extern enum_name_t *tls_extension_names;
|
||||
*/
|
||||
extern chunk_t tls_hello_retry_request_magic;
|
||||
|
||||
/**
|
||||
* Magic values for downgrade protection (see RFC 8446, section 4.1.3)
|
||||
*/
|
||||
extern chunk_t tls_downgrade_protection_tls11;
|
||||
extern chunk_t tls_downgrade_protection_tls12;
|
||||
|
||||
/**
|
||||
* A bottom-up driven TLS stack, suitable for EAP implementations.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user