加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-tpm12-add-missing-openssl-includes.patch 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-07-16 15:47 . tpm12: add missing openssl includes
From 36aab2de0671e4e4068daf46abcff0d63d8d400c Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Wed, 13 Mar 2024 10:01:49 -0700
Subject: [PATCH] tpm12: add missing openssl includes
This fixes the build with LibreSSL 3.9.0 where many implicit
declarations for BN_, EVP_ and RSA_ functions occur which were
implicitly included before.
Signed-off-by: orbea <orbea@riseup.net>
---
src/tpm12/tpm_crypto.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/tpm12/tpm_crypto.c b/src/tpm12/tpm_crypto.c
index bcbaa7fc2..628e27cc2 100644
--- a/src/tpm12/tpm_crypto.c
+++ b/src/tpm12/tpm_crypto.c
@@ -48,6 +48,8 @@
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <openssl/engine.h>
+#include <openssl/evp.h>
+#include <openssl/rsa.h>
#include "tpm_cryptoh.h"
#include "tpm_debug.h"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化