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