mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
Added N32 Interface to implement SEPP
This commit is contained in:
parent
a8790713d7
commit
e41afff7ac
63 changed files with 5503 additions and 290 deletions
30
lib/sbi/openapi/model/security_capability_any_of.c
Normal file
30
lib/sbi/openapi/model/security_capability_any_of.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "security_capability_any_of.h"
|
||||
|
||||
char* OpenAPI_security_capability_any_of_ToString(OpenAPI_security_capability_any_of_e security_capability_any_of)
|
||||
{
|
||||
const char *security_capability_any_ofArray[] = { "NULL", "TLS", "PRINS", "NONE" };
|
||||
size_t sizeofArray = sizeof(security_capability_any_ofArray) / sizeof(security_capability_any_ofArray[0]);
|
||||
if (security_capability_any_of < sizeofArray)
|
||||
return (char *)security_capability_any_ofArray[security_capability_any_of];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_security_capability_any_of_e OpenAPI_security_capability_any_of_FromString(char* security_capability_any_of)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *security_capability_any_ofArray[] = { "NULL", "TLS", "PRINS", "NONE" };
|
||||
size_t sizeofArray = sizeof(security_capability_any_ofArray) / sizeof(security_capability_any_ofArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(security_capability_any_of, security_capability_any_ofArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue