From fdb3d8ce7898801d5b18d446a17ccc0f09451d4f Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 21 Apr 2016 16:51:04 +0200 Subject: Deprecate osmo_a5_1 and osmo_a5_2 Mark the functions as deprecated to discourage their use: people should use unified osmo_a5 which supports all the A5/1-4 ciphers. --- include/osmocom/gsm/a5.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/osmocom') diff --git a/include/osmocom/gsm/a5.h b/include/osmocom/gsm/a5.h index d22cdbbb..a2278f22 100644 --- a/include/osmocom/gsm/a5.h +++ b/include/osmocom/gsm/a5.h @@ -24,6 +24,7 @@ #include +#include #include /*! \defgroup a5 GSM A5 ciphering algorithm @@ -54,7 +55,7 @@ osmo_a5_fn_count(uint32_t fn) * (converted internally to fn_count) */ 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); +void osmo_a5_1(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) OSMO_DEPRECATED("Use generic osmo_a5() instead"); +void osmo_a5_2(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) OSMO_DEPRECATED("Use generic osmo_a5() instead"); /*! @} */ -- cgit v1.2.3