mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
[Release-17] Upgrade SBI to v17.x.0
This commit is contained in:
parent
969c116e77
commit
4d44b1843e
1687 changed files with 121604 additions and 9310 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
char* OpenAPI_auth_method_ToString(OpenAPI_auth_method_e auth_method)
|
||||
{
|
||||
const char *auth_methodArray[] = { "NULL", "5G_AKA", "EAP_AKA_PRIME", "EAP_TLS" };
|
||||
const char *auth_methodArray[] = { "NULL", "5G_AKA", "EAP_AKA_PRIME", "EAP_TLS", "EAP_TTLS", "NONE" };
|
||||
size_t sizeofArray = sizeof(auth_methodArray) / sizeof(auth_methodArray[0]);
|
||||
if (auth_method < sizeofArray)
|
||||
return (char *)auth_methodArray[auth_method];
|
||||
|
|
@ -17,7 +17,7 @@ char* OpenAPI_auth_method_ToString(OpenAPI_auth_method_e auth_method)
|
|||
OpenAPI_auth_method_e OpenAPI_auth_method_FromString(char* auth_method)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *auth_methodArray[] = { "NULL", "5G_AKA", "EAP_AKA_PRIME", "EAP_TLS" };
|
||||
const char *auth_methodArray[] = { "NULL", "5G_AKA", "EAP_AKA_PRIME", "EAP_TLS", "EAP_TTLS", "NONE" };
|
||||
size_t sizeofArray = sizeof(auth_methodArray) / sizeof(auth_methodArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(auth_method, auth_methodArray[stringToReturn]) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue