/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2018-04-01 19:31:31 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: teddy@recompile.se-20180401193131-w8but5r9ryne9et4
Print a boolean more readably in error message output

* plugins.d/mandos-client.c (pgp_packet_decrypt): If decryption fails,
  print wrong_key_usage as "Yes" or "No", not a number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
          fprintf_plus(stderr, "Unsupported algorithm: %s\n",
425
425
                       result->unsupported_algorithm);
426
426
        }
427
 
        fprintf_plus(stderr, "Wrong key usage: %u\n",
428
 
                     result->wrong_key_usage);
 
427
        fprintf_plus(stderr, "Wrong key usage: %s\n",
 
428
                     result->wrong_key_usage ? "Yes" : "No");
429
429
        if(result->file_name != NULL){
430
430
          fprintf_plus(stderr, "File name: %s\n", result->file_name);
431
431
        }