|
libosmogsm
0.9.6.20170825
Osmocom GSM library
|
Osmocom Authentication Protocol. More...
Functions | |
| int | osmo_oap_decode (struct osmo_oap_message *oap_msg, const uint8_t *const_data, size_t data_len) |
| Decode OAP message data. More... | |
| void | osmo_oap_encode (struct msgb *msg, const struct osmo_oap_message *oap_msg) |
| Compose OAP message data. More... | |
Osmocom Authentication Protocol.
| int osmo_oap_decode | ( | struct osmo_oap_message * | oap_msg, |
| const uint8_t * | const_data, | ||
| size_t | data_len | ||
| ) |
Decode OAP message data.
| [out] | oap_msg | Parsed data is written to this instance. |
| [in] | data | Pointer to the data buffer containing the OAP message. |
| [in] | data_len | Length of the OAP message data. |
References osmo_oap_message::autn, osmo_oap_message::autn_present, osmo_oap_message::auts, osmo_oap_message::auts_present, osmo_oap_message::cause, osmo_oap_message::client_id, data, DLOAP, GMM_CAUSE_INV_MAND_INFO, GMM_CAUSE_PROTO_ERR_UNSPEC, iei, LOGL_ERROR, LOGL_NOTICE, LOGP, osmo_oap_message::message_type, OAP_AUTN_IE, OAP_AUTS_IE, OAP_CAUSE_IE, OAP_CLIENT_ID_IE, OAP_RAND_IE, OAP_XRES_IE, osmo_decode_big_endian(), osmo_shift_tlv(), osmo_shift_v_fixed(), osmo_oap_message::rand, osmo_oap_message::rand_present, osmo_oap_message::xres, and osmo_oap_message::xres_present.
| void osmo_oap_encode | ( | struct msgb * | msg, |
| const struct osmo_oap_message * | oap_msg | ||
| ) |
Compose OAP message data.
| [out] | msg | OAP message data is appended to this message buffer. |
| [in] | oap_msg | Elements to encode in the message data. |
References osmo_oap_message::autn, osmo_oap_message::autn_present, osmo_oap_message::auts, osmo_oap_message::auts_present, osmo_oap_message::cause, osmo_oap_message::client_id, msgb::data, msgb::l2h, osmo_oap_message::message_type, msgb_tlv_put(), msgb_v_put(), OAP_AUTN_IE, OAP_AUTS_IE, OAP_CAUSE_IE, OAP_CLIENT_ID_IE, OAP_RAND_IE, OAP_XRES_IE, OSMO_ASSERT, osmo_encode_big_endian(), osmo_oap_message::rand, osmo_oap_message::rand_present, osmo_oap_message::xres, and osmo_oap_message::xres_present.