summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-09 09:23:09 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-09 09:23:09 +0000
commit2ed7730f2d498a446dc7281e652d02a9dd2d94cf (patch)
tree88e89c9d42ad1e7cca1251a0331994ea9d345956 /source3/include
parent6ed674023620cc77e3276561f913b7a62ed26245 (diff)
downloadsamba-2ed7730f2d498a446dc7281e652d02a9dd2d94cf.tar.gz
samba-2ed7730f2d498a446dc7281e652d02a9dd2d94cf.tar.bz2
samba-2ed7730f2d498a446dc7281e652d02a9dd2d94cf.zip
Change the way we sign SMB packets, to a function pointer interface.
The intention is to allow for NTLMSSP and kerberos signing of packets, but for now it's just what I call 'simple' signing. (aka SMB signing per the SNIA spec) Andrew Bartlett (This used to be commit b9cf95c3dc04a45de71fb16e85c1bfbae50e6d8f)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/client.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 73e29a1fff..2e6b9337e4 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -58,14 +58,15 @@ struct print_job_info
};
typedef struct smb_sign_info {
- BOOL use_smb_signing;
+ void (*sign_outgoing_message)(struct cli_state *cli);
+ BOOL (*check_incoming_message)(struct cli_state *cli);
+ void (*free_signing_context)(struct cli_state *cli);
+ void *signing_context;
+
BOOL negotiated_smb_signing;
- BOOL temp_smb_signing;
- size_t mac_key_len;
- uint8 mac_key[64];
- uint32 send_seq_num;
- uint32 reply_seq_num;
BOOL allow_smb_signing;
+ BOOL doing_signing;
+ BOOL mandetory_signing;
} smb_sign_info;
struct cli_state {