Projects
osmocom:master
open5gs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 357
View file
commit_5061a3aec0422b91c025537225e860c87e6999a0.txt
Deleted
View file
commit_7728172a835d584c6b4c75c03917b5b7cd96c4db.txt
Added
View file
open5gs_2.7.0.14.5061a.dsc -> open5gs_2.7.0.16.77281.dsc
Changed
@@ -2,7 +2,7 @@ Source: open5gs Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-sepp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg Architecture: any -Version: 2.7.0.14.5061a +Version: 2.7.0.16.77281 Maintainer: Harald Welte <laforge@gnumonks.org> Uploaders: Sukchan Lee <acetcom@gmail.com> Homepage: https://open5gs.org @@ -32,8 +32,8 @@ open5gs-udr deb net optional arch=any open5gs-upf deb net optional arch=any Checksums-Sha1: - 1a66190dc5ad53b4d71156c054480dcd6100701d 14460220 open5gs_2.7.0.14.5061a.tar.xz + 7bcada54a4c4faa53a4a552ecf240d6ea4af7de4 14460332 open5gs_2.7.0.16.77281.tar.xz Checksums-Sha256: - b1c4fd7ae9894357b8304c04b89687ddaf7b88c9fbe7240b76775ed8f78af402 14460220 open5gs_2.7.0.14.5061a.tar.xz + c2d2377b3625596231518856919250477e08ee0117c45844fad7579163016b39 14460332 open5gs_2.7.0.16.77281.tar.xz Files: - a4809a9e81f7c133e0f0bd79cc7f51f4 14460220 open5gs_2.7.0.14.5061a.tar.xz + 8bb5870f0415c3889d675316987d9ff7 14460332 open5gs_2.7.0.16.77281.tar.xz
View file
open5gs_2.7.0.14.5061a.tar.xz/.tarball-version -> open5gs_2.7.0.16.77281.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.7.0.14-5061a +2.7.0.16-77281
View file
open5gs_2.7.0.14.5061a.tar.xz/debian/changelog -> open5gs_2.7.0.16.77281.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.7.0.14.5061a) unstable; urgency=medium +open5gs (2.7.0.16.77281) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Mon, 18 Dec 2023 22:42:02 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Wed, 20 Dec 2023 12:03:55 +0000 open5gs (2.7.0) unstable; urgency=medium
View file
open5gs_2.7.0.14.5061a.tar.xz/lib/crypt/ogs-kdf.c -> open5gs_2.7.0.16.77281.tar.xz/lib/crypt/ogs-kdf.c
Changed
@@ -36,12 +36,12 @@ #define FC_FOR_EPS_ALGORITHM_KEY_DERIVATION 0x15 typedef struct kdf_param_s { - uint8_t *buf; + const uint8_t *buf; uint16_t len; } kdf_param_tMAX_NUM_OF_KDF_PARAM; /* KDF function : TS.33220 cluase B.2.0 */ -static void ogs_kdf_common(uint8_t *key, uint32_t key_size, +static void ogs_kdf_common(const uint8_t *key, uint32_t key_size, uint8_t fc, kdf_param_t param, uint8_t *output) { int i = 0, pos; @@ -164,7 +164,7 @@ } /* TS33.501 Annex A.6 : Kseaf derivation function */ -void ogs_kdf_kseaf(char *serving_network_name, uint8_t *kausf, uint8_t *kseaf) +void ogs_kdf_kseaf(char *serving_network_name, const uint8_t *kausf, uint8_t *kseaf) { kdf_param_t param; @@ -181,10 +181,11 @@ } /* TS33.501 Annex A.7 : Kamf derivation function */ -void ogs_kdf_kamf(char *supi, uint8_t *abba, uint8_t abba_len, - uint8_t *kseaf, uint8_t *kamf) +void ogs_kdf_kamf(const char *supi, const uint8_t *abba, uint8_t abba_len, + const uint8_t *kseaf, uint8_t *kamf) { kdf_param_t param; + char *val; ogs_assert(supi); ogs_assert(abba); @@ -192,22 +193,23 @@ ogs_assert(kseaf); ogs_assert(kamf); + val = ogs_id_get_value(supi); memset(param, 0, sizeof(param)); - param0.buf = (uint8_t *)ogs_id_get_value(supi); + param0.buf = (const uint8_t*) val; ogs_assert(param0.buf); - param0.len = strlen((char *)param0.buf); + param0.len = strlen(val); param1.buf = abba; param1.len = abba_len; ogs_kdf_common(kseaf, OGS_SHA256_DIGEST_SIZE, FC_FOR_KAMF_DERIVATION, param, kamf); - ogs_free(param0.buf); + ogs_free(val); } /* TS33.501 Annex A.8 : Algorithm key derivation functions */ void ogs_kdf_nas_5gs(uint8_t algorithm_type_distinguishers, - uint8_t algorithm_identity, uint8_t *kamf, uint8_t *knas) + uint8_t algorithm_identity, const uint8_t *kamf, uint8_t *knas) { kdf_param_t param; uint8_t outputOGS_SHA256_DIGEST_SIZE; @@ -227,7 +229,7 @@ } /* TS33.501 Annex A.9 KgNB and Kn3iwf derivation function */ -void ogs_kdf_kgnb_and_kn3iwf(uint8_t *kamf, uint32_t ul_count, +void ogs_kdf_kgnb_and_kn3iwf(const uint8_t *kamf, uint32_t ul_count, uint8_t access_type_distinguisher, uint8_t *kgnb) { kdf_param_t param; @@ -247,7 +249,7 @@ } /* TS33.501 Annex A.10 NH derivation function */ -void ogs_kdf_nh_gnb(uint8_t *kamf, uint8_t *sync_input, uint8_t *kgnb) +void ogs_kdf_nh_gnb(const uint8_t *kamf, uint8_t *sync_input, uint8_t *kgnb) { kdf_param_t param; @@ -268,7 +270,7 @@ * ANSI-X9.63-KDF */ void ogs_kdf_ansi_x963( - uint8_t *z, size_t z_len, uint8_t *info, size_t info_len, + const uint8_t *z, size_t z_len, const uint8_t *info, size_t info_len, uint8_t *ek, uint8_t *icb, uint8_t *mk) { uint8_t inputECC_BYTES+4+ECC_BYTES+1; @@ -333,7 +335,7 @@ } /* TS33.401 Annex A.3 KeNB derivation function */ -void ogs_kdf_kenb(uint8_t *kasme, uint32_t ul_count, uint8_t *kenb) +void ogs_kdf_kenb(const uint8_t *kasme, uint32_t ul_count, uint8_t *kenb) { kdf_param_t param; @@ -347,7 +349,7 @@ } /* TS33.401 Annex A.4 NH derivation function */ -void ogs_kdf_nh_enb(uint8_t *kasme, uint8_t *sync_input, uint8_t *kenb) +void ogs_kdf_nh_enb(const uint8_t *kasme, const uint8_t *sync_input, uint8_t *kenb) { kdf_param_t param; @@ -361,7 +363,7 @@ /* TS33.401 Annex A.7 Algorithm key derivation functions */ void ogs_kdf_nas_eps(uint8_t algorithm_type_distinguishers, - uint8_t algorithm_identity, uint8_t *kasme, uint8_t *knas) + uint8_t algorithm_identity, const uint8_t *kasme, uint8_t *knas) { kdf_param_t param; uint8_t outputOGS_SHA256_DIGEST_SIZE; @@ -381,7 +383,7 @@ * TS33.401 Annex I Hash Functions * Use the KDF given in TS33.220 */ -void ogs_kdf_hash_mme(uint8_t *message, uint8_t message_len, uint8_t *hash_mme) +void ogs_kdf_hash_mme(const uint8_t *message, uint8_t message_len, uint8_t *hash_mme) { uint8_t key32; uint8_t outputOGS_SHA256_DIGEST_SIZE;
View file
open5gs_2.7.0.14.5061a.tar.xz/lib/crypt/ogs-kdf.h -> open5gs_2.7.0.16.77281.tar.xz/lib/crypt/ogs-kdf.h
Changed
@@ -45,11 +45,11 @@ void ogs_kdf_hxres_star(uint8_t *rand, uint8_t *xres_star, uint8_t *hxres_star); /* TS33.501 Annex A.6 : Kseaf derivation function */ -void ogs_kdf_kseaf(char *serving_network_name, uint8_t *kausf, uint8_t *kseaf); +void ogs_kdf_kseaf(char *serving_network_name, const uint8_t *kausf, uint8_t *kseaf); /* TS33.501 Annex A.7 : Kamf derivation function */ -void ogs_kdf_kamf(char *supi, uint8_t *abba, uint8_t abba_len, - uint8_t *kseaf, uint8_t *kamf); +void ogs_kdf_kamf(const char *supi, const uint8_t *abba, uint8_t abba_len, + const uint8_t *kseaf, uint8_t *kamf); /* Algorithm Type Distinguishers */ #define OGS_KDF_NAS_ENC_ALG 0x01 @@ -68,14 +68,14 @@ /* TS33.501 Annex A.8 : Algorithm key derivation functions */ void ogs_kdf_nas_5gs(uint8_t algorithm_type_distinguishers, - uint8_t algorithm_identity, uint8_t *kamf, uint8_t *knas); + uint8_t algorithm_identity, const uint8_t *kamf, uint8_t *knas); /* TS33.501 Annex A.9 KgNB and Kn3iwf derivation function */ -void ogs_kdf_kgnb_and_kn3iwf(uint8_t *kamf, uint32_t ul_count, +void ogs_kdf_kgnb_and_kn3iwf(const uint8_t *kamf, uint32_t ul_count, uint8_t access_type_distinguisher, uint8_t *kgnb); /* TS33.501 Annex A.10 NH derivation function */ -void ogs_kdf_nh_gnb(uint8_t *kamf, uint8_t *sync_input, uint8_t *kgnb); +void ogs_kdf_nh_gnb(const uint8_t *kamf, uint8_t *sync_input, uint8_t *kgnb); /* * TS33.501 Annex C.3.4.1 Profile A @@ -83,29 +83,29 @@ * ANSI-X9.63-KDF */ void ogs_kdf_ansi_x963( - uint8_t *z, size_t z_len, uint8_t *info, size_t info_len, + const uint8_t *z, size_t z_len, const uint8_t *info, size_t info_len, uint8_t *ek, uint8_t *icb, uint8_t *mk); /* TS33.401 Annex A.2 KASME derivation function */ -void ogs_auc_kasme(const uint8_t *ck, const uint8_t *ik, +void ogs_auc_kasme(const uint8_t *ck, const uint8_t *ik, const uint8_t *plmn_id, const uint8_t *sqn, const uint8_t *ak, uint8_t *kasme); /* TS33.401 Annex A.3 KeNB derivation function */ -void ogs_kdf_kenb(uint8_t *kasme, uint32_t ul_count, uint8_t *kenb); +void ogs_kdf_kenb(const uint8_t *kasme, uint32_t ul_count, uint8_t *kenb); /* TS33.401 Annex A.4 NH derivation function */ -void ogs_kdf_nh_enb(uint8_t *kasme, uint8_t *sync_input, uint8_t *kenb); +void ogs_kdf_nh_enb(const uint8_t *kasme, const uint8_t *sync_input, uint8_t *kenb); /* TS33.401 Annex A.7 Algorithm key derivation functions */ void ogs_kdf_nas_eps(uint8_t algorithm_type_distinguishers, - uint8_t algorithm_identity, uint8_t *kasme, uint8_t *knas); + uint8_t algorithm_identity, const uint8_t *kasme, uint8_t *knas); /* * TS33.401 Annex I Hash Functions * Use the KDF given in TS33.220 */ -void ogs_kdf_hash_mme(uint8_t *message, uint8_t message_len, uint8_t *hash_mme); +void ogs_kdf_hash_mme(const uint8_t *message, uint8_t message_len, uint8_t *hash_mme); /* * TS33.102
View file
open5gs_2.7.0.14.5061a.tar.xz/lib/proto/types.c -> open5gs_2.7.0.16.77281.tar.xz/lib/proto/types.c
Changed
@@ -305,7 +305,7 @@ return amf_id; } -char *ogs_id_get_type(char *str) +char *ogs_id_get_type(const char *str) { char *token, *p, *tmp; char *type = NULL; @@ -335,7 +335,7 @@ return type; } -char *ogs_id_get_value(char *str) +char *ogs_id_get_value(const char *str) { char *token, *p, *tmp; char *ueid = NULL;
View file
open5gs_2.7.0.14.5061a.tar.xz/lib/proto/types.h -> open5gs_2.7.0.16.77281.tar.xz/lib/proto/types.h
Changed
@@ -273,8 +273,8 @@ #define OGS_ID_SUPI_TYPE_IMSI "imsi" #define OGS_ID_GPSI_TYPE_MSISDN "msisdn" #define OGS_ID_SUPI_TYPE_IMEISV "imeisv" -char *ogs_id_get_type(char *str); -char *ogs_id_get_value(char *str); +char *ogs_id_get_type(const char *str); +char *ogs_id_get_value(const char *str); /************************************ * TAI Structure */
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.