From a5030205755e6f124844ac919a90a2c83bcf64dd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 May 2026 17:49:05 +0200 Subject: Setup alarms in the Argon2 tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- argon2/hash.c | 2 ++ argon2/is_algorithm.c | 2 ++ argon2/make_settings.c | 2 ++ argon2/test_supported.c | 2 ++ 4 files changed, 8 insertions(+) (limited to 'argon2') diff --git a/argon2/hash.c b/argon2/hash.c index ff4a4f8..cf83907 100644 --- a/argon2/hash.c +++ b/argon2/hash.c @@ -28,6 +28,8 @@ librecrypt__argon2__hash(char *restrict out_buffer, size_t size, const char *phr CONST int main(void) { + SET_UP_ALARM(); + return 0; } diff --git a/argon2/is_algorithm.c b/argon2/is_algorithm.c index 96a889a..a725f44 100644 --- a/argon2/is_algorithm.c +++ b/argon2/is_algorithm.c @@ -26,6 +26,8 @@ IF__argon2ds__SUPPORTED(DECLARE_IS_ALGORITHM(argon2ds)) int main(void) { + SET_UP_ALARM(); + #if defined(SUPPORT_ARGON2I) CHECK(argon2i, "", "", 0u); CHECK(argon2i, "$argon2$", "", 0u); diff --git a/argon2/make_settings.c b/argon2/make_settings.c index 33c13a4..94ee5ae 100644 --- a/argon2/make_settings.c +++ b/argon2/make_settings.c @@ -58,6 +58,8 @@ IF__argon2ds__SUPPORTED(DECLARE_MAKE_SETTINGS(argon2ds)) CONST int main(void) { + SET_UP_ALARM(); + return 0; } diff --git a/argon2/test_supported.c b/argon2/test_supported.c index 1589191..4c40ee6 100644 --- a/argon2/test_supported.c +++ b/argon2/test_supported.c @@ -51,6 +51,8 @@ librecrypt__argon2__test_supported(const char *phrase, size_t len, int text, con CONST int main(void) { + SET_UP_ALARM(); + return 0; } -- cgit v1.2.3-70-g09d2