Skip to content

Commit b9b071b

Browse files
committed
Linux 2.11 Open Source Gold Release
Supported new OS: RHEL 8.2 and SUSE 15. Provided standalone Intel(R) SGX DCAP Quote verification library installer. Added Intel(R) SGX DCAP Platform Certificate ID Retrieval Tool and Multi-package Registration Agent (MPA) installers into SGX installation repo. Fixed bugs. Signed-off-by: Li, Xun <xun.li@intel.com>
1 parent 62b116c commit b9b071b

File tree

40 files changed

+1032
-202
lines changed

40 files changed

+1032
-202
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
branch = svn-tags/RELEASE_801
88
[submodule "dnnl"]
99
path = external/dnnl/dnnl
10-
url = https://github.com/intel/mkl-dnn.git
10+
url = https://github.com/oneapi-src/oneDNN.git
1111
branch = rls-v1.1
1212
[submodule "ipp-crypto"]
1313
path = external/ippcp_internal/ipp-crypto

Makefile

Lines changed: 64 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,8 @@
2929
#
3030
#
3131

32-
DCAP_VER?= 1.7
33-
DCAP_DOWNLOAD_BASE ?= https://github.com/intel/SGXDataCenterAttestationPrimitives/archive
34-
35-
CHECK_OPT :=
36-
ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration)", "")
37-
CHECK_OPT := dcap_source
38-
endif
39-
4032
include buildenv.mk
41-
.PHONY: all dcap_source psw sdk clean rebuild sdk_install_pkg psw_install_pkg
42-
.NOTPARALLEL: dcap_source sdk psw
33+
.PHONY: all preparation psw sdk clean rebuild sdk_install_pkg psw_install_pkg
4334

4435
all: tips
4536

@@ -55,26 +46,26 @@ tips:
5546
@echo " 3) enter the commmand: \"make psw\""
5647
@echo " 3. If you want to build other targets, please also follow README.md in same directory"
5748

58-
dcap_source:
59-
ifeq ($(shell git rev-parse --is-inside-work-tree), true)
49+
50+
preparation:
51+
# As SDK build needs to clone and patch openmp, we cannot support the mode that download the source from github as zip.
52+
# Only enable the download from git
6053
git submodule update --init --recursive
61-
else
62-
curl --output dcap_source.tar.gz -L --tlsv1 ${DCAP_DOWNLOAD_BASE}/DCAP_${DCAP_VER}.tar.gz
63-
tar xvzf dcap_source.tar.gz
64-
$(RM) dcap_source.tar.gz
65-
$(RM) -rf external/dcap_source
66-
mv SGXDataCenterAttestationPrimitives-DCAP_${DCAP_VER} external/dcap_source
67-
endif
54+
./external/dcap_source/QuoteVerification/prepare_sgxssl.sh nobuild
55+
cd external/openmp/openmp_code && git apply ../0001-Enable-OpenMP-in-SGX.patch >/dev/null 2>&1 || git apply ../0001-Enable-OpenMP-in-SGX.patch --check -R
56+
@# download prebuilt binaries
57+
./download_prebuilt.sh
58+
./external/dcap_source/QuoteGeneration/download_prebuilt.sh
6859

69-
psw: $(CHECK_OPT)
60+
psw:
7061
$(MAKE) -C psw/ USE_OPT_LIBS=$(USE_OPT_LIBS)
7162

72-
sdk_no_mitigation: $(CHECK_OPT)
63+
sdk_no_mitigation:
7364
$(MAKE) -C sdk/ USE_OPT_LIBS=$(USE_OPT_LIBS)
7465
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl clean
7566
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl
7667

77-
sdk: $(CHECK_OPT)
68+
sdk:
7869
$(MAKE) -C sdk/ clean
7970
$(MAKE) -C sdk/ MODE=$(MODE) MITIGATION-CVE-2020-0551=LOAD
8071
$(MAKE) -C sdk/ clean
@@ -98,8 +89,8 @@ sdk_install_pkg: sdk
9889
psw_install_pkg: psw
9990
ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so)", "")
10091
./external/dcap_source/QuoteGeneration/download_prebuilt.sh
101-
$(CP) external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so $(BUILD_DIR)
10292
endif
93+
$(CP) external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so $(BUILD_DIR)
10394
./linux/installer/bin/build-installpkg.sh psw
10495

10596
.PHONY: deb_libsgx_ae_qe3
@@ -165,6 +156,11 @@ deb_libsgx_dcap_ql:
165156
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_ql_pkg
166157
$(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-ql/libsgx-dcap-ql*deb ./linux/installer/deb/sgx-aesm-service/
167158

159+
.PHONY: deb_sgx_dcap_quote_verify
160+
deb_sgx_dcap_quote_verify:
161+
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_quote_verify_pkg
162+
$(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-quote-verify/libsgx-dcap-quote-verify*deb ./linux/installer/deb/sgx-aesm-service/
163+
168164
.PHONY: deb_libsgx_ae_qve
169165
deb_libsgx_ae_qve:
170166
ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qve.signed.so)", "")
@@ -173,8 +169,21 @@ endif
173169
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_ae_qve_pkg
174170
$(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-ae-qve/libsgx-ae-qve*deb ./linux/installer/deb/sgx-aesm-service/
175171

172+
.PHONY: deb_sgx_pck_id_retrieval_tool_pkg
173+
deb_sgx_pck_id_retrieval_tool_pkg:
174+
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_pck_id_retrieval_tool_pkg
175+
$(CP) external/dcap_source/tools/PCKRetrievalTool/installer/deb/sgx-pck-id-retrieval-tool/sgx-pck-id-retrieval-tool*deb ./linux/installer/deb/sgx-aesm-service/
176+
177+
178+
.PHONY: deb_sgx_ra_service_pkg
179+
deb_sgx_ra_service_pkg:
180+
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_ra_service_pkg
181+
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/sgx-ra-service*deb ./linux/installer/deb/sgx-aesm-service/
182+
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/libsgx-ra-*deb ./linux/installer/deb/sgx-aesm-service/
183+
184+
176185
.PHONY: deb_psw_pkg
177-
deb_psw_pkg: deb_libsgx_qe3_logic deb_libsgx_pce_logic deb_sgx_aesm_service deb_libsgx_epid deb_libsgx_launch deb_libsgx_quote_ex deb_libsgx_uae_service deb_libsgx_enclave_common deb_libsgx_urts deb_libsgx_ae_qe3 deb_libsgx_dcap_default_qpl deb_libsgx_dcap_pccs deb_libsgx_dcap_ql deb_libsgx_ae_qve
186+
deb_psw_pkg: deb_libsgx_qe3_logic deb_libsgx_pce_logic deb_sgx_aesm_service deb_libsgx_epid deb_libsgx_launch deb_libsgx_quote_ex deb_libsgx_uae_service deb_libsgx_enclave_common deb_libsgx_urts deb_libsgx_ae_qe3 deb_libsgx_dcap_default_qpl deb_libsgx_dcap_pccs deb_libsgx_dcap_ql deb_libsgx_ae_qve deb_sgx_dcap_quote_verify deb_sgx_pck_id_retrieval_tool_pkg deb_sgx_ra_service_pkg
178187
endif
179188

180189
.PHONY: deb_local_repo
@@ -256,8 +265,24 @@ endif
256265
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_ae_qve_pkg
257266
$(CP) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qve/libsgx-ae-qve*rpm ./linux/installer/rpm/sgx-aesm-service/
258267

268+
.PHONY: rpm_sgx_dcap_quote_verify
269+
rpm_sgx_dcap_quote_verify:
270+
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_dcap_quote_verify_pkg
271+
$(CP) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-quote-verify/libsgx-dcap-quote-verify*rpm ./linux/installer/rpm/sgx-aesm-service/
272+
273+
.PHONY: rpm_sgx_pck_id_retrieval_tool_pkg
274+
rpm_sgx_pck_id_retrieval_tool_pkg:
275+
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_pck_id_retrieval_tool_pkg
276+
$(CP) external/dcap_source/tools/PCKRetrievalTool/installer/rpm/sgx-pck-id-retrieval-tool/sgx-pck-id-retrieval-tool*rpm ./linux/installer/rpm/sgx-aesm-service/
277+
278+
.PHONY: rpm_sgx_ra_service_pkg
279+
rpm_sgx_ra_service_pkg:
280+
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_ra_service_pkg
281+
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/sgx-ra-service*rpm ./linux/installer/rpm/sgx-aesm-service/
282+
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/libsgx-ra-*rpm ./linux/installer/rpm/sgx-aesm-service/
283+
259284
.PHONY: rpm_psw_pkg
260-
rpm_psw_pkg: rpm_libsgx_pce_logic rpm_libsgx_qe3_logic rpm_sgx_aesm_service rpm_libsgx_epid rpm_libsgx_launch rpm_libsgx_quote_ex rpm_libsgx_uae_service rpm_libsgx_enclave_common rpm_libsgx_urts rpm_libsgx_ae_qe3 rpm_libsgx_dcap_default_qpl rpm_libsgx_dcap_pccs rpm_libsgx_dcap_ql rpm_libsgx_ae_qve
285+
rpm_psw_pkg: rpm_libsgx_pce_logic rpm_libsgx_qe3_logic rpm_sgx_aesm_service rpm_libsgx_epid rpm_libsgx_launch rpm_libsgx_quote_ex rpm_libsgx_uae_service rpm_libsgx_enclave_common rpm_libsgx_urts rpm_libsgx_ae_qe3 rpm_libsgx_dcap_default_qpl rpm_libsgx_dcap_pccs rpm_libsgx_dcap_ql rpm_libsgx_ae_qve rpm_sgx_dcap_quote_verify rpm_sgx_pck_id_retrieval_tool_pkg rpm_sgx_ra_service_pkg
261286
endif
262287

263288
.PHONY: rpm_local_repo
@@ -303,16 +328,30 @@ ifeq ("$(shell test -f external/dcap_source/QuoteVerification/Makefile && echo M
303328
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-ql/clean.sh
304329
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-pce-logic/clean.sh
305330
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-qe3-logic/clean.sh
331+
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-quote-verify/clean.sh
306332
./external/dcap_source/QuoteGeneration/installer/linux/deb/sgx-dcap-pccs/clean.sh
307333
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qve/clean.sh
308334
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qe3/clean.sh
309335
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-default-qpl/clean.sh
310336
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-ql/clean.sh
311337
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-pce-logic/clean.sh
312338
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-qe3-logic/clean.sh
339+
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-quote-verify/clean.sh
313340
./external/dcap_source/QuoteGeneration/installer/linux/rpm/sgx-dcap-pccs/clean.sh
314341
endif
315342

316343
rebuild:
317344
$(MAKE) clean
318345
$(MAKE) all
346+
347+
.PHONY: distclean
348+
distclean:
349+
$(MAKE) clean
350+
# Cleanup
351+
$(RM) -r 'Intel redistributable binary.txt' Master_EULA_for_Intel_Sw_Development_Products.pdf redist.txt
352+
$(RM) -rf external/ippcp_internal/inc/*.h external/ippcp_internal/lib/ external/ippcp_internal/license
353+
$(RM) -rf external/toolset psw/ae/data/prebuilt/lib*.so psw/ae/data/prebuilt/README.md
354+
$(RM) -rf external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/
355+
$(RM) -rf external/dcap_source/QuoteGeneration/'Intel redistributable binary.txt'
356+
$(RM) -rf external/dcap_source/QuoteVerification/sgxssl/
357+
git submodule deinit --all -f

README.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
5656
* Ubuntu\* 18.04 LTS Desktop 64bits
5757
* Ubuntu\* 18.04 LTS Server 64bits
5858
* Red Hat Enterprise Linux Server release 7.6 64bits
59-
* Red Hat Enterprise Linux Server release 8.1 64bits
59+
* Red Hat Enterprise Linux Server release 8.2 64bits
6060
* CentOS 8.1 64bits
6161
* Fedora 31 Server 64bits
62-
* SUSE Linux Enterprise Server 12 64bits
62+
* SUSE Linux Enterprise Server 15 64bits
6363

6464
- Use the following command(s) to install the required tools to build the Intel(R) SGX SDK:
6565
* On Ubuntu 16.04:
@@ -70,7 +70,7 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
7070
```
7171
$ sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python libssl-dev git cmake perl
7272
```
73-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1:
73+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2:
7474
```
7575
$ sudo yum groupinstall 'Development Tools'
7676
$ sudo yum install ocaml ocaml-ocamlbuild wget python2 openssl-devel git cmake perl
@@ -87,38 +87,39 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
8787
$ sudo yum groupinstall 'C Development Tools and Libraries'
8888
$ sudo yum install ocaml ocaml-ocamlbuild redhat-rpm-config openssl-devel wget python rpm-build git cmake perl
8989
```
90-
* On SUSE Linux Enterprise Server 12:
90+
* On SUSE Linux Enterprise Server 15:
9191
```
9292
$ sudo zypper install --type pattern devel_basis
9393
$ sudo zypper install ocaml ocaml-ocamlbuild automake autoconf libtool wget python libopenssl-devel rpm-build git cmake perl
9494
```
95-
**Note**: To build Intel(R) SGX SDK, gcc version is required to be 7.3 or above and glibc version is required to be 2.27 or above. For Ubuntu 16.04, Red Hat Enterprise Linux 7.6 and SUSE Linux Enterprise Server 12, you may need to update gcc and glibc version manually.
95+
**Note**: To build Intel(R) SGX SDK, gcc version is required to be 7.3 or above and glibc version is required to be 2.27 or above. For Ubuntu 16.04, Red Hat Enterprise Linux 7.6, you may need to update gcc and glibc version manually.
9696
- Use the following command to install additional required tools and latest Intel(R) SGX SDK Installer to build the Intel(R) SGX PSW:
9797
1) To install the additional required tools:
9898
* On Ubuntu 16.04 and Ubuntu 18.04:
9999
```
100100
$ sudo apt-get install libssl-dev libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper cmake reprepro unzip
101101
```
102-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1 and Fedora 31:
102+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2 and Fedora 31:
103103
```
104104
$ sudo yum install openssl-devel libcurl-devel protobuf-devel cmake rpm-build createrepo yum-utils
105105
```
106106
* On CentOS 8.1:
107107
```
108108
$ sudo dnf --enablerepo=PowerTools install openssl-devel libcurl-devel protobuf-devel cmake rpm-build createrepo yum-utils
109109
```
110-
* On SUSE Linux Enterprise Server 12:
110+
* On SUSE Linux Enterprise Server 15:
111111
```
112112
$ sudo zypper install libopenssl-devel libcurl-devel protobuf-devel cmake rpm-build createrepo
113113
```
114114
2) To install latest Intel(R) SGX SDK Installer
115115
Ensure that you have downloaded latest Intel(R) SGX SDK Installer from the [Intel(R) SGX SDK](https://software.intel.com/en-us/sgx-sdk/download) and followed the Installation Guide in the same page to install latest Intel(R) SGX SDK Installer.
116-
117-
- Use the script ``download_prebuilt.sh`` inside source code package to download prebuilt binaries to prebuilt folder
118-
You may need set an https proxy for the `wget` tool used by the script (such as ``export https_proxy=http://test-proxy:test-port``)
116+
117+
- Download the source code and prepare the submodules and prebuilt binaries:
119118
```
120-
$ ./download_prebuilt.sh
119+
$ git clone https://github.com/intel/linux-sgx.git .
120+
$ cd linux-sgx && make preparation
121121
```
122+
The above ``make preparation`` would trigger the script ``download_prebuilt.sh`` to download the prebuilt binaries. You may need to set an https proxy for the `wget` tool used by the script (such as ``export https_proxy=http://test-proxy:test-port``)
122123
123124
- Copy the mitigation tools corresponding to current OS distribution from external/toolset/{current_distr} to /usr/local/bin and make sure they have execute permission:
124125
```
@@ -203,7 +204,7 @@ You can find the tools and libraries generated in the `build/linux` directory.
203204
```
204205
$ make deb_psw_pkg DEBUG=1
205206
```
206-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31 and SUSE Linux Enterprise Server 12:
207+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31 and SUSE Linux Enterprise Server 15:
207208
```
208209
$ make rpm_psw_pkg
209210
```
@@ -247,20 +248,20 @@ You can find the tools and libraries generated in the `build/linux` directory.
247248
**Note**: The above command builds the local package repository. If you want to use it, you need to add it to the system repository configuration. Since the local package repository is not signed with GPG, you should ignore the gpgcheck when installing the packages.
248249
249250
- To add the local RPM package repository to the system repository configuration, you can use the following command. You need to replace PATH_TO_LOCAL_REPO with the proper path on your system:
250-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31:
251+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31:
251252
```
252253
$ sudo yum-config-manager --add-repo file://PATH_TO_LOCAL_REPO
253254
```
254-
* On SUSE Linux Enterprise Server 12, you need to replace LOCAL_REPO_ALIAS with proper alias name for the local repo:
255+
* On SUSE Linux Enterprise Server 15, you need to replace LOCAL_REPO_ALIAS with proper alias name for the local repo:
255256
```
256257
$ sudo zypper addrepo PATH_TO_LOCAL_REPO LOCAL_REPO_ALIAS
257258
```
258259
- To ignore the gpgcheck when you install the package, enter the following command:
259-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31:
260+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31:
260261
```
261262
$ sudo yum --nogpgcheck install <package>
262263
```
263-
* On SUSE Linux Enterprise Server 12:
264+
* On SUSE Linux Enterprise Server 15:
264265
```
265266
$ sudo zypper --no-gpg-checks install <package>
266267
```
@@ -274,16 +275,16 @@ Install the Intel(R) SGX SDK
274275
* Ubuntu\* 18.04 LTS Desktop 64bits
275276
* Ubuntu\* 18.04 LTS Server 64bits
276277
* Red Hat Enterprise Linux Server release 7.6 64bits
277-
* Red Hat Enterprise Linux Server release 8.1 64bits
278+
* Red Hat Enterprise Linux Server release 8.2 64bits
278279
* CentOS 8.1 64bits
279280
* Fedora 31 Server 64bits
280-
* SUSE Linux Enterprise Server 12 64bits
281+
* SUSE Linux Enterprise Server 15 64bits
281282
- Use the following command to install the required tool to use Intel(R) SGX SDK:
282283
* On Ubuntu 16.04 and Ubuntu 18.04:
283284
```
284285
$ sudo apt-get install build-essential python
285286
```
286-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1 and CentOS 8.1:
287+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2 and CentOS 8.1:
287288
```
288289
$ sudo yum groupinstall 'Development Tools'
289290
$ sudo yum install python2
@@ -293,7 +294,7 @@ Install the Intel(R) SGX SDK
293294
```
294295
$ sudo yum groupinstall 'C Development Tools and Libraries'
295296
```
296-
* On SUSE Linux Enterprise Server 12:
297+
* On SUSE Linux Enterprise Server 15:
297298
```
298299
$ sudo zypper install --type pattern devel_basis
299300
$ sudo zypper install python
@@ -344,10 +345,10 @@ Install the Intel(R) SGX PSW
344345
* Ubuntu\* 18.04 LTS Desktop 64bits
345346
* Ubuntu\* 18.04 LTS Server 64bits
346347
* Red Hat Enterprise Linux Server release 7.6 64bits
347-
* Red Hat Enterprise Linux Server release 8.1 64bits
348+
* Red Hat Enterprise Linux Server release 8.2 64bits
348349
* CentOS 8.1 64bits
349350
* Fedora 31 Server 64bits
350-
* SUSE Linux Enterprise Server 12 64bits
351+
* SUSE Linux Enterprise Server 15 64bits
351352
- Ensure that you have a system with the following required hardware:
352353
* 6th Generation Intel(R) Core(TM) Processor or newer
353354
- Configure the system with the **Intel SGX hardware enabled** option and install Intel(R) SGX driver in advance.
@@ -357,15 +358,15 @@ Install the Intel(R) SGX PSW
357358
```
358359
$ sudo apt-get install libssl-dev libcurl4-openssl-dev libprotobuf-dev
359360
```
360-
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1 and Fedora 31:
361+
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2 and Fedora 31:
361362
```
362363
$ sudo yum install openssl-devel libcurl-devel protobuf-devel
363364
```
364365
* On CentOS 8.1:
365366
```
366367
$ sudo dnf --enablerepo=PowerTools install libcurl-devel protobuf-devel
367368
```
368-
* On SUSE Linux Enterprise Server 12:
369+
* On SUSE Linux Enterprise Server 15:
369370
```
370371
$ sudo zypper install libopenssl-devel libcurl-devel protobuf-devel
371372
```
@@ -375,7 +376,7 @@ Install the Intel(R) SGX PSW
375376
376377
#### Using the local repo(recommended)
377378
378-
| |Ubuntu 16.04, Ubuntu 18.04|Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31|SUSE Linux Enterprise Server 12|
379+
| |Ubuntu 16.04, Ubuntu 18.04|Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31|SUSE Linux Enterprise Server 15|
379380
| ------------ | ------------ | ------------ | ------------ |
380381
|launch service |apt-get install libsgx-launch libsgx-urts|yum install libsgx-launch libsgx-urts|zypper install libsgx-launch libsgx-urts|
381382
|EPID-based attestation service|apt-get install libsgx-epid libsgx-urts|yum install libsgx-epid libsgx-urts|zypper install libsgx-epid libsgx-urts||

SampleCode/LocalAttestation/util/fifo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int client_send_receive(FIFO_MSG *fiforequest, size_t fiforequest_size, FIFO_MSG
6262
long byte_num;
6363
char recv_msg[BUFFER_SIZE + 1] = {0};
6464
FIFO_MSG * response = NULL;
65-
65+
6666
struct sockaddr_un server_addr;
6767
int server_sock_fd = socket(PF_UNIX, SOCK_STREAM, 0);
6868
if (server_sock_fd == -1)
@@ -133,3 +133,4 @@ int client_send_receive(FIFO_MSG *fiforequest, size_t fiforequest_size, FIFO_MSG
133133

134134
return ret;
135135
}
136+

0 commit comments

Comments
 (0)