Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
728 B

#include "master.h"
#include "keytab.h"
#define CHECK( what, fieldname ) { \
printf( "\n" #what " " #fieldname ".\n" ); \
printf( "sizeof " #what " is %d.\n", sizeof( what ) ); \
printf( "sizeof k." #fieldname " is %d.\n", sizeof( k.fieldname ) ); \
printf( "sizeof pk->" #fieldname " is %d.\n", sizeof( pk->fieldname ) );\
}
int __cdecl
main( int argc, PCHAR argv[] ) {
KTENT k;
PKTENT pk;
pk = &k;
CHECK( K5_INT32, keySize );
CHECK( K5_INT16, cEntries );
CHECK( K5_INT16, szRealm );
CHECK( K5_INT32, PrincType );
CHECK( K5_TIMESTAMP, TimeStamp );
CHECK( K5_INT16, KeyType );
CHECK( K5_INT16, KeyLength );
return 0;
}