aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/auth.h
AgeCommit message (Collapse)AuthorFilesLines
2016-03-31MM Auth: introduce AUTH_ERROR constant.Neels Hofmeyr1-0/+1
Instead of using hardcoded -1 for errors, include -1 in the enum auth_action type; apply its use. In the mm_auth test, the string output changes from '(internal error)' to 'AUTH_ERROR', since now the proper enum value is used in auth_action_names[].
2016-03-31Add MM Auth test; add auth_action_str() functionNeels Hofmeyr1-0/+8
Add basic MM Authentication test setup, with fake DB access and RAND_bytes(). So far implement simple tests for IO error during DB access and missing auth entry. To print the auth action during tests, add struct auth_action_names and auth_action_str() inline function in auth.[hc].
2016-03-17fix confusing typo in constant (THAN -> THEN)Neels Hofmeyr1-1/+1
2010-12-23Authentication: use ENUM instead of magic numbersHarald Welte1-0/+7
This improves readability of the code...
2010-06-14auth: Add missing include/auth.hSylvain Munaut1-0/+10
Doh ! Signed-off-by: Sylvain Munaut <tnt@246tNt.com>