[Assignment-7] added embedded device to main.c; adjusted parameter parsing
Some checks failed
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Waiting to run
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Waiting to run
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Has been cancelled
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 1m1s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 1m6s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 1m0s
Some checks failed
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Waiting to run
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Waiting to run
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Has been cancelled
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 1m1s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 1m6s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 1m0s
This commit is contained in:
parent
343620a870
commit
f70b63af1b
2 changed files with 3 additions and 5 deletions
|
@ -73,11 +73,7 @@ int handle_embedded_device(int argc, char **argv) {
|
||||||
.public_key_path = NULL
|
.public_key_path = NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
if(argc == 1) {
|
for(int i = 0; i < argc; i += 2) {
|
||||||
syntax_exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
for(int i = 1; i < argc; i += 2) {
|
|
||||||
if((strcmp(argv[i], "-ppub") == 0) && (argc - i >= 2)) {
|
if((strcmp(argv[i], "-ppub") == 0) && (argc - i >= 2)) {
|
||||||
args.public_key_path = argv[i+1];
|
args.public_key_path = argv[i+1];
|
||||||
} else if((strcmp(argv[i], "-firm") == 0) && (argc - i >= 2)) {
|
} else if((strcmp(argv[i], "-firm") == 0) && (argc - i >= 2)) {
|
||||||
|
|
|
@ -22,6 +22,8 @@ int main(int argc, char** argv) {
|
||||||
handle_proxy(argc-2, argv+2);
|
handle_proxy(argc-2, argv+2);
|
||||||
else if (strcmp(command, "proxysetup")==0)
|
else if (strcmp(command, "proxysetup")==0)
|
||||||
handle_proxysetup(argc-2, argv+2);
|
handle_proxysetup(argc-2, argv+2);
|
||||||
|
else if (strcmp(command, "embedded")==0)
|
||||||
|
handle_proxysetup(argc-2, argv+2);
|
||||||
else
|
else
|
||||||
syntax_exit();
|
syntax_exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue