[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/ntlm
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/ntlm |
Date: |
Sun, 07 Nov 2004 18:22:24 +0100 |
Update of /home/cvs/gsasl/lib/ntlm
In directory dopio:/tmp/cvs-serv9331
Modified Files:
ntlm.c
Log Message:
Use authid instead of authzid.
--- /home/cvs/gsasl/lib/ntlm/ntlm.c 2004/10/13 16:23:31 1.12
+++ /home/cvs/gsasl/lib/ntlm/ntlm.c 2004/11/07 17:22:24 1.13
@@ -69,7 +69,7 @@
tSmbNtlmAuthResponse response;
/* XXX create callback for domain? Doesn't seem to be needed by servers */
char *domain = NULL;
- const char *password, *authzid;
+ const char *password, *authid;
int res;
switch (state->step)
@@ -79,11 +79,11 @@
if (input_len != 1 && *input != '+')
return GSASL_MECHANISM_PARSE_ERROR; */
- authzid = gsasl_property_get (sctx, GSASL_AUTHZID);
- if (!authzid)
- return GSASL_NO_AUTHZID;
+ authid = gsasl_property_get (sctx, GSASL_AUTHID);
+ if (!authid)
+ return GSASL_NO_AUTHID;
- buildSmbNtlmAuthRequest (&request, authzid, domain);
+ buildSmbNtlmAuthRequest (&request, authid, domain);
*output_len = SmbLength (&request);
*output = malloc (*output_len);
@@ -110,11 +110,11 @@
if (!password)
return GSASL_NO_PASSWORD;
- authzid = gsasl_property_get (sctx, GSASL_AUTHZID);
- if (!authzid)
- return GSASL_NO_AUTHZID;
+ authid = gsasl_property_get (sctx, GSASL_AUTHID);
+ if (!authid)
+ return GSASL_NO_AUTHID;
- buildSmbNtlmAuthResponse (&challenge, &response, authzid, password);
+ buildSmbNtlmAuthResponse (&challenge, &response, authid, password);
*output_len = SmbLength (&response);
*output = malloc (*output_len);
- CVS gsasl/lib/ntlm,
gsasl-commit <=