diff options
Diffstat (limited to 'src/plugins/unittest/crypto/crypto.h')
-rw-r--r-- | src/plugins/unittest/crypto/crypto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/unittest/crypto/crypto.h b/src/plugins/unittest/crypto/crypto.h index 5e09a3ab0ec..90f75dbcfac 100644 --- a/src/plugins/unittest/crypto/crypto.h +++ b/src/plugins/unittest/crypto/crypto.h @@ -61,6 +61,10 @@ typedef struct extern crypto_test_main_t crypto_test_main; #define TEST_DATA(n) { .data = (u8 *) n, .length = sizeof (n)} +#define TEST_DATA_STR(n) \ + { \ + .data = (u8 *) n, .length = sizeof (n) - 1 \ + } #define TEST_DATA_CHUNK(s,off,n) { .data = (u8 *) s + off, .length = n} #define UNITTEST_REGISTER_CRYPTO_TEST(x) \ |