diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-09-06 09:07:41 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-09-06 09:07:41 +1000 |
commit | d104a706d1adb5d75abd05a9a3f938385eefc5d4 (patch) | |
tree | d176b5497aa495a387d1819bf13729ed1aaa73d1 /source4 | |
parent | b7326979e9d8366eee03d967483a6513342186c4 (diff) | |
download | samba-d104a706d1adb5d75abd05a9a3f938385eefc5d4.tar.gz samba-d104a706d1adb5d75abd05a9a3f938385eefc5d4.tar.bz2 samba-d104a706d1adb5d75abd05a9a3f938385eefc5d4.zip |
Make SMB signing work with Windows 2008 and kerberos.
Pinched from b53e6387e30010509034835acf88b91b380ff44a by metze.
Andrew Bartlett
(This used to be commit d55602e23e7947462cb402b20b2d354b96aa7ba3)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/raw/smb_signing.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/libcli/raw/smb_signing.c b/source4/libcli/raw/smb_signing.c index 97bb688d1a..1d03686d9a 100644 --- a/source4/libcli/raw/smb_signing.c +++ b/source4/libcli/raw/smb_signing.c @@ -263,7 +263,6 @@ bool smbcli_set_signing_off(struct smb_signing_context *sign_info) { DEBUG(5, ("Shutdown SMB signing\n")); sign_info->doing_signing = false; - sign_info->next_seq_num = 0; data_blob_free(&sign_info->mac_key); sign_info->signing_state = SMB_SIGNING_ENGINE_OFF; return true; @@ -350,9 +349,6 @@ bool smbcli_simple_set_signing(TALLOC_CTX *mem_ctx, dump_data_pw("Started Signing with key:\n", sign_info->mac_key.data, sign_info->mac_key.length); - /* Initialise the sequence number */ - sign_info->next_seq_num = 0; - sign_info->signing_state = SMB_SIGNING_ENGINE_ON; return true; @@ -379,6 +375,7 @@ bool smbcli_transport_simple_set_signing(struct smbcli_transport *transport, bool smbcli_init_signing(struct smbcli_transport *transport) { + transport->negotiate.sign_info.next_seq_num = 0; transport->negotiate.sign_info.mac_key = data_blob(NULL, 0); if (!smbcli_set_signing_off(&transport->negotiate.sign_info)) { return false; |