1 /* ntlm.h -- interface declarations for SMB authentication code */
3 typedef unsigned short uint16;
4 typedef unsigned int uint32;
5 typedef unsigned char uint8;
9 * These structures are byte-order dependant, and should not
10 * be manipulated except by the use of the routines provided
35 tSmbStrHeader uDomain;
37 uint8 challengeData[8];
39 tSmbStrHeader emptyString;
42 }tSmbNtlmAuthChallenge;
49 tSmbStrHeader lmResponse;
50 tSmbStrHeader ntResponse;
51 tSmbStrHeader uDomain;
54 tSmbStrHeader sessionKey;
58 }tSmbNtlmAuthResponse;
62 #define SmbLength(ptr) (((ptr)->buffer - (uint8*)(ptr)) + (ptr)->bufIndex)
64 extern void dumpSmbNtlmAuthRequest(FILE *fp, tSmbNtlmAuthRequest *request);
65 extern void dumpSmbNtlmAuthChallenge(FILE *fp, tSmbNtlmAuthChallenge *challenge);
66 extern void dumpSmbNtlmAuthResponse(FILE *fp, tSmbNtlmAuthResponse *response);
68 extern void buildSmbNtlmAuthRequest(tSmbNtlmAuthRequest *request, char *user, char *domain);
69 extern void buildSmbNtlmAuthResponse(tSmbNtlmAuthChallenge *challenge, tSmbNtlmAuthResponse *response, char *user, char *password);
71 /* ntlm.h ends here */