From 462ef44745d56dbb00b3e31d12d2ecdc9d309219 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 11 Jan 2005 05:16:43 +0000 Subject: 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 used to be commit 1fed79cb0f2ae7940639d08ef99576559d4cd06e) --- source4/include/smb.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source4/include') diff --git a/source4/include/smb.h b/source4/include/smb.h index f2e29f571a..f5115edc08 100644 --- a/source4/include/smb.h +++ b/source4/include/smb.h @@ -196,14 +196,17 @@ typedef struct data_blob { size_t length; } DATA_BLOB; +/* 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 (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, 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 -- cgit