Skip to content

Commit

Permalink
Fix certificate checking
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinandresen committed Feb 25, 2013
1 parent b916ac8 commit ffcbfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paymentrequest-dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int main(int argc, char **argv) {
// Now do the verification!
int result = X509_verify_cert(store_ctx);
X509_NAME *certname = X509_get_subject_name(signing_cert);
if (result < 0) {
if (result != 1) {
int error = X509_STORE_CTX_get_error(store_ctx);
printf("%d: %s\n", error, X509_verify_cert_error_string(error));
exit(1);
Expand Down

0 comments on commit ffcbfdd

Please sign in to comment.