summaryrefslogtreecommitdiff
path: root/libcli/auth/proto.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-23 16:02:23 +0200
committerGünther Deschner <gd@samba.org>2010-08-24 02:04:27 +0200
commit898c6123355a3a11ec17f0396c4cb3018c75c184 (patch)
treea0cf5275e05501c10f6e204de990118bcc731d87 /libcli/auth/proto.h
parent33060f67be100836d381a74bced351c6579cc58d (diff)
downloadsamba-898c6123355a3a11ec17f0396c4cb3018c75c184.tar.gz
samba-898c6123355a3a11ec17f0396c4cb3018c75c184.tar.bz2
samba-898c6123355a3a11ec17f0396c4cb3018c75c184.zip
s3-dcerpc: avoid talloc_move on schannel creds in cli_rpc_pipe_open_schannel_with_key().
Initially, the schannel creds were talloc memduped, then, during the netlogon creds client merge (baf7274fed2f1ae7a9e3a57160bf5471566e636c) they were first talloc_referenced and then later (53765c81f726a8c056cc4e57004592dd489975c9) talloc_moved. The issue with using talloc_move here is that users of that function in winbind will only be able to have two schanneled connections, as the cached schannel credentials pointer from the netlogon pipe will be set to NULL. Do a deep copy of the struct instead. Guenther
Diffstat (limited to 'libcli/auth/proto.h')
-rw-r--r--libcli/auth/proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h
index 2734db0616..34a0052f7a 100644
--- a/libcli/auth/proto.h
+++ b/libcli/auth/proto.h
@@ -35,6 +35,8 @@ void netlogon_creds_client_authenticator(struct netlogon_creds_CredentialState *
struct netr_Authenticator *next);
bool netlogon_creds_client_check(struct netlogon_creds_CredentialState *creds,
const struct netr_Credential *received_credentials);
+struct netlogon_creds_CredentialState *netlogon_creds_copy(TALLOC_CTX *mem_ctx,
+ struct netlogon_creds_CredentialState *creds_in);
/*****************************************************************
The above functions are common to the client and server interface