diff --git a/lib/include/srslte/asn1/liblte_mme.h b/lib/include/srslte/asn1/liblte_mme.h index 93b3b903f..3d9640806 100644 --- a/lib/include/srslte/asn1/liblte_mme.h +++ b/lib/include/srslte/asn1/liblte_mme.h @@ -3792,8 +3792,8 @@ typedef struct{ }LIBLTE_MME_ESM_INFORMATION_RESPONSE_MSG_STRUCT; // Functions LIBLTE_ERROR_ENUM liblte_mme_pack_esm_information_response_msg(LIBLTE_MME_ESM_INFORMATION_RESPONSE_MSG_STRUCT *esm_info_resp, - uint8 sec_hdr_type, - uint32 count, + uint8 sec_hdr_type, + uint32 count, LIBLTE_BYTE_MSG_STRUCT *msg); LIBLTE_ERROR_ENUM liblte_mme_unpack_esm_information_response_msg(LIBLTE_BYTE_MSG_STRUCT *msg, LIBLTE_MME_ESM_INFORMATION_RESPONSE_MSG_STRUCT *esm_info_resp); diff --git a/lib/include/srslte/common/security.h b/lib/include/srslte/common/security.h index 61b46d640..5dc8a6305 100644 --- a/lib/include/srslte/common/security.h +++ b/lib/include/srslte/common/security.h @@ -124,8 +124,8 @@ uint8_t security_128_eia2( uint8_t *key, uint8_t *mac); uint8_t security_md5(const uint8_t *input, - size_t len, - uint8_t *output); + size_t len, + uint8_t *output); /****************************************************************************** diff --git a/lib/src/asn1/liblte_mme.cc b/lib/src/asn1/liblte_mme.cc index fd8e120f8..189f9138a 100644 --- a/lib/src/asn1/liblte_mme.cc +++ b/lib/src/asn1/liblte_mme.cc @@ -1027,7 +1027,7 @@ LIBLTE_ERROR_ENUM liblte_mme_unpack_authentication_parameter_rand_ie(uint8 **ie_ Document Reference: 24.301 v10.2.0 Section 9.9.3.4 *********************************************************************/ LIBLTE_ERROR_ENUM liblte_mme_pack_authentication_response_parameter_ie(uint8 *res, - int res_len, + int res_len, uint8 **ie_ptr) { LIBLTE_ERROR_ENUM err = LIBLTE_ERROR_INVALID_INPUTS; @@ -1037,11 +1037,12 @@ LIBLTE_ERROR_ENUM liblte_mme_pack_authentication_response_parameter_ie(uint8 *r ie_ptr != NULL) { (*ie_ptr)[0] = res_len; + *ie_ptr += 1; for(i=0; i #include -#include +#include "srsue/hdr/upper/usim_base.h" #include "srsue/hdr/upper/usim.h" #include "srsue/hdr/upper/nas.h" #include "srslte/upper/rlc.h"