[PATCH 4/4] Add --disable-hwf for basic tests
Jussi Kivilinna
jussi.kivilinna at iki.fi
Fri May 1 15:08:12 CEST 2015
* tests/basic.c (main): Add handling for '--disable-hwf'.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
tests/basic.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/basic.c b/tests/basic.c
index 8400f9e..2cf8dd0 100644
--- a/tests/basic.c
+++ b/tests/basic.c
@@ -8028,6 +8028,21 @@ main (int argc, char **argv)
argc--; argv++;
}
}
+ else if (!strcmp (*argv, "--disable-hwf"))
+ {
+ argc--;
+ argv++;
+ if (argc)
+ {
+ if (gcry_control (GCRYCTL_DISABLE_HWF, *argv, NULL))
+ fprintf (stderr,
+ PGM
+ ": unknown hardware feature `%s' - option ignored\n",
+ *argv);
+ argc--;
+ argv++;
+ }
+ }
}
gcry_control (GCRYCTL_SET_VERBOSITY, (int)verbose);
More information about the Gcrypt-devel
mailing list