libosmogsm 1.9.0.196-9975
Osmocom GSM library
oap_client.c File Reference
#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 msgbosmo_oap_client_encoded (const struct osmo_oap_message *oap_msg)
 
static struct msgboap_msg_register (uint16_t client_id)
 
int osmo_oap_client_register (struct osmo_oap_client_state *state, struct msgb **msg_tx)
 
static struct msgboap_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)
 

Function Documentation

◆ handle_challenge()

◆ oap_evaluate_challenge()

◆ oap_msg_challenge_response()

static struct msgb * oap_msg_challenge_response ( uint8_t *  xres)
static

◆ oap_msg_register()

static struct msgb * oap_msg_register ( uint16_t  client_id)
static

◆ osmo_oap_client_encoded()

struct msgb * osmo_oap_client_encoded ( const struct osmo_oap_message oap_msg)

◆ osmo_oap_client_handle()

◆ osmo_oap_client_init()

◆ osmo_oap_client_register()

int osmo_oap_client_register ( struct osmo_oap_client_state state,
struct msgb **  msg_tx 
)