diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-05 23:12:47 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-05 23:13:52 +0000 |
commit | c8f52cccfbd54e764cafee627cb72059fbe93f79 (patch) | |
tree | ebac6a791274f467ad2da9494755c8abb461d5cd /src/include/ipxe/tls.h | |
parent | 6069b09bfc01107eb53f3e4ca792ab69dae601b1 (diff) | |
download | ipxe-c8f52cccfbd54e764cafee627cb72059fbe93f79.tar.gz |
[tls] Formalise the definition of a TLS cipher suite
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r-- | src/include/ipxe/tls.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h index 8d4e709db..804e1a1fb 100644 --- a/src/include/ipxe/tls.h +++ b/src/include/ipxe/tls.h @@ -99,8 +99,8 @@ enum tls_tx_pending { TLS_TX_FINISHED = 0x0010, }; -/** A TLS cipher specification */ -struct tls_cipherspec { +/** A TLS cipher suite */ +struct tls_cipher_suite { /** Public-key encryption algorithm */ struct pubkey_algorithm *pubkey; /** Bulk encryption cipher algorithm */ @@ -108,7 +108,15 @@ struct tls_cipherspec { /** MAC digest algorithm */ struct digest_algorithm *digest; /** Key length */ - size_t key_len; + uint16_t key_len; + /** Numeric code (in network-endian order) */ + uint16_t code; +}; + +/** A TLS cipher specification */ +struct tls_cipherspec { + /** Cipher suite */ + struct tls_cipher_suite *suite; /** Dynamically-allocated storage */ void *dynamic; /** Public key encryption context */ |