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

2018-07-06 Thread Pau Espin Pedrol
Pau Espin Pedrol has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/01/9901/1

diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h 
b/include/osmocom/gsm/protocol/gsm_08_08.h
index db5f7fa..c007d2b 100644
--- a/include/osmocom/gsm/protocol/gsm_08_08.h
+++ b/include/osmocom/gsm/protocol/gsm_08_08.h
@@ -459,6 +459,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 625de81..e3f4efe 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -1153,6 +1153,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 96779d2..e1486b7 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -201,6 +201,7 @@
 gsm0808_chan_type_to_speech_codec;
 gsm0808_speech_codec_from_chan_type;
 gsm0808_speech_codec_type_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: newchange
Gerrit-Change-Id: Iadf6460c438d02c53c2eaa9e42d51844ad28859a
Gerrit-Change-Number: 9901
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 


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

2018-07-11 Thread Harald Welte
Harald Welte has posted comments on this change. ( 
https://gerrit.osmocom.org/9901 )

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


Patch Set 1: Code-Review+2


--
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: comment
Gerrit-Change-Id: Iadf6460c438d02c53c2eaa9e42d51844ad28859a
Gerrit-Change-Number: 9901
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Wed, 11 Jul 2018 20:06:57 +
Gerrit-HasComments: No
Gerrit-HasLabels: Yes


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

2018-07-12 Thread Pau Espin Pedrol
Hello Harald Welte, Jenkins Builder,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/9901

to look at the new patch set (#3).

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(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/01/9901/3
--
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: newpatchset
Gerrit-Change-Id: Iadf6460c438d02c53c2eaa9e42d51844ad28859a
Gerrit-Change-Number: 9901
Gerrit-PatchSet: 3
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Jenkins Builder


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

2018-07-12 Thread Harald Welte
Harald Welte has posted comments on this change. ( 
https://gerrit.osmocom.org/9901 )

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


Patch Set 3: Code-Review+2


--
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: comment
Gerrit-Change-Id: Iadf6460c438d02c53c2eaa9e42d51844ad28859a
Gerrit-Change-Number: 9901
Gerrit-PatchSet: 3
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Fri, 13 Jul 2018 04:59:27 +
Gerrit-HasComments: No
Gerrit-HasLabels: Yes


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

2018-07-13 Thread Pau Espin Pedrol
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 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol