Commit f4a685fa authored by Cedric Roux's avatar Cedric Roux

- Fix build for standalone NAS

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4618 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 387753e7
...@@ -1962,9 +1962,9 @@ static int _emm_attach_identify(void *args) ...@@ -1962,9 +1962,9 @@ static int _emm_attach_identify(void *args)
auth_vector_t *auth = &emm_ctx->vector; auth_vector_t *auth = &emm_ctx->vector;
const OctetString loc_rand = {AUTH_RAND_SIZE, (uint8_t *)auth->rand}; const OctetString loc_rand = {AUTH_RAND_SIZE, (uint8_t *)auth->rand};
const OctetString autn = {AUTH_AUTN_SIZE, (uint8_t *)auth->autn}; const OctetString autn = {AUTH_AUTN_SIZE, (uint8_t *)auth->autn};
rc = emm_proc_authentication(emm_ctx->ueid, 0, // TODO: eksi != 0 rc = emm_proc_authentication(emm_ctx, emm_ctx->ueid, 0, // TODO: eksi != 0
&loc_rand, &autn, &loc_rand, &autn,
emm_attach_security, _emm_attach_security,
_emm_attach_release, _emm_attach_release,
_emm_attach_release); _emm_attach_release);
if (rc != RETURNok) { if (rc != RETURNok) {
......
...@@ -20,6 +20,8 @@ Description ...@@ -20,6 +20,8 @@ Description
#include <string.h> #include <string.h>
#if defined(EPC_BUILD)
#include "nas_log.h" #include "nas_log.h"
#include "commonDef.h" #include "commonDef.h"
...@@ -132,3 +134,4 @@ int emm_cn_send(const emm_cn_t *msg) ...@@ -132,3 +134,4 @@ int emm_cn_send(const emm_cn_t *msg)
LOG_FUNC_RETURN (rc); LOG_FUNC_RETURN (rc);
} }
#endif
...@@ -23,6 +23,8 @@ Description ...@@ -23,6 +23,8 @@ Description
#ifndef _EMM_CN_H_ #ifndef _EMM_CN_H_
#define _EMM_CN_H_ #define _EMM_CN_H_
#if defined(EPC_BUILD)
int emm_cn_send(const emm_cn_t *msg); int emm_cn_send(const emm_cn_t *msg);
#endif
#endif /* _EMM_CN_H_ */ #endif /* _EMM_CN_H_ */
...@@ -18,7 +18,9 @@ Description ...@@ -18,7 +18,9 @@ Description
*****************************************************************************/ *****************************************************************************/
#if defined(EPC_BUILD)
#include "intertask_interface.h" #include "intertask_interface.h"
#endif
#ifndef __EMM_CNDEF_H__ #ifndef __EMM_CNDEF_H__
#define __EMM_CNDEF_H__ #define __EMM_CNDEF_H__
...@@ -32,10 +34,10 @@ typedef enum emmcn_primitive_s { ...@@ -32,10 +34,10 @@ typedef enum emmcn_primitive_s {
_EMMCN_END _EMMCN_END
} emm_cn_primitive_t; } emm_cn_primitive_t;
#if defined(EPC_BUILD)
typedef nas_auth_param_rsp_t emm_cn_auth_res_t; typedef nas_auth_param_rsp_t emm_cn_auth_res_t;
typedef nas_auth_param_fail_t emm_cn_auth_fail_t; typedef nas_auth_param_fail_t emm_cn_auth_fail_t;
#if defined(EPC_BUILD)
typedef struct emm_mme_ul_s { typedef struct emm_mme_ul_s {
emm_cn_primitive_t primitive; emm_cn_primitive_t primitive;
union { union {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment