diff options
author | Max <msuraev@sysmocom.de> | 2016-06-27 16:19:12 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-06-29 16:33:57 +0000 |
commit | c57e5daf224476c20d34653fdb11d67ed7da9fed (patch) | |
tree | cd740be673f0da4bd378d27a776b5e76807f115e /include/osmocom | |
parent | eb59f241ec571c3bdfcd8b3fa25d8687a1191f39 (diff) |
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
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/crypt/gprs_cipher.h | 5 |
1 files changed, 3 insertions, 2 deletions
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[]; |