dep-libtomcrypt/tests/no_null_termination_check_test.c
Steffen Jaeckel 13dc1f4fa2 add test-case that uses LTC_NO_NULL_TERMINATION_CHECK
It's a compile-only test, but we run it anyways so we can finally get
`crypt_fsa()` included in the coverage report. It's not really useful but
also doesn't hurt.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2022-09-02 11:30:45 +02:00

12 lines
341 B
C

/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
#define LTC_NO_NULL_TERMINATION_CHECK
#include "tomcrypt.h"
#define NNTCT_NULL ((void *)0)
int no_null_termination_check_test(void)
{
return crypt_fsa(NNTCT_NULL, NNTCT_NULL, NNTCT_NULL, NNTCT_NULL, NNTCT_NULL, NNTCT_NULL, 0);
}