diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-08-12 00:04:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:52 -0500 |
commit | ffcfb97fb3d065e8c37d7f2de8b688d1e570a47b (patch) | |
tree | c85f4369758157424d92342b2ecb45a7170e3172 /source4/include/cli_context.h | |
parent | 0023e5b6982a09d8b08bfb882a81f560816dd95d (diff) | |
download | samba-ffcfb97fb3d065e8c37d7f2de8b688d1e570a47b.tar.gz samba-ffcfb97fb3d065e8c37d7f2de8b688d1e570a47b.tar.bz2 samba-ffcfb97fb3d065e8c37d7f2de8b688d1e570a47b.zip |
r1745: More work on cleaning up SMB signing.
This removes the function pointer mess from the SMB signing code.
Andrew Bartlett
(This used to be commit 8830603e4bc821a11db87072a32a51b076a28e06)
Diffstat (limited to 'source4/include/cli_context.h')
-rw-r--r-- | source4/include/cli_context.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/include/cli_context.h b/source4/include/cli_context.h index 436393b425..a31bc35b9c 100644 --- a/source4/include/cli_context.h +++ b/source4/include/cli_context.h @@ -29,10 +29,14 @@ struct smbcli_request; /* forward declare */ struct smbcli_session; /* forward declare */ struct smbcli_transport; /* forward declare */ +enum smb_signing_engine_state { + SMB_SIGNING_ENGINE_OFF, + SMB_SIGNING_ENGINE_BSRSPYL, + SMB_SIGNING_ENGINE_ON +}; + 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); + enum smb_signing_engine_state signing_state; DATA_BLOB mac_key; uint32_t next_seq_num; BOOL allow_smb_signing; |