|
Lines 151-157
aix_valid_authentications(const char *us
Link Here
|
| 151 |
* returns 0. |
151 |
* returns 0. |
| 152 |
*/ |
152 |
*/ |
| 153 |
int |
153 |
int |
| 154 |
sys_auth_passwd(Authctxt *ctxt, const char *password, Buffer *loginmsg) |
154 |
sys_auth_passwd(Authctxt *ctxt, const char *password) |
| 155 |
{ |
155 |
{ |
| 156 |
char *authmsg = NULL, *msg, *name = ctxt->pw->pw_name; |
156 |
char *authmsg = NULL, *msg, *name = ctxt->pw->pw_name; |
| 157 |
int authsuccess = 0, expired, reenter, result; |
157 |
int authsuccess = 0, expired, reenter, result; |
|
Lines 181-187
sys_auth_passwd(Authctxt *ctxt, const ch
Link Here
|
| 181 |
*/ |
181 |
*/ |
| 182 |
expired = passwdexpired(name, &msg); |
182 |
expired = passwdexpired(name, &msg); |
| 183 |
if (msg && *msg) { |
183 |
if (msg && *msg) { |
| 184 |
buffer_append(loginmsg, msg, strlen(msg)); |
184 |
buffer_append(ctxt->loginmsg, msg, strlen(msg)); |
| 185 |
aix_remove_embedded_newlines(msg); |
185 |
aix_remove_embedded_newlines(msg); |
| 186 |
} |
186 |
} |
| 187 |
debug3("AIX/passwdexpired returned %d msg %.100s", expired, msg); |
187 |
debug3("AIX/passwdexpired returned %d msg %.100s", expired, msg); |