v2 was an accidental re-post of the same patches, this time for real:
Changes to first version:
* Use struct value_string[] instead of switch{} for auth_action_str().
* Tweak first and last patch's log message.
Neels Hofmeyr (7):
Add MM Auth test; add auth_action_str() function
MM Auth test: add two tests for AUTH_THEN_CIPH
MM Auth test: add test to re-use existing auth
MM Auth: introduce AUTH_ERROR constant.
MM Auth: return AUTH_NOT_AVAIL instead of hardcoded zero
Fix MM Auth: disallow key_seq mismatch
Fix MM Auth: zero-initialize auth tuple before first use
openbsc/.gitignore | 1 +
openbsc/configure.ac | 1 +
openbsc/include/openbsc/auth.h | 9 +
openbsc/src/libmsc/auth.c | 33 +++-
openbsc/tests/Makefile.am | 2 +-
openbsc/tests/mm_auth/Makefile.am | 21 +++
openbsc/tests/mm_auth/mm_auth_test.c | 340 ++++++++++++++++++++++++++++++++++
openbsc/tests/mm_auth/mm_auth_test.ok | 40 ++++
openbsc/tests/testsuite.at | 7 +
9 files changed, 446 insertions(+), 8 deletions(-)
create mode 100644 openbsc/tests/mm_auth/Makefile.am
create mode 100644 openbsc/tests/mm_auth/mm_auth_test.c
create mode 100644 openbsc/tests/mm_auth/mm_auth_test.ok
--
2.1.4