From c57e5daf224476c20d34653fdb11d67ed7da9fed Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 27 Jun 2016 16:19:12 +0200 Subject: Clarify GPRS ciphering direction Add spec reference and set explicit values for enum representing direction parameter for GPRS encryption. Change-Id: Iaf1b13da2e889d55cc9dd7516710104dba48c992 Related: OS#1582 --- include/osmocom/crypt/gprs_cipher.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/osmocom') diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h index 9d98f88a..2639293c 100644 --- a/include/osmocom/crypt/gprs_cipher.h +++ b/include/osmocom/crypt/gprs_cipher.h @@ -14,9 +14,10 @@ enum gprs_ciph_algo { _GPRS_ALGO_NUM }; +/* 3GPP TS 04.64 Table A.1: */ enum gprs_cipher_direction { - GPRS_CIPH_MS2SGSN, - GPRS_CIPH_SGSN2MS, + GPRS_CIPH_MS2SGSN = 0, + GPRS_CIPH_SGSN2MS = 1, }; extern const struct value_string gprs_cipher_names[]; -- cgit v1.2.3