From 4f0e5e069064c11a8efc407cd42412d38534d0d2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 5 Jul 2004 23:28:49 +0000 Subject: r1345: add extended security spnego support to the smb client code set lp_use_spnego = False, because I can't get it working yet but I commit it so others can help me metze (This used to be commit 2445cceba9ab9bd928c8bc50927a39509e4526b0) --- source4/include/cli_context.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'source4/include/cli_context.h') diff --git a/source4/include/cli_context.h b/source4/include/cli_context.h index 24dcfe7235..930017bb26 100644 --- a/source4/include/cli_context.h +++ b/source4/include/cli_context.h @@ -29,21 +29,12 @@ struct cli_request; /* forward declare */ struct cli_session; /* forward declare */ struct cli_transport; /* forward declare */ -typedef struct smb_sign_info { - void (*sign_outgoing_message)(struct cli_request *req); - BOOL (*check_incoming_message)(struct cli_request *req); - void (*free_signing_context)(struct cli_transport *transport); - void *signing_context; - - BOOL doing_signing; -} smb_sign_info; - /* context that will be and has been negotiated between the client and server */ struct cli_negotiate { /* * negotiated maximum transmit size - this is given to us by the server */ - uint_t max_xmit; + uint32_t max_xmit; /* maximum number of requests that can be multiplexed */ uint16_t max_mux; @@ -51,16 +42,24 @@ struct cli_negotiate { /* the negotiatiated protocol */ enum protocol_types protocol; - int sec_mode; /* security mode returned by negprot */ + uint8_t sec_mode; /* security mode returned by negprot */ + uint8_t key_len; + DATA_BLOB server_guid; /* server_guid */ DATA_BLOB secblob; /* cryptkey or negTokenInit blob */ uint32_t sesskey; - smb_sign_info sign_info; + struct { + void (*sign_outgoing_message)(struct cli_request *req); + BOOL (*check_incoming_message)(struct cli_request *req); + void (*free_signing_context)(struct cli_transport *transport); + void *signing_context; + BOOL doing_signing; + } sign_info; /* capabilities that the server reported */ uint32_t capabilities; - int server_zone; + int16_t server_zone; time_t server_time; uint_t readbraw_supported:1; uint_t writebraw_supported:1; @@ -187,6 +186,9 @@ struct cli_session { uint32_t pid; DATA_BLOB user_session_key; + + /* the spnego context if we use extented security */ + struct gensec_security *gensec; }; /* -- cgit