aboutsummaryrefslogtreecommitdiff
path: root/tests/mock_pam.c
Commit message (Collapse)AuthorAgeFilesLines
* tests/mock_pam.c: Use curly braces for all if-clauses.Mike Gabriel2021-06-081-20/+26
|
* tests/mock_pam.c: Don't leak memory pointed to by 'response'.Mike Gabriel2021-06-081-2/+6
|
* tests/mock_*.c: Mark unused function arguments as such.Mike Gabriel2021-06-081-4/+8
| | | | | | | | | | | | | | | | | | | | This resolves: mock_pam.c: In function 'fake_conv': mock_pam.c:22:20: error: unused parameter 'num_msg' [-Werror=unused-parameter] 22 | int fake_conv (int num_msg, const struct pam_message **msg, | ~~~~^~~~~~~ mock_pam.c:23:39: error: unused parameter 'appdata_ptr' [-Werror=unused-parameter] 23 | struct pam_response **resp, void *appdata_ptr) | ~~~~~~^~~~~~~~~~~ mock_pam.c: In function 'fake_conv_empty_password': mock_pam.c:51:35: error: unused parameter 'num_msg' [-Werror=unused-parameter] 51 | int fake_conv_empty_password (int num_msg, const struct pam_message **msg, | ~~~~^~~~~~~ mock_pam.c:52:39: error: unused parameter 'appdata_ptr' [-Werror=unused-parameter] 52 | struct pam_response **resp, void *appdata_ptr) | ~~~~~~^~~~~~~~~~~ cc1: all warnings being treated as errors
* unit tests: Fix build and re-enable them.Mike Gabriel2018-05-051-12/+13
|
* White-space clean-up.Mike Gabriel2017-12-071-1/+1
|
* unit test for empty password bugIftikhar Ahmad2013-03-191-0/+42
|
* Steal a bunch of test infrastructure from libpam-icaclientTed Gould2012-09-191-0/+110