Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AUSF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AUSF
Commits
e933c13f
Commit
e933c13f
authored
May 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Process message in Ausf_app instead of API Server
parent
6fa4b341
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
409 additions
and
361 deletions
+409
-361
src/5gaka/authentication_algorithms_with_5gaka.cpp
src/5gaka/authentication_algorithms_with_5gaka.cpp
+2
-0
src/api_server/impl/DefaultApiImpl.cpp
src/api_server/impl/DefaultApiImpl.cpp
+19
-335
src/ausf_app/ausf_app.cpp
src/ausf_app/ausf_app.cpp
+360
-1
src/ausf_app/ausf_app.hpp
src/ausf_app/ausf_app.hpp
+21
-0
src/ausf_app/ausf_config.cpp
src/ausf_app/ausf_config.cpp
+0
-20
src/ausf_app/ausf_config.hpp
src/ausf_app/ausf_config.hpp
+0
-5
src/common/ausf.h
src/common/ausf.h
+7
-0
No files found.
src/5gaka/authentication_algorithms_with_5gaka.cpp
View file @
e933c13f
...
...
@@ -48,9 +48,11 @@ random_state_t random_state;
using
namespace
std
;
/*
extern void print_buffer(
const std::string app, const std::string commit, uint8_t* buf, int len);
extern void hexStr2Byte(const char* src, unsigned char* dest, int len);
*/
/************ algorithm f1 **************/
/*
Computes network authentication code MAC-A from key K, random, challenge RAND,
...
...
src/api_server/impl/DefaultApiImpl.cpp
View file @
e933c13f
This diff is collapsed.
Click to expand it.
src/ausf_app/ausf_app.cpp
View file @
e933c13f
This diff is collapsed.
Click to expand it.
src/ausf_app/ausf_app.hpp
View file @
e933c13f
...
...
@@ -31,11 +31,17 @@
#define FILE_AUSF_APP_HPP_SEEN
#include <string>
#include "AuthenticationInfo.h"
#include "UEAuthenticationCtx.h"
#include "ConfirmationData.h"
#include "ausf.h"
namespace
oai
{
namespace
ausf
{
namespace
app
{
using
namespace
oai
::
ausf_server
::
model
;
// class ausf_config;
class
ausf_app
{
public:
...
...
@@ -45,7 +51,22 @@ class ausf_app {
virtual
~
ausf_app
();
void
handle_ue_authentications
(
const
AuthenticationInfo
&
authenticationInfo
,
nlohmann
::
json
&
json_data
,
std
::
string
&
location
,
uint16_t
&
http_response_code
);
void
handle_ue_authentications_confirmation
(
const
std
::
string
&
authCtxId
,
const
ConfirmationData
&
confirmation_data
,
nlohmann
::
json
&
json_data
,
uint16_t
&
http_response_code
);
private:
AUSF_AV_s
ausf_av_s
;
// stored temporarily
uint8_t
XRES_STAR
[
16
];
// store xres*
std
::
string
SUPI_AUSF
;
// store supi
std
::
string
AUTH_TYPE
;
// store authType
std
::
string
SERVING_NN
;
// store serving network name
std
::
string
KAUSF_TMP
;
// store Kausf(string)
};
}
// namespace app
}
// namespace ausf
...
...
src/ausf_app/ausf_config.cpp
View file @
e933c13f
...
...
@@ -129,12 +129,6 @@ int ausf_config::load(const std::string& config_file) {
new_if_cfg
[
AUSF_CONFIG_STRING_INTERFACE_SBI_AUSF
];
load_interface
(
sbi_ausf_cfg
,
sbi
);
// const Setting& nudm_cfg = new_if_cfg[AUSF_CONFIG_STRING_INTERFACE_NUDM];
// load_interface(nudm_cfg, nudm);
// const Setting& namf_cfg = new_if_cfg[AUSF_CONFIG_STRING_INTERFACE_NAMF];
// load_interface(namf_cfg, namf);
}
catch
(
const
SettingNotFoundException
&
nfex
)
{
Logger
::
config
().
error
(
"%s : %s, using defaults"
,
nfex
.
what
(),
nfex
.
getPath
());
...
...
@@ -215,13 +209,6 @@ void ausf_config::display() {
Logger
::
config
().
info
(
" ip ...................: %s"
,
inet_ntoa
(
sbi
.
addr4
));
Logger
::
config
().
info
(
" port .................: %d"
,
sbi
.
port
);
// Logger::config().info("- Nudm Networking:");
// Logger::config().info(" iface ................: %s",
// nudm.if_name.c_str());
// Logger::config().info(
// " ip ...................: %s", inet_ntoa(udm_addr.addr4));
// Logger::config().info(" port .................: %d", udm_addr.port);
Logger
::
config
().
info
(
"- UDM:"
);
Logger
::
config
().
info
(
" IPv4 Addr ...........: %s"
,
...
...
@@ -230,13 +217,6 @@ void ausf_config::display() {
Logger
::
config
().
info
(
" API version .........: %s"
,
udm_addr
.
api_version
.
c_str
());
/* Logger::config().info("- Namf Networking:");
Logger::config().info(" iface ................: %s",
namf.if_name.c_str()); Logger::config().info( " ip ...................:
%s", inet_ntoa(namf.addr4)); Logger::config().info(" port
.................: %d", namf.port);
*/
Logger
::
config
().
info
(
"- AMF:"
);
Logger
::
config
().
info
(
" IPv4 Addr ...........: %s"
,
...
...
src/ausf_app/ausf_config.hpp
View file @
e933c13f
...
...
@@ -51,9 +51,6 @@
#define AUSF_CONFIG_STRING_INTERFACES "INTERFACES"
#define AUSF_CONFIG_STRING_INTERFACE_SBI_AUSF "SBI_AUSF"
//#define AUSF_CONFIG_STRING_INTERFACE_NUDM "NUDM"
//#define AUSF_CONFIG_STRING_INTERFACE_NAMF "NAMF"
#define AUSF_CONFIG_STRING_INTERFACE_NAME "INTERFACE_NAME"
#define AUSF_CONFIG_STRING_IPV4_ADDRESS "IPV4_ADDRESS"
#define AUSF_CONFIG_STRING_PORT "PORT"
...
...
@@ -94,8 +91,6 @@ class ausf_config {
std
::
string
ausf_name
;
interface_cfg_t
sbi
;
// interface_cfg_t nudm;
// interface_cfg_t namf;
struct
{
struct
in_addr
ipv4_addr
;
unsigned
int
port
;
...
...
src/common/ausf.h
View file @
e933c13f
...
...
@@ -74,4 +74,11 @@ static const std::vector<std::string> patch_op_type_e2str = {
#define MAX_WAIT_MSECS 20000 // 1 second
typedef
struct
{
uint8_t
rand
[
16
];
uint8_t
autn
[
16
];
uint8_t
hxresStar
[
16
];
uint8_t
kseaf
[
32
];
}
AUSF_AV_s
;
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment