forked from acouzens/open5gs
update it
This commit is contained in:
parent
ab14e15b85
commit
4df8073d01
|
@ -6,7 +6,7 @@ noinst_LTLIBRARIES = libs6a.la
|
||||||
|
|
||||||
libs6a_la_SOURCES = \
|
libs6a_la_SOURCES = \
|
||||||
milenage.h kasme.h \
|
milenage.h kasme.h \
|
||||||
s6a_app.h
|
s6a_lib.h
|
||||||
|
|
||||||
nodist_libs6a_la_SOURCES = \
|
nodist_libs6a_la_SOURCES = \
|
||||||
milenage.c kasme.c \
|
milenage.c kasme.c \
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "core_lib.h"
|
#include "core_lib.h"
|
||||||
#include "core_file.h"
|
#include "core_file.h"
|
||||||
|
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
static struct s6a_config_t g_conf;
|
static struct s6a_config_t g_conf;
|
||||||
struct s6a_config_t *s6a_config;
|
struct s6a_config_t *s6a_config;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "core_debug.h"
|
#include "core_debug.h"
|
||||||
|
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
struct dict_object *s6a_vendor = NULL;
|
struct dict_object *s6a_vendor = NULL;
|
||||||
struct dict_object *s6a_appli = NULL;
|
struct dict_object *s6a_appli = NULL;
|
||||||
|
|
|
@ -5,11 +5,13 @@
|
||||||
#include "core_signal.h"
|
#include "core_signal.h"
|
||||||
#include "core_semaphore.h"
|
#include "core_semaphore.h"
|
||||||
|
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
static void s6a_gnutls_log_func(int level, const char *str);
|
static void s6a_gnutls_log_func(int level, const char *str);
|
||||||
static void s6a_fd_logger(int printlevel, const char *format, va_list ap);
|
static void s6a_fd_logger(int printlevel, const char *format, va_list ap);
|
||||||
|
|
||||||
|
status_t s6a_config_apply();
|
||||||
|
|
||||||
int s6a_fd_init(const char *conffile)
|
int s6a_fd_init(const char *conffile)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -2,10 +2,18 @@
|
||||||
|
|
||||||
#include "core_debug.h"
|
#include "core_debug.h"
|
||||||
|
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
static pthread_t s6a_stats_th = (pthread_t)NULL;
|
static pthread_t s6a_stats_th = (pthread_t)NULL;
|
||||||
|
|
||||||
|
int s6a_fd_init(const char *conffile);
|
||||||
|
void s6a_fd_final();
|
||||||
|
|
||||||
|
char *s6a_hss_config();
|
||||||
|
char *s6a_mme_config();
|
||||||
|
|
||||||
|
int s6a_dict_init(void);
|
||||||
|
|
||||||
static void s6a_config_dump(void)
|
static void s6a_config_dump(void)
|
||||||
{
|
{
|
||||||
d_trace(1, "------- s6a configuration dump: ---------\n");
|
d_trace(1, "------- s6a configuration dump: ---------\n");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef __S6A_APP_H__
|
#ifndef __S6A_LIB_H__
|
||||||
#define __S6A_APP_H__
|
#define __S6A_LIB_H__
|
||||||
|
|
||||||
#include "core_errno.h"
|
#include "core_errno.h"
|
||||||
|
|
||||||
|
@ -126,17 +126,8 @@ extern struct dict_object *s6a_served_party_ip_addr;
|
||||||
CORE_DECLARE(int) s6a_init(int mode);
|
CORE_DECLARE(int) s6a_init(int mode);
|
||||||
CORE_DECLARE(void) s6a_final(void);
|
CORE_DECLARE(void) s6a_final(void);
|
||||||
|
|
||||||
CORE_DECLARE(int) s6a_fd_init(const char *conffile);
|
|
||||||
CORE_DECLARE(void) s6a_fd_final();
|
|
||||||
|
|
||||||
CORE_DECLARE(char *) s6a_hss_config();
|
|
||||||
CORE_DECLARE(char *) s6a_mme_config();
|
|
||||||
CORE_DECLARE(status_t) s6a_config_apply();
|
|
||||||
|
|
||||||
CORE_DECLARE(int) s6a_dict_init(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* ! __S6A_APP_H__ */
|
#endif /* ! __S6A_LIB_H__ */
|
|
@ -7,7 +7,7 @@
|
||||||
#include "milenage.h"
|
#include "milenage.h"
|
||||||
|
|
||||||
#include "hss_ctx.h"
|
#include "hss_ctx.h"
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
#define MAX_SQN_LEN 6
|
#define MAX_SQN_LEN 6
|
||||||
#define MAX_AK_LEN 6
|
#define MAX_AK_LEN 6
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "core_debug.h"
|
#include "core_debug.h"
|
||||||
|
|
||||||
#include "s6a_message.h"
|
#include "s6a_message.h"
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
struct sess_state {
|
struct sess_state {
|
||||||
c_int32_t randval; /* a random value to store in Test-AVP */
|
c_int32_t randval; /* a random value to store in Test-AVP */
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "core_debug.h"
|
#include "core_debug.h"
|
||||||
|
|
||||||
#include "s6a_app.h"
|
#include "s6a_lib.h"
|
||||||
|
|
||||||
struct session_handler *s6a_mme_reg = NULL;
|
struct session_handler *s6a_mme_reg = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue