Add Vendor-Specific-Application-Id in CER of SMF to advertise Gx application (#590)

This commit is contained in:
Supreeth Herle 2020-09-29 12:56:49 +02:00 committed by GitHub
parent 51b16a865b
commit a735aa1521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -1043,6 +1043,7 @@ int smf_fd_init(void)
{
int ret;
struct disp_when data;
struct dict_object * gx_app, * vnd;
if (smf_self()->diam_conf_path == NULL &&
(smf_self()->diam_config->cnf_diamid == NULL ||
@ -1059,6 +1060,26 @@ int smf_fd_init(void)
smf_self()->diam_conf_path, smf_self()->diam_config);
ogs_assert(ret == 0);
struct dict_vendor_data vnd_data;
vnd_data.vendor_id = 10415;
vnd_data.vendor_name = (char *) "3GPP";
ret = fd_dict_new(fd_g_config->cnf_dict,
DICT_VENDOR, &vnd_data, NULL, &vnd);
ogs_assert(ret == 0);
struct dict_application_data gx_app_data;
gx_app_data.application_id = 16777238;
gx_app_data.application_name = (char *) "Gx";
ret = fd_dict_new(fd_g_config->cnf_dict, DICT_APPLICATION,
&gx_app_data, NULL, &gx_app);
ogs_assert(ret == 0);
ret = fd_disp_app_support(gx_app, vnd, 1, 0);
ogs_assert(ret == 0);
/* Install objects definitions for this application */
ret = ogs_diam_gx_init();
ogs_assert(ret == 0);