summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/tls.h
diff options
context:
space:
mode:
authorMichael Brown2023-03-30 17:57:12 +0200
committerMichael Brown2023-03-30 17:57:12 +0200
commit2c6a15d2a350425c0f1f88e0e69cb5e9e2a651e5 (patch)
treec9bc10ae5e306212f110b5371c37f87bf49e86a4 /src/include/ipxe/tls.h
parent[efi] Claim fixed device paths by uninstalling device path protocol (diff)
downloadipxe-2c6a15d2a350425c0f1f88e0e69cb5e9e2a651e5.tar.gz
ipxe-2c6a15d2a350425c0f1f88e0e69cb5e9e2a651e5.tar.xz
ipxe-2c6a15d2a350425c0f1f88e0e69cb5e9e2a651e5.zip
[tls] Clean up change cipher spec record handling
Define and use data structures and constants for the (single-byte) change cipher spec records. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r--src/include/ipxe/tls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h
index 6fcb69bef..99c7be019 100644
--- a/src/include/ipxe/tls.h
+++ b/src/include/ipxe/tls.h
@@ -52,6 +52,9 @@ struct tls_header {
/** Change cipher content type */
#define TLS_TYPE_CHANGE_CIPHER 20
+/** Change cipher spec magic byte */
+#define TLS_CHANGE_CIPHER_SPEC 1
+
/** Alert content type */
#define TLS_TYPE_ALERT 21