mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-02 04:53:37 +00:00
@@ -233,12 +233,18 @@ uint64_t ogs_uint64_from_string(char *str)
|
||||
|
||||
void ogs_extract_digit_from_string(char *digit, char *string)
|
||||
{
|
||||
bool extracting = false;
|
||||
|
||||
ogs_assert(string);
|
||||
ogs_assert(digit);
|
||||
|
||||
while(*string) {
|
||||
if (*string >= '0' && *string <= '9')
|
||||
while (*string) {
|
||||
if (*string >= '0' && *string <= '9') {
|
||||
*digit++ = *string;
|
||||
extracting = true;
|
||||
} else if (extracting == true) {
|
||||
break;
|
||||
}
|
||||
string++;
|
||||
}
|
||||
|
||||
|
||||
@@ -313,8 +313,10 @@ static int hss_ogs_diam_cx_mar_cb( struct msg **msg, struct avp *avp,
|
||||
|
||||
/* IMS_AKA is only supported */
|
||||
if (authentication_scheme &&
|
||||
strcmp(authentication_scheme, OGS_DIAM_CX_AUTH_SCHEME_IMS_AKA) != 0 &&
|
||||
strcmp(authentication_scheme, OGS_DIAM_CX_AUTH_SCHEME_UNKNOWN) != 0) {
|
||||
ogs_strcasecmp(authentication_scheme,
|
||||
OGS_DIAM_CX_AUTH_SCHEME_IMS_AKA) != 0 &&
|
||||
ogs_strcasecmp(authentication_scheme,
|
||||
OGS_DIAM_CX_AUTH_SCHEME_UNKNOWN) != 0) {
|
||||
ogs_error("Authentication-Scheme[%s] is not supported",
|
||||
authentication_scheme);
|
||||
result_code = OGS_DIAM_CX_ERROR_AUTH_SCHEME_NOT_SUPPORTED;
|
||||
|
||||
Reference in New Issue
Block a user