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.
diff --git a/openbsc/include/openbsc/bsc_api.h b/openbsc/include/openbsc/bsc_api.h
index 2062752..a82b0ae 100644
--- a/openbsc/include/openbsc/bsc_api.h
+++ b/openbsc/include/openbsc/bsc_api.h
@@ -29,7 +29,7 @@
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 c8ef4f4..0dcb72b 100644
--- a/openbsc/src/bsc_api.c
+++ b/openbsc/src/bsc_api.c
@@ -317,7 +317,7 @@
}
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;
}