Commit 49a32d43 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

journal: don't set seal flag if we don't have gcrypt built-in

parent 48b61739
...@@ -2024,7 +2024,9 @@ int journal_file_open( ...@@ -2024,7 +2024,9 @@ int journal_file_open(
#ifdef HAVE_XZ #ifdef HAVE_XZ
f->compress = compress; f->compress = compress;
#endif #endif
#ifdef HAVE_GCRYPT
f->seal = seal; f->seal = seal;
#endif
if (mmap_cache) if (mmap_cache)
f->mmap = mmap_cache_ref(mmap_cache); f->mmap = mmap_cache_ref(mmap_cache);
...@@ -2059,9 +2061,11 @@ int journal_file_open( ...@@ -2059,9 +2061,11 @@ int journal_file_open(
#ifdef HAVE_GCRYPT #ifdef HAVE_GCRYPT
/* Try to load the FSPRG state, and if we can't, then /* Try to load the FSPRG state, and if we can't, then
* just don't do sealing */ * just don't do sealing */
r = journal_file_fss_load(f); if (f->seal) {
if (r < 0) r = journal_file_fss_load(f);
f->seal = false; if (r < 0)
f->seal = false;
}
#endif #endif
r = journal_file_init_header(f, template); r = journal_file_init_header(f, template);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment