iPXE
tls_session Struct Reference

A TLS session. More...

#include <tls.h>

Data Fields

struct refcnt refcnt
 Reference counter.
struct list_head list
 List of sessions.
const char * name
 Server name.
struct x509_rootroot
 Root of trust.
struct private_keykey
 Private key.
struct x509_certificatecert
 Server certificate.
uint8_t id [32]
 Session ID.
size_t id_len
 Length of session ID.
void * ticket
 Session ticket.
size_t ticket_len
 Length of session ticket.
uint8_t resumption_master_secret [48]
 Resumption master secret.
size_t resumption_master_secret_len
 Length of resumption master secret.
int extended_master_secret
 Extended master secret flag.
struct list_head conn
 List of connections.

Detailed Description

A TLS session.

Definition at line 332 of file tls.h.

Field Documentation

◆ refcnt

struct refcnt tls_session::refcnt

Reference counter.

Definition at line 334 of file tls.h.

Referenced by free_tls(), and tls_session().

◆ list

struct list_head tls_session::list

List of sessions.

Definition at line 336 of file tls.h.

Referenced by free_tls_session(), tls_client_hello(), and tls_session().

◆ name

const char* tls_session::name

Server name.

Definition at line 339 of file tls.h.

Referenced by tls_client_hello(), tls_parse_chain(), and tls_session().

◆ root

struct x509_root* tls_session::root

Root of trust.

Definition at line 341 of file tls.h.

Referenced by free_tls_session(), and tls_session().

◆ key

struct private_key* tls_session::key

Private key.

Definition at line 343 of file tls.h.

Referenced by free_tls_session(), and tls_session().

◆ cert

struct x509_certificate* tls_session::cert

Server certificate.

Definition at line 346 of file tls.h.

Referenced by free_tls_session(), tls_new_finished(), and tls_resume_secret().

◆ id

uint8_t tls_session::id[32]

Session ID.

Definition at line 348 of file tls.h.

Referenced by tls_new_finished(), and tls_tx_step().

◆ id_len

size_t tls_session::id_len

Length of session ID.

Definition at line 350 of file tls.h.

Referenced by tls_new_finished(), and tls_tx_step().

◆ ticket

void* tls_session::ticket

Session ticket.

Definition at line 352 of file tls.h.

Referenced by free_tls_session(), tls_client_hello(), and tls_new_finished().

◆ ticket_len

size_t tls_session::ticket_len

Length of session ticket.

Definition at line 354 of file tls.h.

Referenced by tls_client_hello(), and tls_new_finished().

◆ resumption_master_secret

uint8_t tls_session::resumption_master_secret[48]

Resumption master secret.

Definition at line 356 of file tls.h.

Referenced by tls_generate_resumption_master(), tls_resume_secret(), and tls_session().

◆ resumption_master_secret_len

size_t tls_session::resumption_master_secret_len

Length of resumption master secret.

Definition at line 358 of file tls.h.

Referenced by tls_generate_resumption_master(), and tls_resume_secret().

◆ extended_master_secret

int tls_session::extended_master_secret

Extended master secret flag.

Definition at line 360 of file tls.h.

Referenced by tls_new_finished(), and tls_new_server_hello().

◆ conn

struct list_head tls_session::conn

List of connections.

Definition at line 363 of file tls.h.

Referenced by add_tls(), free_tls_session(), tls_new_finished(), tls_session(), tls_tx_resume_all(), and tls_tx_step().


The documentation for this struct was generated from the following file: