diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-05 15:28:39 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-05 15:28:39 +0000 |
commit | 015c9367918b37539fabad32af532d1bd94c2378 (patch) | |
tree | 242a976fb15a3800aa61d38f420aea46b366fef8 /src/include/ipxe/tls.h | |
parent | fba2310562214eecd5c1fcdba86fccd95e292fa7 (diff) | |
download | ipxe-015c9367918b37539fabad32af532d1bd94c2378.tar.gz |
[tls] Support TLS version 1.2
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r-- | src/include/ipxe/tls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h index 49401e6bf..aa4bfc647 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; |