forked from openenclave/openenclave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (c) Open Enclave SDK contributors.
# Licensed under the MIT License.
.PHONY: all build clean run
# set OE_CRYPTO_LIB to either "mbedtls" or "openssl" based on the crypto wrapper to be used.
# OE_CRYPTO_LIB is case sensitive. Use all lowercase letters.
OE_CRYPTO_LIB := mbedtls
export OE_CRYPTO_LIB
all: build
build:
$(MAKE) -C server
$(MAKE) -C client
$(MAKE) -C non_enc_client
clean:
$(MAKE) -C server clean
$(MAKE) -C client clean
$(MAKE) -C non_enc_client clean
run:
echo "Launch processes to establish an Attested TLS between two enclaves"
./server/host/tls_server_host ./server/enc/tls_server_enc.signed -port:12341 &
sleep 2
./client/host/tls_client_host ./client/enc/tls_client_enc.signed -server:localhost -port:12341
echo "Launch processes to establish an Attested TLS between an non-encalve TLS client and an TLS server running inside an enclave"
./server/host/tls_server_host ./server/enc/tls_server_enc.signed -port:12345 &
sleep 2
./non_enc_client/tls_non_enc_client -server:localhost -port:12345
run-server-in-loop:
echo "Launch long-running Attested TLS server"
./server/host/tls_server_host ./server/enc/tls_server_enc.signed -port:12341 -server-in-loop