Comments (5)
You normally don't have to modify this file, nor the files in src/talos/enclaveshim
. They are copied into src/libressl-2.4.1/crypto
when executing patch_libressl.sh
.
This file is necessary to compile the ecall and ocall interface file of the SDK (files enclave_[ut].[ch]
). Indeed, the enclave.edl
uses several types that need to be defined. So unless you modify enclave.edl
and add a new type that is not already defined you shouldn't have to modify it.
from talos.
I see..
I still have trouble linking TaLoS with my enclave code. I've added a from "/path/to/enclave.edl" import *
to my EDL file, and the correct path for the include files, but many of them have things unavailable in enclaves (eg: FILE's, etc.).
Am I missing something?
from talos.
TaLoS has been successfully integrated with other enclave project in the past, so this should definitely work. However I have never tried.
Do you need to import openssl_types.h
in your edl file?
What error do you get? Is it when compiling your enclave source code, the SDK interface files?
from talos.
openssl/pem.h has a lot of references to FILE *, which fail to compile;
openssl/tls1.h has a double prototype to SSL_get_servername
openssl/dtls1.h includes sys/time.h, which cannot be found
In my EDL file, I am not including openssl_types.h, but I do include the EDL file from the project
this is when I'm compiling the enclave code
from talos.
I think we never encountered this problem because we never used this part of the code. What you would need to do is modify the header files so that they can compile successfully:
-openssl/pem.h
: define the missing FILE*
type;
-openssl/tls1.h
: remove the double prototype;
-openssl/dtls1.h
: don't include sys/time.h
when compiling with SGX.
from talos.
Related Issues (20)
- Enclave once created is never destroyed HOT 1
- Build Nginx Successfully, but got a segmentation fault HOT 5
- potential security issue: ecall_SSL_write using [user_check] HOT 3
- SSL/TLS Client example
- security issues due to prevalent use of [user_check] HOT 5
- memcpy warning when compiling TaLoS HOT 2
- potential security issue: ecall_SSL_read using [user_check] HOT 2
- Cannot find -lsgx_tstdcxx HOT 8
- Deprecated function is not defined HOT 1
- Data races
- Unable to establish SSL connection when testing on the lastes version
- Dockerbuild will not start HOT 1
- Compilation of libressl not working HOT 5
- New Networking Library Drop-in Usage? HOT 2
- can not build TaLoS using clang,need help HOT 6
- The private key may be leaked to the attacker HOT 5
- verify_mode maybe be modified by the attacker HOT 1
- SSL session is leaked
- Bugs found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from talos.