Change in libosmocore[master]: gsm0808: Add value_string for encryption algorithms

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Jul 13 09:33:11 UTC 2018


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/9901 )

Change subject: gsm0808: Add value_string for encryption algorithms
......................................................................

gsm0808: Add value_string for encryption algorithms

Change-Id: Iadf6460c438d02c53c2eaa9e42d51844ad28859a
---
M include/osmocom/gsm/protocol/gsm_08_08.h
M src/gsm/gsm0808.c
M src/gsm/libosmogsm.map
3 files changed, 14 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h
index bd5705f..69007b5 100644
--- a/include/osmocom/gsm/protocol/gsm_08_08.h
+++ b/include/osmocom/gsm/protocol/gsm_08_08.h
@@ -463,6 +463,7 @@
 	GSM0808_ALG_ID_A5_6	= 0x07,
 	GSM0808_ALG_ID_A5_7	= 0x08,
 };
+extern const struct value_string gsm0808_chosen_enc_alg_names[];
 
 /* GSM 08.08 3.2.2.85 Paging Information */
 enum gsm0808_paging_info {
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index a26addd..a90aa22 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -1167,6 +1167,18 @@
 	{ 0, NULL }
 };
 
+const struct value_string gsm0808_chosen_enc_alg_names[] = {
+	{ GSM0808_ALG_ID_A5_0, "A5/0" },
+	{ GSM0808_ALG_ID_A5_1, "A5/1" },
+	{ GSM0808_ALG_ID_A5_2, "A5/2" },
+	{ GSM0808_ALG_ID_A5_3, "A5/3" },
+	{ GSM0808_ALG_ID_A5_4, "A5/4" },
+	{ GSM0808_ALG_ID_A5_5, "A5/5" },
+	{ GSM0808_ALG_ID_A5_6, "A5/6" },
+	{ GSM0808_ALG_ID_A5_7, "A5/7" },
+	{ 0, NULL }
+};
+
 static const struct value_string gsm0808_cause_names[] = {
 	{ GSM0808_CAUSE_RADIO_INTERFACE_MESSAGE_FAILURE, "RADIO INTERFACE MESSAGE FAILURE" },
 	{ GSM0808_CAUSE_RADIO_INTERFACE_FAILURE, "RADIO INTERFACE FAILURE" },
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 5eed5b5..3b403c2 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -202,6 +202,7 @@
 gsm0808_speech_codec_from_chan_type;
 gsm0808_speech_codec_type_names;
 gsm0808_permitted_speech_names;
+gsm0808_chosen_enc_alg_names;
 gsm0808_channel_type_name;
 gsm0808_lcls_config_names;
 gsm0808_lcls_control_names;

-- 
To view, visit https://gerrit.osmocom.org/9901
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iadf6460c438d02c53c2eaa9e42d51844ad28859a
Gerrit-Change-Number: 9901
Gerrit-PatchSet: 3
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180713/a6d60875/attachment.htm>


More information about the gerrit-log mailing list