61 const char *input,
size_t input_len,
62 char **output,
size_t *output_len)
77 tSmbNtlmAuthRequest *request;
79 request = malloc (
sizeof (*request));
83 buildSmbNtlmAuthRequest (request, authid, domain);
85 *output_len = SmbLength (request);
86 *output = malloc (*output_len);
92 memcpy (*output, request, *output_len);
105 tSmbNtlmAuthChallenge *challenge;
106 tSmbNtlmAuthResponse *response;
108 if (input_len >
sizeof (*challenge))
111 challenge = malloc (
sizeof (*challenge));
118 memcpy (challenge, input, input_len);
127 response = malloc (
sizeof (*response));
134 buildSmbNtlmAuthResponse (challenge, response, authid, password);
138 *output_len = SmbLength (response);
139 *output = malloc (*output_len);
145 memcpy (*output, response, *output_len);
@ GSASL_MECHANISM_CALLED_TOO_MANY_TIMES
@ GSASL_MECHANISM_PARSE_ERROR
_GSASL_API const char * gsasl_property_get(Gsasl_session *sctx, Gsasl_property prop)
int _gsasl_ntlm_client_step(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
int _gsasl_ntlm_client_start(Gsasl_session *sctx _GL_UNUSED, void **mech_data)
void _gsasl_ntlm_client_finish(Gsasl_session *sctx _GL_UNUSED, void *mech_data)