From: Michael Tremer Date: Wed, 31 Aug 2022 10:35:10 +0000 (+0000) Subject: tests: downloader: Fix compiling test X-Git-Tag: 0.9.28~357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=727a20c9f86cef198d8427f4946dcc81f1d83a3b;p=pakfire.git tests: downloader: Fix compiling test Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/downloader.c b/tests/libpakfire/downloader.c index e6618801f..e8243d713 100644 --- a/tests/libpakfire/downloader.c +++ b/tests/libpakfire/downloader.c @@ -164,7 +164,7 @@ static int test_retrieve_online_with_digest(const struct test* t) { ASSERT_SUCCESS( pakfire_downloader_retrieve(d, NULL, NULL, NULL, "https://mirror1.ipfire.org/releases/pakfire/pakfire-0.9.27.tar.gz", - DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA256, expected_digest, sizeof(expected_digest), 0) + DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA2_256, expected_digest, sizeof(expected_digest), 0) ); // Everything passed @@ -188,7 +188,7 @@ static int test_retrieve_online_with_incorrect_digest(const struct test* t) { ASSERT_FAILURE( pakfire_downloader_retrieve(d, NULL, NULL, NULL, "https://mirror1.ipfire.org/releases/pakfire/pakfire-0.9.27.tar.gz", - DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA256, incorrect_digest, sizeof(incorrect_digest), 0) + DOWNLOAD_PATH, PAKFIRE_DIGEST_SHA2_256, incorrect_digest, sizeof(incorrect_digest), 0) ); // Everything passed