Compare commits

..

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
3e6bb2ac3c
!42 添加编译依赖openssl
From: @yue-yuankun 
Reviewed-by: @houmingyong, @kailiu42 
Signed-off-by: @houmingyong
2024-11-06 04:45:28 +00:00
yueyuankun
c9c949b6d6 Add BuildRequires openssl
Signed-off-by: yueyuankun <yueyuankun@kylinos.cn>
2024-05-08 12:39:45 +08:00
openeuler-ci-bot
037ebfbfe2
!39 为openssl源码中bio.h文件添加FILE变量定义
From: @ZhouShuiQing 
Reviewed-by: @hzero1996 
Signed-off-by: @hzero1996
2023-08-10 13:49:02 +00:00
zhoushuiqing
e91517cadb
update intel-sgx-ssl.spec.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 10:10:10 +00:00
zhoushuiqing
1c1b68c855
rename 0001-fix-secgear-build-error.patch to 0003-add-definition-for-FILE-variable.patch.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 10:06:29 +00:00
zhoushuiqing
09a9ad7648
update 0001-fix-secgear-build-error.patch.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 09:34:25 +00:00
zhoushuiqing
e07154daee
update intel-sgx-ssl.spec.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 09:26:43 +00:00
zhoushuiqing
462ecc5733
1700-update intel-sgx-ssl.spec.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 09:00:31 +00:00
zhoushuiqing
eed59b7f7e
update intel-sgx-ssl.spec.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 08:53:09 +00:00
zhoushuiqing
6ef9e47fe6
fix secgear build error
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 08:52:48 +00:00
openeuler-ci-bot
5efd2f7fc6
!38 Upgrade to 2.19
From: @ZhouShuiQing 
Reviewed-by: @houmingyong 
Signed-off-by: @houmingyong
2023-07-26 02:28:21 +00:00
2 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,33 @@
From 266e1366a71c0e2cd3c96a747508fbd42c446b13 Mon Sep 17 00:00:00 2001
From: zhoushuiqing <zhoushuiqing2@huawei.com>
Date: Thu, 10 Aug 2023 15:21:14 +0800
Subject: [PATCH] Add a definition for FILE variable
Add the definition of the FILE variable to the bio.h header file of OpenSSL.
---
openssl_source/openssl-1.1.1t/include/openssl/bio.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/openssl_source/openssl-1.1.1t/include/openssl/bio.h b/openssl_source/openssl-1.1.1t/include/openssl/bio.h
index ae559a5..514e107 100644
--- a/openssl_source/openssl-1.1.1t/include/openssl/bio.h
+++ b/openssl_source/openssl-1.1.1t/include/openssl/bio.h
@@ -14,6 +14,14 @@
# ifndef OPENSSL_NO_STDIO
# include <stdio.h>
+
+#ifndef __FILE_defined
+#define __FILE_defined 1
+struct _IO_FILE;
+/* The opaque type of streams. This is the definition used elsewhere. */
+typedef struct _IO_FILE FILE;
+#endif
+
# endif
# include <stdarg.h>
--
2.33.0

View File

@ -1,7 +1,7 @@
%define openssl_version 1.1.1t
Name: intel-sgx-ssl
Version: 2.19
Release: 1
Release: 3
Summary: Intel® Software Guard Extensions SSL
ExclusiveArch: x86_64
License: OpenSSL and BSD-3-Clause
@ -11,9 +11,10 @@ Source1: https://www.openssl.org/source/old/1.1.1/openssl-%{openssl_versi
Patch0: 0001-Solution_to_issue_ssl_library_is_not_supported.patch
Patch1: 0002-adapt-openssl-CVE.patch
Patch2: 0003-add-definition-for-FILE-variable.patch
BuildRequires: gcc gcc-c++
BuildRequires: libsgx-launch libsgx-urts sgxsdk perl
BuildRequires: libsgx-launch libsgx-urts sgxsdk perl openssl
Requires: glibc sgxsdk >= %{version}-%{release}
@ -44,6 +45,7 @@ Requires: %{name} = %{version}-%{release}
%setup -q -D -T -n intel-sgx-ssl-lin_%{version}_%{openssl_version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
cp %{SOURCE1} openssl_source/
@ -65,6 +67,12 @@ cp License.txt $RPM_BUILD_ROOT/opt/intel/sgxssl/docs/
/opt/intel/sgxssl/include/*
%changelog
* Mon Mar 25 2024 yueyuankun <yueyuankun@kylinos.cn> - 2.19-3
- Add BuildRequires openssl
* Thu Aug 10 2023 zhoushuiqing <zhoushuiqing2@huawei.com> - 2.19-2
- Add definition for FILE variable
* Fri Jul 21 2023 zhoushuiqing <zhoushuiqing2@huawei.com> - 2.19-1
- Upgrade to 2.19