aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/tls.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-03-03 14:11:46 +0000
committerMichael Brown <mcb30@ipxe.org>2012-03-03 16:19:12 +0000
commitd9ce3bfe4c574934234a07cab1b7c6af917645c5 (patch)
treeea4a26fe659ee841729f0bfb4c5a7f068ef4e5f4 /src/include/ipxe/tls.h
parentd620606d3e8c913876a671990600c226788b71da (diff)
downloadipxe-d9ce3bfe4c574934234a07cab1b7c6af917645c5.tar.gz
[tls] Support TLS version 1.1
Advertise support for TLS version 1.1, and be prepared to downgrade to TLS version 1.0. Tested against Apache with mod_gnutls, using the GnuTLSPriorities directive to force specific protocol versions. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r--src/include/ipxe/tls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h
index 94cd322c8..c14e92106 100644
--- a/src/include/ipxe/tls.h
+++ b/src/include/ipxe/tls.h
@@ -138,6 +138,8 @@ struct tls_session {
/** Ciphertext stream */
struct interface cipherstream;
+ /** Protocol version */
+ uint16_t version;
/** Current TX cipher specification */
struct tls_cipherspec tx_cipherspec;
/** Next TX cipher specification */