summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-13 12:21:56 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-13 12:21:56 +0000
commit2259e56a947104b19a1196154af4e43ab15e4b7c (patch)
treed5ee15b237ddc33e1d06df99d8bf1cd3cb98a39b /source3/libsmb
parent6032ec8a0172b9197ed1422e39ba4790d8df83f8 (diff)
downloadsamba-2259e56a947104b19a1196154af4e43ab15e4b7c.tar.gz
samba-2259e56a947104b19a1196154af4e43ab15e4b7c.tar.bz2
samba-2259e56a947104b19a1196154af4e43ab15e4b7c.zip
byteorder.h :
debugging output wasn't (still isn't) perfect. credentials.c lsaparse.c smbparse.c : added DEBUG strings. pipes.c : lost some changes, to do with setup of RPC headers. arg. (This used to be commit 9fdd697d17b68293bb95fd68f44c24f0f5b97f5f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/credentials.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c
index eb1039ddb0..ce7159f7ff 100644
--- a/source3/libsmb/credentials.c
+++ b/source3/libsmb/credentials.c
@@ -21,7 +21,7 @@
#include "includes.h"
-
+extern int DEBUGLEVEL;
/****************************************************************************
setup the session key.
Input: 8 byte challenge block
@@ -37,14 +37,24 @@ void cred_session_key(DOM_CHAL *clnt_chal, DOM_CHAL *srv_chal, char *pass,
char sum2[8];
char buf[8];
+ DEBUG(4,("cred_session_key\n"));
+
+ DEBUG(5,(" clnt_chal: %lx %lx srv_chal: %lx %lx\n",
+
+ IVAL(clnt_chal->data, 0), IVAL(clnt_chal->data, 4),
+ IVAL(srv_chal->data, 0), IVAL(srv_chal->data, 4)));
+
sum[0] = IVAL(clnt_chal->data, 0) + IVAL(srv_chal->data, 0);
sum[1] = IVAL(clnt_chal->data, 4) + IVAL(srv_chal->data, 4);
SIVAL(sum2,0,sum[0]);
SIVAL(sum2,4,sum[1]);
- smbhash(pass, sum2, buf);
- smbhash(pass+9,buf,session_key);
+ smbhash(pass , sum2, buf);
+ smbhash(pass+9, buf , session_key);
+
+ DEBUG(5,(" session_key: "));
+ dump_data(5, session_key, 16);
}