1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-12 04:23:49 +03:00

r4673: Fix the IDL for the QuerySecret LSA call.

This call uses a new IDL type, NTTIME_hyper.  This is 8-byte aligned,
as the name suggests.

Expand the QuerySecret LSA calls in RPC-SAMLOGON and RPC-LSA, to
validate the behaviour of times, and of the old secrets.

Thanks to tridge for spotting the use of HYPER!

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2005-01-11 05:16:43 +00:00
committed by Gerald (Jerry) Carter
parent 360aa583e7
commit 1fed79cb0f
6 changed files with 162 additions and 51 deletions

View File

@@ -196,14 +196,17 @@ typedef struct data_blob {
size_t length;
} DATA_BLOB;
/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30 */
typedef uint64_t NTTIME;
/* 64 bit time (1 sec) 1601 - in the NDR blob but mapped to NTTIME */
#define NTTIME_1sec NTTIME
/* 8 byte aligned 'hyper' type from MS IDL */
typedef uint64_t HYPER_T;
/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30 */
typedef uint64_t NTTIME;
/* 64 bit time (100 nanosec) 1601, but 8 byte aligned 'hyper' type */
#define NTTIME_hyper NTTIME
/* 64 bit time (1 sec) 1601 - in the NDR blob but mapped to NTTIME */
#define NTTIME_1sec NTTIME
/* the basic packet size, assuming no words or bytes. Does not include the NBT header */
#define MIN_SMB_SIZE 35