Skip to content

Commit a80d8aa

Browse files
authored
refactor(key-provider-agent): clean unused code of key provider agent (#29)
* refactor(key-provider-agent): remove unused mode (kbs, sealing) and their dependent functions * chore: remove unused variable * chore: remove unused headers * chore: remove unused defined constants * chore: delete unsued dependencies in key-provider-agent Makefile * fix: correct oversized variable * chore: remove unused env variables in app.yml * refactor: let "local" mode the only one available * chore: remove unused python script * chore: standardize and refactor logs * fix: correct a log error message * fix: reintroduce log level management from cli * feat: inroduce no log option * chore: delete dependency to libjansson-dev in base-image/Dockerfile * chore: replace header to keep lexicographic order
1 parent 0ec9bab commit a80d8aa

File tree

5 files changed

+87
-375
lines changed

5 files changed

+87
-375
lines changed

apploader/conf/app.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ csvAssistants:
2323
type: job
2424
entrypoint: /workplace/csv-agent/csvassistants/keyprovider/key_provider_agent
2525
env:
26-
mode: local #local or kbs
27-
localKey: 00112233445566778899aabbccddeeff
28-
kbsEndpoint: 127.0.0.1:1234
29-
attestion: csv
26+
localKey: 00112233445566778899aabbccddeeff
3027
args: [""]
3128

3229

base-image/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ RUN apt-get install -y \
3131
libssl-dev \
3232
software-properties-common \
3333
libcurl4-openssl-dev \
34-
libjansson-dev \
3534
libcbor-dev
3635

3736
# RA-TLS DCAP libraries:
@@ -85,7 +84,6 @@ RUN apt-get update \
8584
wget \
8685
software-properties-common \
8786
vim \
88-
libjansson-dev \
8987
libcbor-dev
9088

9189
RUN mkdir -p /usr/share/zoneinfo/
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
CC=cc
2-
CFLAGS += -Wall -I/usr/local/include/rats-tls/
3-
LDFLAGS += -L/usr/local/lib/rats-tls/
2+
CFLAGS += -Wall
43

54
all: key_provider_agent
65

76
key_provider_agent: src/key_provider_agent.c
8-
$(CC) src/key_provider_agent.c -lcurl -lrats_tls -ljansson -o $@ $(CFLAGS) $(LDFLAGS)
7+
$(CC) src/key_provider_agent.c -lcurl -o $@ $(CFLAGS)
98

109
clean:
1110
/bin/rm -rf *.o *~ key_provider_agent

0 commit comments

Comments
 (0)