Skip to content

Commit

Permalink
chore: added log
Browse files Browse the repository at this point in the history
  • Loading branch information
mereacre committed Feb 27, 2024
1 parent 67c18a4 commit d3fd02e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/brski/brski.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,14 @@ int main(int argc, char *argv[]) {
case CommandId::COMMAND_VERIFY_MASA: {
struct BinaryArray pinned_domain_cert = {};
uint8_t inbuf[MAX_STDIN_SIZE];

if (in_filename.empty()) {
log_error("No input registrar certificate file");
return EXIT_FAILURE;
}

log_info("Verifying MASA response with registrar tsl cert at %s",
in_filename.c_str());

int sz = read_stdin(inbuf);
if (sz < 0) {
log_error("Input size exceeds max");
Expand Down Expand Up @@ -453,6 +455,7 @@ int main(int argc, char *argv[]) {
}
free_binary_array(registrar_tls_cert);
free_binary_array_content(&pinned_domain_cert);
break;
}
case CommandId::COMMAND_GET_SERIAL: {
if (in_filename.empty()) {
Expand Down

0 comments on commit d3fd02e

Please sign in to comment.