[PATCH 4/8] oap: implement initial OAP API.

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/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Mon Oct 12 09:16:13 UTC 2015


On Fri, Oct 09, 2015 at 12:25:15AM +0200, Neels Hofmeyr wrote:
> On Wed, Oct 07, 2015 at 07:16:58PM +0200, Holger Freyther wrote:
> > > +static int oap_evaluate_challenge(const struct oap_state *state,
> > > +				  const uint8_t *rx_random,
> > > +				  const uint8_t *rx_autn,
> > > +				  uint8_t *tx_xres)
> > > +{
> > > 
> > > +	OSMO_ASSERT(sizeof(auth.u.umts.k) == sizeof(state->secret_k));
> > > +	OSMO_ASSERT(sizeof(auth.u.umts.opc) == sizeof(state->secret_opc));
> > 
> > static assert?

For the record: see osmo_static_assert() in libosmocore's utils.h.

~Neels

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20151012/2dd6dce9/attachment.bin>


More information about the OpenBSC mailing list