Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame] | 1 | #ifndef _AUTH_H |
| 2 | #define _AUTH_H |
| 3 | |
| 4 | struct gsm_auth_tuple; |
| 5 | struct gsm_subscriber; |
| 6 | |
| 7 | enum auth_action { |
| 8 | AUTH_NOT_AVAIL = 0, /* No auth tuple available */ |
| 9 | AUTH_DO_AUTH_THAN_CIPH = 1, /* Firsth authenticate, then cipher */ |
| 10 | AUTH_DO_CIPH = 2, /* Only ciphering */ |
| 11 | AUTH_DO_AUTH = 3, /* Only authentication, no ciphering */ |
| 12 | }; |
| 13 | |
| 14 | int auth_get_tuple_for_subscr(struct gsm_auth_tuple *atuple, |
| 15 | struct gsm_subscriber *subscr, int key_seq); |
| 16 | |
| 17 | #endif /* _AUTH_H */ |