blob: 2364fb3d205f5c0245f5d476886370dae7a61b88 [file] [log] [blame]
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001#ifndef _AUTH_H
2#define _AUTH_H
3
4struct gsm_auth_tuple;
5struct gsm_subscriber;
6
7enum 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
14int auth_get_tuple_for_subscr(struct gsm_auth_tuple *atuple,
15 struct gsm_subscriber *subscr, int key_seq);
16
17#endif /* _AUTH_H */