mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
/*
|
|
* ue_authentication_ctx.h
|
|
*
|
|
* Contains the information related to the resource generated to handle the UE authentication. It contains at least the UE id, Serving Network, the Authentication Method and related EAP information or related 5G-AKA information.
|
|
*/
|
|
|
|
#ifndef _OpenAPI_ue_authentication_ctx_H_
|
|
#define _OpenAPI_ue_authentication_ctx_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "auth_type.h"
|
|
#include "links_value_schema.h"
|
|
#include "ue_authentication_ctx_5g_auth_data.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_ue_authentication_ctx_s OpenAPI_ue_authentication_ctx_t;
|
|
typedef struct OpenAPI_ue_authentication_ctx_s {
|
|
OpenAPI_auth_type_e auth_type;
|
|
struct OpenAPI_ue_authentication_ctx_5g_auth_data_s *_5g_auth_data;
|
|
OpenAPI_list_t* _links;
|
|
char *serving_network_name;
|
|
} OpenAPI_ue_authentication_ctx_t;
|
|
|
|
OpenAPI_ue_authentication_ctx_t *OpenAPI_ue_authentication_ctx_create(
|
|
OpenAPI_auth_type_e auth_type,
|
|
OpenAPI_ue_authentication_ctx_5g_auth_data_t *_5g_auth_data,
|
|
OpenAPI_list_t* _links,
|
|
char *serving_network_name
|
|
);
|
|
void OpenAPI_ue_authentication_ctx_free(OpenAPI_ue_authentication_ctx_t *ue_authentication_ctx);
|
|
OpenAPI_ue_authentication_ctx_t *OpenAPI_ue_authentication_ctx_parseFromJSON(cJSON *ue_authentication_ctxJSON);
|
|
cJSON *OpenAPI_ue_authentication_ctx_convertToJSON(OpenAPI_ue_authentication_ctx_t *ue_authentication_ctx);
|
|
OpenAPI_ue_authentication_ctx_t *OpenAPI_ue_authentication_ctx_copy(OpenAPI_ue_authentication_ctx_t *dst, OpenAPI_ue_authentication_ctx_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_ue_authentication_ctx_H_ */
|
|
|