test-journal-verify: replace HAVE_GCRYPT ifdef with journal_auth_supported()
This commit is contained in:
@@ -190,10 +190,9 @@ int main(int argc, char *argv[]) {
|
||||
ASSERT_OK_ERRNO(setenv("SYSTEMD_JOURNAL_COMPACT", "1", 1));
|
||||
run_test(verification_key, max_iterations);
|
||||
|
||||
#if HAVE_GCRYPT
|
||||
/* If we're running without any arguments and we're compiled with gcrypt
|
||||
/* If we're running without any arguments and journal sealing support is enabled,
|
||||
* check the journal verification stuff with a valid key as well */
|
||||
if (argc <= 1) {
|
||||
if (argc <= 1 && journal_auth_supported()) {
|
||||
verification_key = "c262bd-85187f-0b1b04-877cc5/1c7af8-35a4e900";
|
||||
|
||||
ASSERT_OK_ERRNO(setenv("SYSTEMD_JOURNAL_COMPACT", "0", 1));
|
||||
@@ -202,7 +201,6 @@ int main(int argc, char *argv[]) {
|
||||
ASSERT_OK_ERRNO(setenv("SYSTEMD_JOURNAL_COMPACT", "1", 1));
|
||||
run_test(verification_key, max_iterations);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user