Ian Goldberg 1 рік тому
батько
коміт
c136753b60
3 змінених файлів з 19 додано та 0 видалено
  1. 9 0
      App/net.cpp
  2. 6 0
      App/net.hpp
  3. 4 0
      App/teems.cpp

+ 9 - 0
App/net.cpp

@@ -0,0 +1,9 @@
+#include "config.hpp"
+#include "net.hpp"
+
+bool net_setup()
+{
+    bool ret = true;
+
+    return ret;
+}

+ 6 - 0
App/net.hpp

@@ -0,0 +1,6 @@
+#ifndef __NET_HPP__
+#define __NET_HPP__
+
+bool net_setup();
+
+#endif

+ 4 - 0
App/teems.cpp

@@ -7,6 +7,7 @@
 #include "sgx_tseal.h"
 #include "Untrusted.hpp"
 #include "config.hpp"
+#include "net.hpp"
 
 static bool hexdump(FILE *outf, const char *label, void *p, size_t len)
 {
@@ -200,6 +201,9 @@ int main(int argc, char **argv)
     if (!config_parse(config, myname)) {
         exit(1);
     }
+    if (!net_setup()) {
+        exit(1);
+    }
 
     sgx_destroy_enclave(global_eid);