* tests/nlattr_crypto_user_alg.c (main): Check decoding of CRYPTOCFGA_REPORT_HASH attribute. --- tests/nlattr_crypto_user_alg.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/tests/nlattr_crypto_user_alg.c b/tests/nlattr_crypto_user_alg.c index 79822eb..5c51aa8 100644 --- a/tests/nlattr_crypto_user_alg.c +++ b/tests/nlattr_crypto_user_alg.c @@ -91,6 +91,22 @@ main(void) pattern, rl, print_quoted_nul_string, printf("{type=\"abcd\"}")); +#ifdef HAVE_STRUCT_CRYPTO_REPORT_HASH + struct crypto_report_hash rhash = { + .type = "efgh", + .blocksize = 0xabcdefdc, + .digestsize = 0xfebcdacd + }; + TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, + init_crypto_user_alg, print_crypto_user_alg, + CRYPTOCFGA_REPORT_HASH, + pattern, rhash, print_quoted_memory, + printf("{type=\"efgh\""); + PRINT_FIELD_U(", ", rhash, blocksize); + PRINT_FIELD_U(", ", rhash, digestsize); + printf("}")); +#endif + puts("+++ exited with 0 +++"); return 0; } -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel