Skip to content

Commit

Permalink
Clear OpenSSL error queue after loading private key and signer certif…
Browse files Browse the repository at this point in the history
…icate from security token
  • Loading branch information
olszomal committed Aug 19, 2024
1 parent 4dd836b commit df0f424
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osslsigncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4162,6 +4162,7 @@ static int read_token(GLOBAL_OPTIONS *options, ENGINE *engine)
fprintf(stderr, "Failed to load private key %s\n", options->keyfile);
return 0; /* FAILED */
}
ERR_clear_error();
return 1; /* OK */
}
#endif /* OPENSSL_NO_ENGINE */
Expand Down

0 comments on commit df0f424

Please sign in to comment.