From 5629d4e29fe9897e67136844c6393f271b945279 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Fri, 20 Oct 2023 15:46:07 +0200 Subject: [PATCH] tpm2: fix build failure without openssl --- src/shared/tpm2-util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 70912930b8..b640de19c8 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -4487,6 +4487,7 @@ const char *tpm2_userspace_log_path(void) { return secure_getenv("SYSTEMD_MEASURE_LOG_USERSPACE") ?: "/run/log/systemd/tpm2-measure.log"; } +#if HAVE_OPENSSL static int tpm2_userspace_log_open(void) { _cleanup_close_ int fd = -EBADF; struct stat st; @@ -4626,6 +4627,7 @@ static int tpm2_userspace_log( return 1; } +#endif int tpm2_extend_bytes( Tpm2Context *c,