[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-test-2341-gc396f45
Günther Deschner
gd at samba.org
Sun Feb 17 02:11:34 GMT 2008
The branch, v3-2-test has been updated
via c396f45e7ddc8d6ce0efa0cda2996ca513ecbdb7 (commit)
via 1dcb32424d16cff968a8713352c93c48dec58674 (commit)
from b9cc5cfaf9a87d342c23fa0f68f29050947b5102 (commit)
http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit c396f45e7ddc8d6ce0efa0cda2996ca513ecbdb7
Author: Günther Deschner <gd at samba.org>
Date: Sun Feb 17 03:10:21 2008 +0100
Move policy_handle_is_valid out of parse_lsa.c
Guenther
commit 1dcb32424d16cff968a8713352c93c48dec58674
Author: Günther Deschner <gd at samba.org>
Date: Sun Feb 17 03:08:42 2008 +0100
Remove unused creds_client_check and creds_client_step.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/libsmb/credentials.c | 23 -----------------------
source/rpc_parse/parse_lsa.c | 12 ------------
source/rpc_parse/parse_misc.c | 10 ++++++++++
3 files changed, 10 insertions(+), 35 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libsmb/credentials.c b/source/libsmb/credentials.c
index 2dcbdf3..9d33e6d 100644
--- a/source/libsmb/credentials.c
+++ b/source/libsmb/credentials.c
@@ -322,18 +322,6 @@ void creds_client_init(uint32 neg_flags,
Check a credential returned by the server.
****************************************************************************/
-bool creds_client_check(const struct dcinfo *dc, const DOM_CHAL *rcv_srv_chal_in)
-{
- if (memcmp(dc->srv_chal.data, rcv_srv_chal_in->data, 8)) {
- DEBUG(5,("creds_client_check: challenge : %s\n", credstr(rcv_srv_chal_in->data)));
- DEBUG(5,("calculated: %s\n", credstr(dc->srv_chal.data)));
- DEBUG(0,("creds_client_check: credentials check failed.\n"));
- return False;
- }
- DEBUG(10,("creds_client_check: credentials check OK.\n"));
- return True;
-}
-
bool netlogon_creds_client_check(const struct dcinfo *dc,
const struct netr_Credential *rcv_srv_chal_in)
{
@@ -360,17 +348,6 @@ bool netlogon_creds_client_check(const struct dcinfo *dc,
the server
****************************************************************************/
-void creds_client_step(struct dcinfo *dc, DOM_CRED *next_cred_out)
-{
- dc->sequence += 2;
- creds_step(dc);
- creds_reseed(dc);
-
- memcpy(&next_cred_out->challenge.data, dc->clnt_chal.data,
- sizeof(next_cred_out->challenge.data));
- next_cred_out->timestamp.time = dc->sequence;
-}
-
void netlogon_creds_client_step(struct dcinfo *dc,
struct netr_Authenticator *next_cred_out)
{
diff --git a/source/rpc_parse/parse_lsa.c b/source/rpc_parse/parse_lsa.c
index 80e90a8..3d65b9c 100644
--- a/source/rpc_parse/parse_lsa.c
+++ b/source/rpc_parse/parse_lsa.c
@@ -1206,15 +1206,3 @@ bool lsa_io_r_lookup_names4(const char *desc, LSA_R_LOOKUP_NAMES4 *out, prs_stru
return True;
}
-
-/*******************************************************************
- Reads or writes an LUID_ATTR structure.
-********************************************************************/
-
-bool policy_handle_is_valid(const POLICY_HND *hnd)
-{
- POLICY_HND zero_pol;
-
- ZERO_STRUCT(zero_pol);
- return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? False : True );
-}
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c
index 9e1937e..418f857 100644
--- a/source/rpc_parse/parse_misc.c
+++ b/source/rpc_parse/parse_misc.c
@@ -1859,4 +1859,14 @@ uint32 str_len_uni(UNISTR *source)
return i;
}
+/*******************************************************************
+ Verifies policy handle
+********************************************************************/
+bool policy_handle_is_valid(const POLICY_HND *hnd)
+{
+ POLICY_HND zero_pol;
+
+ ZERO_STRUCT(zero_pol);
+ return ((memcmp(&zero_pol, hnd, sizeof(POLICY_HND)) == 0) ? false : true );
+}
--
Samba Shared Repository
More information about the samba-cvs
mailing list