]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tpm2: fix build failure without openssl
authorAnton Lundin <anton.lundin@intinor.se>
Fri, 20 Oct 2023 13:46:07 +0000 (15:46 +0200)
committerLuca Boccassi <bluca@debian.org>
Fri, 27 Oct 2023 12:54:10 +0000 (13:54 +0100)
src/shared/tpm2-util.c

index 70912930b84b4b992fe4cce232e51f656805015d..b640de19c859a2902ac1a72ae34979c8da7571a4 100644 (file)
@@ -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,