diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-08-11 18:05:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:50 -0500 |
commit | d9ff454a87410d4756cd61612bfb4aa768301be5 (patch) | |
tree | 16e4d7b58d7c4294092710e668843f566ddbe818 /source4/include/cli_context.h | |
parent | 5fa350cb1334a4b888bc65746ed6912a5ed6e7ed (diff) | |
download | samba-d9ff454a87410d4756cd61612bfb4aa768301be5.tar.gz samba-d9ff454a87410d4756cd61612bfb4aa768301be5.tar.xz samba-d9ff454a87410d4756cd61612bfb4aa768301be5.zip |
r1729: Make the SMB signing code more generic (to share more between client and servers).
Andrew Bartlett
(This used to be commit b90b04e84bc8add235cf9ee7797a608ff48c4ca0)
Diffstat (limited to 'source4/include/cli_context.h')
-rw-r--r-- | source4/include/cli_context.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/source4/include/cli_context.h b/source4/include/cli_context.h index 2e1bc11d8c..d3ac878b13 100644 --- a/source4/include/cli_context.h +++ b/source4/include/cli_context.h @@ -34,6 +34,18 @@ struct smb_basic_signing_context { uint32_t next_seq_num; }; +struct smb_signing_context { + void (*sign_outgoing_message)(struct smbcli_request *req); + BOOL (*check_incoming_message)(struct smbcli_request *req); + void (*free_signing_context)(struct smb_signing_context *sign_info); + struct smb_basic_signing_context *signing_context; + BOOL negotiated_smb_signing; + BOOL allow_smb_signing; + BOOL doing_signing; + BOOL mandatory_signing; + BOOL seen_valid; /* Have I ever seen a validly signed packet? */ +}; + /* context that will be and has been negotiated between the client and server */ struct smbcli_negotiate { /* @@ -53,17 +65,7 @@ struct smbcli_negotiate { DATA_BLOB secblob; /* cryptkey or negTokenInit blob */ uint32_t sesskey; - struct { - void (*sign_outgoing_message)(struct smbcli_request *req); - BOOL (*check_incoming_message)(struct smbcli_request *req); - void (*free_signing_context)(struct smbcli_transport *transport); - struct smb_basic_signing_context *signing_context; - BOOL negotiated_smb_signing; - BOOL allow_smb_signing; - BOOL doing_signing; - BOOL mandatory_signing; - BOOL seen_valid; /* Have I ever seen a validly signed packet? */ - } sign_info; + struct smb_signing_context sign_info; /* capabilities that the server reported */ uint32_t capabilities; |