From c1e9be95c20fb0517efcd5746e38fc95b4d9da14 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Thu, 6 Dec 2012 08:23:02 +0100 Subject: gsm/a5: Return -ENOTSUP if the selected cipher is not supported Extracted from a patch by Max Suraev Max.Suraev@fairwaves.ru> Signed-off-by: Sylvain Munaut --- include/osmocom/gsm/a5.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/osmocom/gsm') diff --git a/include/osmocom/gsm/a5.h b/include/osmocom/gsm/a5.h index 649dbab1..2f78a92b 100644 --- a/include/osmocom/gsm/a5.h +++ b/include/osmocom/gsm/a5.h @@ -54,7 +54,7 @@ osmo_a5_fn_count(uint32_t fn) * - fn is the _real_ GSM frame number. * (converted internally to fn_count) */ -void osmo_a5(int n, const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul); +int osmo_a5(int n, const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul); void osmo_a5_1(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul); void osmo_a5_2(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul); -- cgit v1.2.3