[Assignment-7] Flake + App base
- Add Assignment-7 to flake.nix - Implement basic framework of app - Implement proxy subcommand (mostly) - Implement basics of intermediary subcommand
This commit is contained in:
parent
0d6b13fafa
commit
25a5ca3e2d
23 changed files with 615 additions and 10 deletions
23
7-SGX_Hands-on/src/app/util.c
Normal file
23
7-SGX_Hands-on/src/app/util.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "proxy.h"
|
||||
#include "intermediary.h"
|
||||
|
||||
|
||||
char* BIN_NAME = "SignatureProxy";
|
||||
|
||||
void syntax_exit(void) {
|
||||
char* syntax =
|
||||
"SignatureProxy Version 0.0.0\n"
|
||||
"Syntax: %s <command> <arguments>\n"
|
||||
"\n"
|
||||
"Commands:\n"
|
||||
"%s"
|
||||
"\n"
|
||||
"%s";
|
||||
|
||||
printf(syntax, BIN_NAME, intermediary_syntax(), proxy_syntax());
|
||||
exit(1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue