Browse Source

fixing compiler errors

master
Michael Preisach 4 years ago
parent
commit
b91a67fbb8
  1. 9
      verifier.c

9
verifier.c

@ -1,6 +1,7 @@
#include "verifier.h"
typedef enum verifierstate {
ON,
ASKISSUER,
GOTISSUER,
} verifierstate_e;
@ -26,10 +27,11 @@ int verifier_checklink(char *buffer);
int verifier_verifymsg(char *buffer);
int main() {
int main(int argc, char **argv) {
verifier.revocations.sk_list = NULL;
verifier.revocations.bsn_list = NULL;
char *remote_ip;
int ret = 0;
switch(argc) {
case 1:
@ -80,8 +82,6 @@ int process_verifier(char *buffer) {
} else {
strncpy(buffer, "OK\n", 3);
}
break;
}
ret = 0;
} else if (0 == strncasecmp("EXIT", buffer, 4)) {
printf("closing client session\n");
@ -198,8 +198,9 @@ int verifier_verifymsg(char *buffer) {
return -1;
}
printf("writing message to %s\n", verifier_message_file);
printf("writing message to %s\n", MSGFILE);
ecdaa_write_buffer_to_file(MSGFILE, msg, msg_len);
printf("writing checksum to %s\n", CHKSUMFILE);
ecdaa_write_buffer_to_file(CHKSUMFILE, chksum, chksum_len);
return 0;
}

Loading…
Cancel
Save