From 2f169d64dd67427812760b94528555bf0cf1c8b4 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 10 Nov 2010 09:42:50 +0100 Subject: [PATCH] bsc_api: Make the cipher_mode take the 'include imei sv' argument The cipher mode command should enable encryption and send the right RR message to the other side. --- openbsc/include/openbsc/bsc_api.h | 2 +- openbsc/src/bsc_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsc/include/openbsc/bsc_api.h b/openbsc/include/openbsc/bsc_api.h index 206275263..a82b0aea2 100644 --- a/openbsc/include/openbsc/bsc_api.h +++ b/openbsc/include/openbsc/bsc_api.h @@ -29,7 +29,7 @@ int bsc_api_init(struct gsm_network *network, struct bsc_api *api); int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg, int link_id); int gsm0808_assign_req(struct gsm_subscriber_connection *conn, int chan_type, int audio); int gsm0808_cipher_mode(struct gsm_subscriber_connection *conn, int cipher, - uint8_t *key, int len); + const uint8_t *key, int len, int include_imeisv); int gsm0808_page(struct gsm_bts *bts, unsigned int page_group, unsigned int mi_len, uint8_t *mi, int chan_type); int gsm0808_clear(struct gsm_subscriber_connection *conn); diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c index c8ef4f4e5..0dcb72b27 100644 --- a/openbsc/src/bsc_api.c +++ b/openbsc/src/bsc_api.c @@ -317,7 +317,7 @@ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) } int gsm0808_cipher_mode(struct gsm_subscriber_connection *conn, int cipher, - uint8_t *key, int len) + const uint8_t *key, int len, int include_imeisv) { return -1; }