summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r--src/include/ipxe/tls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h
index 49401e6b..aa4bfc64 100644
--- a/src/include/ipxe/tls.h
+++ b/src/include/ipxe/tls.h
@@ -16,6 +16,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/crypto.h>
#include <ipxe/md5.h>
#include <ipxe/sha1.h>
+#include <ipxe/sha256.h>
#include <ipxe/x509.h>
/** A TLS header */
@@ -40,6 +41,9 @@ struct tls_header {
/** TLS version 1.1 */
#define TLS_VERSION_TLS_1_1 0x0302
+/** TLS version 1.2 */
+#define TLS_VERSION_TLS_1_2 0x0303
+
/** Change cipher content type */
#define TLS_TYPE_CHANGE_CIPHER 20
@@ -165,6 +169,8 @@ struct tls_session {
uint8_t handshake_md5_ctx[MD5_CTX_SIZE];
/** SHA1 context for handshake verification */
uint8_t handshake_sha1_ctx[SHA1_CTX_SIZE];
+ /** SHA256 context for handshake verification */
+ uint8_t handshake_sha256_ctx[SHA256_CTX_SIZE];
/** Hack: server RSA public key */
struct x509_rsa_public_key rsa;