From: Anton Lundin Date: Fri, 20 Oct 2023 13:46:07 +0000 (+0200) Subject: tpm2: fix build failure without openssl X-Git-Tag: v255-rc1~113^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5629d4e29fe9897e67136844c6393f271b945279;p=thirdparty%2Fsystemd.git tpm2: fix build failure without openssl --- diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 70912930b84..b640de19c85 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,