X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Funittest%2Fcrypto%2Fcrypto.h;h=90f75dbcfac10c3aa8771b63202d3e3d355106eb;hb=84e665848;hp=5e09a3ab0ec00985af699ea638e9455a66894d48;hpb=96600f907743729d25be38db292e093279e97d54;p=vpp.git 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) \