[PATCH] Add return value to indicate unsopported cipher

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Sylvain Munaut 246tnt at gmail.com
Thu Nov 29 15:07:39 UTC 2012


Hi,

> Right now there's no way for user of osmo_a5(..) to understand if particular cipher
> (a5/3 for example) is supported or not.

Indeed ..


> Attached patch adds simple return value to osmo_a5 to fix that.
> Of course I would rather see a5/3 included into mainline but in a meantime this patch
> might be useful too :)

mmm, the "osmocom" usual way is to return 0 for success and a negative
error, in this case -ENOTSUP would be perfect.

true/false is more a C++ thing :p


Cheers,

    Sylvain




More information about the baseband-devel mailing list