|
libosmogsm UNKNOWN
Osmocom GSM library
|
#include <string.h>#include <errno.h>#include <osmocom/core/utils.h>#include <osmocom/core/logging.h>#include <osmocom/crypt/auth.h>#include <osmocom/gsm/oap.h>#include <osmocom/gsm/oap_client.h>Functions | |
| int | osmo_oap_client_init (struct osmo_oap_client_config *config, struct osmo_oap_client_state *state) |
| static int | oap_evaluate_challenge (const struct osmo_oap_client_state *state, const uint8_t *rx_random, const uint8_t *rx_autn, uint8_t *tx_xres) |
| struct msgb * | osmo_oap_client_encoded (const struct osmo_oap_message *oap_msg) |
| static struct msgb * | oap_msg_register (uint16_t client_id) |
| int | osmo_oap_client_register (struct osmo_oap_client_state *state, struct msgb **msg_tx) |
| static struct msgb * | oap_msg_challenge_response (uint8_t *xres) |
| static int | handle_challenge (struct osmo_oap_client_state *state, struct osmo_oap_message *oap_rx, struct msgb **msg_tx) |
| int | osmo_oap_client_handle (struct osmo_oap_client_state *state, const struct msgb *msg_rx, struct msgb **msg_tx) |
|
static |
|
static |
References osmo_sub_auth_data::amf, osmo_auth_vector::autn, osmo_sub_auth_data::k, osmo_sub_auth_data::opc, OSMO_AUTH_ALG_MILENAGE, osmo_auth_gen_vec(), OSMO_AUTH_TYPE_UMTS, osmo_auth_vector::res, osmo_auth_vector::res_len, osmo_oap_client_state::secret_k, osmo_oap_client_state::secret_opc, osmo_sub_auth_data::sqn, osmo_oap_client_state::state, osmo_sub_auth_data::u, and osmo_sub_auth_data::umts.
Referenced by handle_challenge().
|
static |
References osmo_oap_message::message_type, OAP_MSGT_CHALLENGE_RESULT, osmo_oap_client_encoded(), osmo_oap_message::xres, and osmo_oap_message::xres_present.
Referenced by handle_challenge().
|
static |
References osmo_oap_message::client_id, osmo_oap_message::message_type, OAP_MSGT_REGISTER_REQUEST, and osmo_oap_client_encoded().
Referenced by osmo_oap_client_register().
| struct msgb * osmo_oap_client_encoded | ( | const struct osmo_oap_message * | oap_msg | ) |
References msg, and osmo_oap_encode().
Referenced by oap_msg_challenge_response(), and oap_msg_register().
| int osmo_oap_client_handle | ( | struct osmo_oap_client_state * | state, |
| const struct msgb * | msg_rx, | ||
| struct msgb ** | msg_tx ) |
References gsm48_gmm_cause_names, handle_challenge(), osmo_oap_message::message_type, OAP_MSGT_CHALLENGE_REQUEST, OAP_MSGT_CHALLENGE_RESULT, OAP_MSGT_REGISTER_ERROR, OAP_MSGT_REGISTER_REQUEST, OAP_MSGT_REGISTER_RESULT, osmo_oap_client_register(), osmo_oap_decode(), osmo_oap_client_state::registration_failures, and osmo_oap_client_state::state.
| int osmo_oap_client_init | ( | struct osmo_oap_client_config * | config, |
| struct osmo_oap_client_state * | state ) |
| int osmo_oap_client_register | ( | struct osmo_oap_client_state * | state, |
| struct msgb ** | msg_tx ) |
References osmo_oap_client_state::client_id, oap_msg_register(), and osmo_oap_client_state::state.
Referenced by osmo_oap_client_handle().