1 /* ntlm.h -- interface declarations for SMB authentication code */
6 * These structures are byte-order dependant, and should not
7 * be manipulated except by the use of the routines provided
32 tSmbStrHeader uDomain;
34 uint8 challengeData[8];
36 tSmbStrHeader targetInfo;
39 }tSmbNtlmAuthChallenge;
46 tSmbStrHeader lmResponse;
47 tSmbStrHeader ntResponse;
48 tSmbStrHeader uDomain;
51 tSmbStrHeader sessionKey;
55 }tSmbNtlmAuthResponse;
59 #define SmbLength(ptr) (((ptr)->buffer - (uint8*)(ptr)) + (ptr)->bufIndex)
61 extern void dumpSmbNtlmAuthRequest(FILE *fp, tSmbNtlmAuthRequest *request);
62 extern void dumpSmbNtlmAuthChallenge(FILE *fp, tSmbNtlmAuthChallenge *challenge);
63 extern void dumpSmbNtlmAuthResponse(FILE *fp, tSmbNtlmAuthResponse *response);
65 extern void buildSmbNtlmAuthRequest(tSmbNtlmAuthRequest *request, char *user, char *domain);
66 extern void buildSmbNtlmAuthResponse(tSmbNtlmAuthChallenge *challenge, tSmbNtlmAuthResponse *response, char *user, char *password);
68 /* ntlm.h ends here */