Hi,
it looks like src/include/ntlmauth.h contains a typo:

...
/* Negotiation request sent by client */
typedef struct _ntlm_negotiate {
    char signature[8];        /* "NTLMSSP" */
    int32_t type;       /* LSWAP(0x1) */
    ntlmhdr hdr;        /* NTLM header */
    u_int32_t flags;          /* Request flags */
    strhdr domain;            /* Domain we wish to authenticate in */
    strhdr workstation;       /* Client workstation name */
    char payload[256];        /* String data */
} ntlm_negotiate;
...

should read

...
/* Negotiation request sent by client */
typedef struct _ntlm_negotiate {
    char signature[8];        /* "NTLMSSP" */
    int32_t type;       /* LSWAP(0x1) */
    u_int32_t flags;          /* Request flags */
    strhdr domain;            /* Domain we wish to authenticate in */
    strhdr workstation;       /* Client workstation name */
    char payload[256];        /* String data */
} ntlm_negotiate;
...

With the following line removed:
    ntlmhdr hdr;        /* NTLM header */


Am I wrong in reading it?

Ciao
Michele


Reply via email to