|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo_auth.h wrong prototype if !HAVE_KRB5_VERIFY_USER | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Philip Brown <phil> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.19 | ||
| Hardware: | PC | ||
| OS: | All | ||
|
Description
Philip Brown
2017-03-10 11:43:13 MST
Errr... thats a bogus fix. well, i guess technically it WORKS.. but it's horrible coding practice :( Its putting lies in the code :( You just added an unused parameter. The proper way would be to fix the prototype def in sudo_auth.h The fix is correct, your analysis is wrong. All the auth verify functions now take a callback parameter which may or may not be used by the particular authentication method. The function is called like this: success = auth->status = (auth->verify)(pw, standalone ? prompt : pass, auth, callback); I just missed adding it to the other declaration of sudo_krb5_verify() when the callback parameter was added. oh. fair enough then :) |