diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-14 03:50:26 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-14 21:39:49 +0100 |
commit | 8c6301cf0d6405d13cdb426bfea2ddb13ca64b70 (patch) | |
tree | 66ae74d52fcd422e202ff27cd7ae355edb63a248 /src | |
parent | 64c2920620291957147d75aa39bc5691e2cd9e1c (diff) |
debug log: log Cipher Mode info upon sending down RSL/A-bis
Change-Id: I7f7ec44887f6b40fdce8d348e9e9bd200fe0b689
Diffstat (limited to 'src')
-rw-r--r-- | src/libbsc/bsc_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libbsc/bsc_api.c b/src/libbsc/bsc_api.c index 5ba2cde7a..845b1b703 100644 --- a/src/libbsc/bsc_api.c +++ b/src/libbsc/bsc_api.c @@ -32,6 +32,7 @@ #include <osmocom/bsc/debug.h> #include <osmocom/bsc/trau_mux.h> #include <osmocom/bsc/gsm_04_08_utils.h> +#include <osmocom/bsc/bsc_subscriber.h> #include <osmocom/gsm/protocol/gsm_08_08.h> #include <osmocom/gsm/gsm48.h> @@ -730,6 +731,9 @@ int gsm0808_cipher_mode(struct gsm_subscriber_connection *conn, int cipher, return -1; } + LOGP(DRSL, LOGL_DEBUG, "(subscr %s) Cipher Mode: cipher=%d key=%s include_imeisv=%d\n", + bsc_subscr_name(conn->bsub), cipher, osmo_hexdump_nospc(key, len), include_imeisv); + conn->lchan->encr.alg_id = RSL_ENC_ALG_A5(cipher); if (key) { conn->lchan->encr.key_len = len; |