[tls] Include root of trust within definition of TLS session

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2020-12-15 16:28:33 +00:00
parent 3475f9162b
commit 6a8664d9ec
2 changed files with 11 additions and 4 deletions

View File

@@ -255,6 +255,9 @@ struct tls_session {
/** Server name */
const char *name;
/** Root of trust */
struct x509_root *root;
/** Session ID */
uint8_t id[32];
/** Length of session ID */
@@ -326,7 +329,7 @@ struct tls_connection {
/** Verification data */
struct tls_verify_data verify;
/** Root of trust (or NULL to use default) */
/** Root of trust */
struct x509_root *root;
/** Server certificate chain */
struct x509_chain *chain;