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:
committed by
Gerald (Jerry) Carter
parent
360aa583e7
commit
1fed79cb0f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user