Coder Social home page Coder Social logo

Comments (5)

plaublin avatar plaublin commented on June 15, 2024

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.

bsdinis avatar bsdinis commented on June 15, 2024

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.

plaublin avatar plaublin commented on June 15, 2024

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.

bsdinis avatar bsdinis commented on June 15, 2024

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.

plaublin avatar plaublin commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.