summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/protocol
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-07-05 16:06:28 +0200
committerHarald Welte <laforge@gnumonks.org>2016-07-07 12:55:46 +0000
commitfdca25dfb881871ffb4142bd1bcd808c71e6c4e3 (patch)
tree33d0ef8f6f217d71e815c2cea51f842c31d0333b /include/osmocom/gsm/protocol
parentae3b78076e580b6060cde2e4612b8bcf459de832 (diff)
Add function to check GMM encryptability
Check if particular GMM message can be encrypted according to 3GPP TS 24.008 ยง 4.7.1.2 Related: OS#1582 Change-Id: I7ad0e03c2c738d174dd6bc3453f332eeb8da1e7d
Diffstat (limited to 'include/osmocom/gsm/protocol')
-rw-r--r--include/osmocom/gsm/protocol/gsm_04_08.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h
index 074c2589..e442c7f9 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08.h
@@ -6,7 +6,6 @@
#include <osmocom/core/utils.h>
#include <osmocom/core/endian.h>
-
/* GSM TS 04.08 definitions */
struct gsm_lchan;
@@ -925,6 +924,8 @@ struct gsm48_rr_status {
#define GSM48_PDISC_MASK 0x0f
#define GSM48_PDISC_USSD 0x11
+bool gsm48_hdr_gmm_cipherable(const struct gsm48_hdr *hdr);
+
static inline uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
{
/*