From af47789ef2276fdb3b081955025b778d16ed2188 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 9 Jun 2012 18:58:54 +0100 Subject: [tls] Mark security negotiation as a pending operation Signed-off-by: Michael Brown --- src/include/ipxe/tls.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h index 7de1f19e8..4273e4e54 100644 --- a/src/include/ipxe/tls.h +++ b/src/include/ipxe/tls.h @@ -18,6 +18,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include +#include /** A TLS header */ struct tls_header { @@ -240,10 +241,10 @@ struct tls_session { /** Certificate validator */ struct interface validator; - /** Client has finished security negotiation */ - unsigned int client_finished; - /** Server has finished security negotiation */ - unsigned int server_finished; + /** Client security negotiation pending operation */ + struct pending_operation client_negotiation; + /** Server security negotiation pending operation */ + struct pending_operation server_negotiation; /** TX sequence number */ uint64_t tx_seq; -- cgit v1.2.3-55-g7522