Skip to content

Commit

Permalink
Linux 2.11 Open Source Gold Release
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
llly committed Aug 28, 2020
1 parent 62b116c commit b9b071b
Show file tree
Hide file tree
Showing 40 changed files with 1,032 additions and 202 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
branch = svn-tags/RELEASE_801
[submodule "dnnl"]
path = external/dnnl/dnnl
url = https://github.com/intel/mkl-dnn.git
url = https://github.com/oneapi-src/oneDNN.git
branch = rls-v1.1
[submodule "ipp-crypto"]
path = external/ippcp_internal/ipp-crypto
Expand Down
89 changes: 64 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,8 @@
#
#

DCAP_VER?= 1.7
DCAP_DOWNLOAD_BASE ?= https://github.com/intel/SGXDataCenterAttestationPrimitives/archive

CHECK_OPT :=
ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration)", "")
CHECK_OPT := dcap_source
endif

include buildenv.mk
.PHONY: all dcap_source psw sdk clean rebuild sdk_install_pkg psw_install_pkg
.NOTPARALLEL: dcap_source sdk psw
.PHONY: all preparation psw sdk clean rebuild sdk_install_pkg psw_install_pkg

all: tips

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

dcap_source:
ifeq ($(shell git rev-parse --is-inside-work-tree), true)

preparation:
# As SDK build needs to clone and patch openmp, we cannot support the mode that download the source from github as zip.
# Only enable the download from git
git submodule update --init --recursive
else
curl --output dcap_source.tar.gz -L --tlsv1 ${DCAP_DOWNLOAD_BASE}/DCAP_${DCAP_VER}.tar.gz
tar xvzf dcap_source.tar.gz
$(RM) dcap_source.tar.gz
$(RM) -rf external/dcap_source
mv SGXDataCenterAttestationPrimitives-DCAP_${DCAP_VER} external/dcap_source
endif
./external/dcap_source/QuoteVerification/prepare_sgxssl.sh nobuild
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
@# download prebuilt binaries
./download_prebuilt.sh
./external/dcap_source/QuoteGeneration/download_prebuilt.sh

psw: $(CHECK_OPT)
psw:
$(MAKE) -C psw/ USE_OPT_LIBS=$(USE_OPT_LIBS)

sdk_no_mitigation: $(CHECK_OPT)
sdk_no_mitigation:
$(MAKE) -C sdk/ USE_OPT_LIBS=$(USE_OPT_LIBS)
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl clean
$(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl

sdk: $(CHECK_OPT)
sdk:
$(MAKE) -C sdk/ clean
$(MAKE) -C sdk/ MODE=$(MODE) MITIGATION-CVE-2020-0551=LOAD
$(MAKE) -C sdk/ clean
Expand All @@ -98,8 +89,8 @@ sdk_install_pkg: sdk
psw_install_pkg: psw
ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so)", "")
./external/dcap_source/QuoteGeneration/download_prebuilt.sh
$(CP) external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so $(BUILD_DIR)
endif
$(CP) external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so $(BUILD_DIR)
./linux/installer/bin/build-installpkg.sh psw

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

.PHONY: deb_sgx_dcap_quote_verify
deb_sgx_dcap_quote_verify:
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_quote_verify_pkg
$(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-quote-verify/libsgx-dcap-quote-verify*deb ./linux/installer/deb/sgx-aesm-service/

.PHONY: deb_libsgx_ae_qve
deb_libsgx_ae_qve:
ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qve.signed.so)", "")
Expand All @@ -173,8 +169,21 @@ endif
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_ae_qve_pkg
$(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-ae-qve/libsgx-ae-qve*deb ./linux/installer/deb/sgx-aesm-service/

.PHONY: deb_sgx_pck_id_retrieval_tool_pkg
deb_sgx_pck_id_retrieval_tool_pkg:
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_pck_id_retrieval_tool_pkg
$(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/


.PHONY: deb_sgx_ra_service_pkg
deb_sgx_ra_service_pkg:
$(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_ra_service_pkg
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/sgx-ra-service*deb ./linux/installer/deb/sgx-aesm-service/
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/libsgx-ra-*deb ./linux/installer/deb/sgx-aesm-service/


.PHONY: deb_psw_pkg
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_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
endif

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

.PHONY: rpm_sgx_dcap_quote_verify
rpm_sgx_dcap_quote_verify:
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_dcap_quote_verify_pkg
$(CP) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-quote-verify/libsgx-dcap-quote-verify*rpm ./linux/installer/rpm/sgx-aesm-service/

.PHONY: rpm_sgx_pck_id_retrieval_tool_pkg
rpm_sgx_pck_id_retrieval_tool_pkg:
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_pck_id_retrieval_tool_pkg
$(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/

.PHONY: rpm_sgx_ra_service_pkg
rpm_sgx_ra_service_pkg:
$(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_ra_service_pkg
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/sgx-ra-service*rpm ./linux/installer/rpm/sgx-aesm-service/
$(CP) external/dcap_source/tools/SGXPlatformRegistration/build/installer/libsgx-ra-*rpm ./linux/installer/rpm/sgx-aesm-service/

.PHONY: rpm_psw_pkg
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_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
endif

.PHONY: rpm_local_repo
Expand Down Expand Up @@ -303,16 +328,30 @@ ifeq ("$(shell test -f external/dcap_source/QuoteVerification/Makefile && echo M
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-ql/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-pce-logic/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-qe3-logic/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-quote-verify/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/deb/sgx-dcap-pccs/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qve/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qe3/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-default-qpl/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-ql/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-pce-logic/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-qe3-logic/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-quote-verify/clean.sh
./external/dcap_source/QuoteGeneration/installer/linux/rpm/sgx-dcap-pccs/clean.sh
endif

rebuild:
$(MAKE) clean
$(MAKE) all

.PHONY: distclean
distclean:
$(MAKE) clean
# Cleanup
$(RM) -r 'Intel redistributable binary.txt' Master_EULA_for_Intel_Sw_Development_Products.pdf redist.txt
$(RM) -rf external/ippcp_internal/inc/*.h external/ippcp_internal/lib/ external/ippcp_internal/license
$(RM) -rf external/toolset psw/ae/data/prebuilt/lib*.so psw/ae/data/prebuilt/README.md
$(RM) -rf external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/
$(RM) -rf external/dcap_source/QuoteGeneration/'Intel redistributable binary.txt'
$(RM) -rf external/dcap_source/QuoteVerification/sgxssl/
git submodule deinit --all -f
51 changes: 26 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
* Ubuntu\* 18.04 LTS Desktop 64bits
* Ubuntu\* 18.04 LTS Server 64bits
* Red Hat Enterprise Linux Server release 7.6 64bits
* Red Hat Enterprise Linux Server release 8.1 64bits
* Red Hat Enterprise Linux Server release 8.2 64bits
* CentOS 8.1 64bits
* Fedora 31 Server 64bits
* SUSE Linux Enterprise Server 12 64bits
* SUSE Linux Enterprise Server 15 64bits

- Use the following command(s) to install the required tools to build the Intel(R) SGX SDK:
* On Ubuntu 16.04:
Expand All @@ -70,7 +70,7 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
```
$ sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python libssl-dev git cmake perl
```
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2:
```
$ sudo yum groupinstall 'Development Tools'
$ sudo yum install ocaml ocaml-ocamlbuild wget python2 openssl-devel git cmake perl
Expand All @@ -87,38 +87,39 @@ Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package
$ sudo yum groupinstall 'C Development Tools and Libraries'
$ sudo yum install ocaml ocaml-ocamlbuild redhat-rpm-config openssl-devel wget python rpm-build git cmake perl
```
* On SUSE Linux Enterprise Server 12:
* On SUSE Linux Enterprise Server 15:
```
$ sudo zypper install --type pattern devel_basis
$ sudo zypper install ocaml ocaml-ocamlbuild automake autoconf libtool wget python libopenssl-devel rpm-build git cmake perl
```
**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.
**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.
- Use the following command to install additional required tools and latest Intel(R) SGX SDK Installer to build the Intel(R) SGX PSW:
1) To install the additional required tools:
* On Ubuntu 16.04 and Ubuntu 18.04:
```
$ sudo apt-get install libssl-dev libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper cmake reprepro unzip
```
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1 and Fedora 31:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2 and Fedora 31:
```
$ sudo yum install openssl-devel libcurl-devel protobuf-devel cmake rpm-build createrepo yum-utils
```
* On CentOS 8.1:
```
$ sudo dnf --enablerepo=PowerTools install openssl-devel libcurl-devel protobuf-devel cmake rpm-build createrepo yum-utils
```
* On SUSE Linux Enterprise Server 12:
* On SUSE Linux Enterprise Server 15:
```
$ sudo zypper install libopenssl-devel libcurl-devel protobuf-devel cmake rpm-build createrepo
```
2) To install latest Intel(R) SGX SDK Installer
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.
- Use the script ``download_prebuilt.sh`` inside source code package to download prebuilt binaries to prebuilt folder
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``)
- Download the source code and prepare the submodules and prebuilt binaries:
```
$ ./download_prebuilt.sh
$ git clone https://github.com/intel/linux-sgx.git .
$ cd linux-sgx && make preparation
```
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``)
- 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:
```
Expand Down Expand Up @@ -203,7 +204,7 @@ You can find the tools and libraries generated in the `build/linux` directory.
```
$ make deb_psw_pkg DEBUG=1
```
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31 and SUSE Linux Enterprise Server 12:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31 and SUSE Linux Enterprise Server 15:
```
$ make rpm_psw_pkg
```
Expand Down Expand Up @@ -247,20 +248,20 @@ You can find the tools and libraries generated in the `build/linux` directory.
**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.
- 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:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31:
```
$ sudo yum-config-manager --add-repo file://PATH_TO_LOCAL_REPO
```
* On SUSE Linux Enterprise Server 12, you need to replace LOCAL_REPO_ALIAS with proper alias name for the local repo:
* On SUSE Linux Enterprise Server 15, you need to replace LOCAL_REPO_ALIAS with proper alias name for the local repo:
```
$ sudo zypper addrepo PATH_TO_LOCAL_REPO LOCAL_REPO_ALIAS
```
- To ignore the gpgcheck when you install the package, enter the following command:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1, CentOS 8.1, Fedora 31:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2, CentOS 8.1, Fedora 31:
```
$ sudo yum --nogpgcheck install <package>
```
* On SUSE Linux Enterprise Server 12:
* On SUSE Linux Enterprise Server 15:
```
$ sudo zypper --no-gpg-checks install <package>
```
Expand All @@ -274,16 +275,16 @@ Install the Intel(R) SGX SDK
* Ubuntu\* 18.04 LTS Desktop 64bits
* Ubuntu\* 18.04 LTS Server 64bits
* Red Hat Enterprise Linux Server release 7.6 64bits
* Red Hat Enterprise Linux Server release 8.1 64bits
* Red Hat Enterprise Linux Server release 8.2 64bits
* CentOS 8.1 64bits
* Fedora 31 Server 64bits
* SUSE Linux Enterprise Server 12 64bits
* SUSE Linux Enterprise Server 15 64bits
- Use the following command to install the required tool to use Intel(R) SGX SDK:
* On Ubuntu 16.04 and Ubuntu 18.04:
```
$ sudo apt-get install build-essential python
```
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1 and CentOS 8.1:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2 and CentOS 8.1:
```
$ sudo yum groupinstall 'Development Tools'
$ sudo yum install python2
Expand All @@ -293,7 +294,7 @@ Install the Intel(R) SGX SDK
```
$ sudo yum groupinstall 'C Development Tools and Libraries'
```
* On SUSE Linux Enterprise Server 12:
* On SUSE Linux Enterprise Server 15:
```
$ sudo zypper install --type pattern devel_basis
$ sudo zypper install python
Expand Down Expand Up @@ -344,10 +345,10 @@ Install the Intel(R) SGX PSW
* Ubuntu\* 18.04 LTS Desktop 64bits
* Ubuntu\* 18.04 LTS Server 64bits
* Red Hat Enterprise Linux Server release 7.6 64bits
* Red Hat Enterprise Linux Server release 8.1 64bits
* Red Hat Enterprise Linux Server release 8.2 64bits
* CentOS 8.1 64bits
* Fedora 31 Server 64bits
* SUSE Linux Enterprise Server 12 64bits
* SUSE Linux Enterprise Server 15 64bits
- Ensure that you have a system with the following required hardware:
* 6th Generation Intel(R) Core(TM) Processor or newer
- Configure the system with the **Intel SGX hardware enabled** option and install Intel(R) SGX driver in advance.
Expand All @@ -357,15 +358,15 @@ Install the Intel(R) SGX PSW
```
$ sudo apt-get install libssl-dev libcurl4-openssl-dev libprotobuf-dev
```
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.1 and Fedora 31:
* On Red Hat Enterprise Linux 7.6, Red Hat Enterprise Linux 8.2 and Fedora 31:
```
$ sudo yum install openssl-devel libcurl-devel protobuf-devel
```
* On CentOS 8.1:
```
$ sudo dnf --enablerepo=PowerTools install libcurl-devel protobuf-devel
```
* On SUSE Linux Enterprise Server 12:
* On SUSE Linux Enterprise Server 15:
```
$ sudo zypper install libopenssl-devel libcurl-devel protobuf-devel
```
Expand All @@ -375,7 +376,7 @@ Install the Intel(R) SGX PSW
#### Using the local repo(recommended)
| |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|
| |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|
| ------------ | ------------ | ------------ | ------------ |
|launch service |apt-get install libsgx-launch libsgx-urts|yum install libsgx-launch libsgx-urts|zypper install libsgx-launch libsgx-urts|
|EPID-based attestation service|apt-get install libsgx-epid libsgx-urts|yum install libsgx-epid libsgx-urts|zypper install libsgx-epid libsgx-urts||
Expand Down
3 changes: 2 additions & 1 deletion SampleCode/LocalAttestation/util/fifo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int client_send_receive(FIFO_MSG *fiforequest, size_t fiforequest_size, FIFO_MSG
long byte_num;
char recv_msg[BUFFER_SIZE + 1] = {0};
FIFO_MSG * response = NULL;

struct sockaddr_un server_addr;
int server_sock_fd = socket(PF_UNIX, SOCK_STREAM, 0);
if (server_sock_fd == -1)
Expand Down Expand Up @@ -133,3 +133,4 @@ int client_send_receive(FIFO_MSG *fiforequest, size_t fiforequest_size, FIFO_MSG

return ret;
}

Loading

0 comments on commit b9b071b

Please sign in to comment.