Depot package of gtotp_report

This package relies on its configuration to be supplied by a launcher
file or through the deploy configuration. How to protect the secret at
rest is an open issue.
This commit is contained in:
Emery Hemingway
2018-12-04 19:11:26 +01:00
parent b4b9bf0a4d
commit 6bd43a2df5
8 changed files with 56 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
GTOTP report
This package generates reports containing
Time-based One-time Passwords generated
using the common Google Authenticator algorithm.
It is configured by a single XML attribute, the shared secret
encoded in base32.
! ...
! <config secret="Fooobaar"/>
! ...

View File

@@ -0,0 +1,4 @@
_/src/gtotp_report
_/src/libc
_/src/stdcxx
_/src/vfs

View File

@@ -0,0 +1 @@
-

View File

@@ -0,0 +1,14 @@
<runtime ram="4M" caps="128" binary="gtotp_report">
<requires> <report/> <rtc/> </requires>
<content>
<rom label="ld.lib.so"/>
<rom label="gtotp_report"/>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="stdcxx.lib.so"/>
<rom label="vfs.lib.so"/>
</content>
</runtime>

View File

@@ -0,0 +1,16 @@
CRYPTOPP_PORT_DIR := $(call port_dir,$(REP_DIR)/ports/cryptopp)
MIRROR_FROM_CRYPTOPP = src/lib/cryptopp include
MIRROR_FROM_REP_DIR := src/app/gtotp_report lib/import/import-cryptopp.mk lib/mk/cryptopp.mk
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_CRYPTOPP) LICENSE
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
$(MIRROR_FROM_CRYPTOPP): $(CRYPTOPP_PORT_DIR)
cp -r $</include $</src .
LICENSE:
cp $(GENODE_DIR)/LICENSE $@

View File

@@ -0,0 +1 @@
-

View File

@@ -0,0 +1,7 @@
base
os
report_session
rtc_session
stdcxx
timer_session
libc

View File

@@ -1,5 +1,5 @@
TARGET = gtotp_report TARGET = gtotp_report
LIBS += base cryptopp stdcxx LIBS += cryptopp stdcxx libc base
SRC_CC += component.cc SRC_CC += component.cc
# Effc++ not compatible with CryptoPP headers # Effc++ not compatible with CryptoPP headers