login.c | login.c | |||
---|---|---|---|---|
skipping to change at line 180 | skipping to change at line 180 | |||
MEMERROR(params->utils); | MEMERROR(params->utils); | |||
return SASL_NOMEM; | return SASL_NOMEM; | |||
} | } | |||
strncpy((char *) password->data, clientin, clientinlen); | strncpy((char *) password->data, clientin, clientinlen); | |||
password->data[clientinlen] = '\0'; | password->data[clientinlen] = '\0'; | |||
password->len = clientinlen; | password->len = clientinlen; | |||
/* canonicalize username first, so that password verification is | /* canonicalize username first, so that password verification is | |||
* done against the canonical id */ | * done against the canonical id */ | |||
result = params->canon_user(params->utils->conn, text->username, | result = params->canon_user(params->utils->conn, | |||
text->username, | ||||
text->username_len, | text->username_len, | |||
SASL_CU_AUTHID | SASL_CU_AUTHZID, oparam | SASL_CU_AUTHID | SASL_CU_AUTHZID | SASL_ | |||
s); | CU_EXTERNALLY_VERIFIED, | |||
oparams); | ||||
if (result != SASL_OK) return result; | if (result != SASL_OK) return result; | |||
/* verify_password - return sasl_ok on success */ | /* verify_password - return sasl_ok on success */ | |||
result = params->utils->checkpass(params->utils->conn, | result = params->utils->checkpass(params->utils->conn, | |||
oparams->authid, oparams->alen, | oparams->authid, oparams->alen, | |||
(char *) password->data, password- >len); | (char *) password->data, password- >len); | |||
if (result != SASL_OK) { | if (result != SASL_OK) { | |||
_plug_free_secret(params->utils, &password); | _plug_free_secret(params->utils, &password); | |||
return result; | return result; | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |