Harald Welte | b8b85a1 | 2016-06-17 00:06:42 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <osmocom/core/utils.h> |
| 4 | |
| 5 | /* Parameters to VLR_AUTH_E_MS_AUTH_RESP */ |
| 6 | struct vlr_auth_resp_par { |
| 7 | bool is_r99; |
| 8 | bool is_utran; |
| 9 | const uint8_t *res; |
| 10 | unsigned int res_len; |
| 11 | const uint8_t *auts; |
| 12 | }; |
| 13 | |
Harald Welte | b8b85a1 | 2016-06-17 00:06:42 +0200 | [diff] [blame] | 14 | enum vlr_fsm_auth_event { |
| 15 | VLR_AUTH_E_START, |
| 16 | /* TS 23.018 OAS_VLR1(2): SendAuthInfo ACK from HLR */ |
| 17 | VLR_AUTH_E_HLR_SAI_ACK, |
| 18 | /* TS 23.018 OAS_VLR1(2): SendAuthInfo NACK from HLR */ |
| 19 | VLR_AUTH_E_HLR_SAI_NACK, |
| 20 | /* FIXME: merge with NACK? */ |
| 21 | VLR_AUTH_E_HLR_SAI_ABORT, |
| 22 | /* Authentication Response from MS */ |
| 23 | VLR_AUTH_E_MS_AUTH_RESP, |
| 24 | /* Authentication Failure from MS */ |
| 25 | VLR_AUTH_E_MS_AUTH_FAIL, |
| 26 | /* Identity Response (IMSI) from MS */ |
| 27 | VLR_AUTH_E_MS_ID_IMSI, |
| 28 | }; |
| 29 | |
| 30 | struct osmo_fsm vlr_auth_fsm; |
| 31 | |
| 32 | struct osmo_fsm_inst *auth_fsm_start(struct vlr_subscr *vsub, |
| 33 | uint32_t log_level, |
| 34 | struct osmo_fsm_inst *parent, |
| 35 | uint32_t parent_term_event, |
| 36 | bool is_r99, |
| 37 | bool is_utran); |
Sylvain Munaut | da9f37e | 2019-03-14 11:02:36 +0100 | [diff] [blame] | 38 | |
| 39 | bool auth_try_reuse_tuple(struct vlr_subscr *vsub, uint8_t key_seq); |