From a9f5566482f164564fe639da434aa9e8d6dc12c0 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 19 Apr 2016 01:21:41 +0200 Subject: ranap_msg_factory: add Security Mode Complete msg generator Needed by hnb-test to reply to a Security Mode Command message. --- include/osmocom/ranap/ranap_msg_factory.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/osmocom/ranap/ranap_msg_factory.h b/include/osmocom/ranap/ranap_msg_factory.h index 7a9f3d2..d0fe4a2 100644 --- a/include/osmocom/ranap/ranap_msg_factory.h +++ b/include/osmocom/ranap/ranap_msg_factory.h @@ -4,6 +4,8 @@ #include #include #include +#include +#include /*! \brief generate RANAP DIRECT TRANSFER message */ struct msgb *ranap_new_msg_dt(uint8_t sapi, const uint8_t *nas, unsigned int nas_len); @@ -11,6 +13,11 @@ struct msgb *ranap_new_msg_dt(uint8_t sapi, const uint8_t *nas, unsigned int nas /*! \brief generate RANAP SECURITY MODE COMMAND message */ struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck); +/*! \brief generate RANAP SECURITY MODE COMPLETE message */ +struct msgb *ranap_new_msg_sec_mod_compl( + RANAP_ChosenIntegrityProtectionAlgorithm_t chosen_ip_alg, + RANAP_ChosenEncryptionAlgorithm_t chosen_enc_alg); + /*! \brief generate RANAP COMMON ID message */ struct msgb *ranap_new_msg_common_id(const char *imsi); -- cgit v1.2.3