Systemsicherheit/7-SGX_Hands-on/src/app/main.c
Paul Zinselmeyer 6f4c0a8aec
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m5s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 59s
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 31s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 9s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 8s
[Assignment-7] small changes
2024-07-06 18:06:12 +02:00

30 lines
703 B
C

#include <errno.h>
#include <string.h>
#include "embedded_device.h"
#include "employee.h"
#include "proxy.h"
#include "proxysetup.h"
#include "util.h"
int main(int argc, char** argv) {
if(argc < 1)
syntax_exit();
set_bin_name(argv[0]);
if(argc < 2)
syntax_exit();
char* command = argv[1];
if(strcmp(command, "employee")==0)
handle_employee(argc-2, argv+2);
else if (strcmp(command, "proxy")==0)
handle_proxy(argc-2, argv+2);
else if (strcmp(command, "proxysetup")==0)
handle_proxysetup(argc-2, argv+2);
else if (strcmp(command, "embedded")==0)
handle_embedded_device(argc-2, argv+2);
else
syntax_exit();
}