diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-09 14:40:46 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-09 14:40:46 +0000 |
commit | ad54a5671405374b6308929154c6922bc6a7d0d7 (patch) | |
tree | 1a9d7dae275a6e395cd9c6c3e65f485f2ab04c2f /source3/libsmb | |
parent | 228cef8d01081e7cac1d90e5b568a19937404245 (diff) | |
download | samba-ad54a5671405374b6308929154c6922bc6a7d0d7.tar.gz samba-ad54a5671405374b6308929154c6922bc6a7d0d7.tar.bz2 samba-ad54a5671405374b6308929154c6922bc6a7d0d7.zip |
credentials.c:
use UTIME structure (defined and commented in smb.h to be time, secs,
since 01jan1970)
pipes.c:
another sub-function.
util.c:
added char *unistr2(uint16 *buff) function. same as unistr except
it takes uint16* instead of char*.
smbparse.c smb.h:
more structure sorting.
proto.h:
the usual.
(This used to be commit 72a86f514f0c92b69499718e63f5dd73ebece56e)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/credentials.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c index efa0d83ec2..4c81177fb2 100644 --- a/source3/libsmb/credentials.c +++ b/source3/libsmb/credentials.c @@ -59,7 +59,7 @@ Input: Output: 8 byte credential ****************************************************************************/ -void cred_create(char *session_key, char *stored_cred, uint32 time, +void cred_create(char *session_key, char *stored_cred, UTIME timestamp, char *cred) { char key2[7]; @@ -67,7 +67,7 @@ void cred_create(char *session_key, char *stored_cred, uint32 time, char timecred[8]; memcpy(timecred, stored_cred, 8); - SIVAL(timecred, 0, IVAL(stored_cred, 0) + time); + SIVAL(timecred, 0, IVAL(stored_cred, 0) + timestamp.time); E1(session_key, timecred, buf); memset(key2, 0, 7); @@ -90,11 +90,11 @@ Output: returns 0 otherwise ****************************************************************************/ int cred_assert(char *cred, char *session_key, char *stored_cred, - uint32 time) + NTTIME timestamp) { char cred2[8]; - cred_create(session_key, stored_cred, time, cred2); + cred_create(session_key, stored_cred, timestamp, cred2); return memcmp(cred, cred2, 8) == 0; } |