[LTP] [PATCH 2/2] keyctl05: TCONF on FIPS mode

Petr Vorel
2021-02-12T19:10:14Z

Hi Cyril,

> Hi!
> > + int is_asymmetric = !strcmp(type, "asymmetric");
> > +
> > TEST(add_key(type, "desc", payload, plen, KEY_SPEC_SESSION_KEYRING));
> > if (TST_RET < 0) {
> > + if (TST_ERR == EINVAL && is_asymmetric && tst_fips_enabled()) {
> ^
> I guess that
> we can save
> the value in
> test setup
> instead of
> re-reading it
> on every
> iteration.

> Other than that it looks good to me.
Good point, thanks! Moved to variable set at setup and merged.

> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

Kind regards,
Petr