@@ -0,0 +1,9 @@
+#include "config.hpp"
+#include "net.hpp"
+
+bool net_setup()
+{
+ bool ret = true;
+ return ret;
+}
@@ -0,0 +1,6 @@
+#ifndef __NET_HPP__
+#define __NET_HPP__
+bool net_setup();
+#endif
@@ -7,6 +7,7 @@
#include "sgx_tseal.h"
#include "Untrusted.hpp"
#include "config.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);