/mandos/trunk

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

« back to all changes in this revision

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

  • Committer: Teddy Hogeborn
  • Date: 2018-04-01 19:35:00 UTC
  • Revision ID: teddy@recompile.se-20180401193500-150t7d6w89s1c0u3
Remove duplicate "Mandos plugin mandos-client:" in error output

* plugins.d/mandos-client.c (init_gpgme, pgp_packet_decrypt): Remove
  old hardcoded prefix, since it is now always printed by
  fprintf_plus().

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
  /* Create new GPGME "context" */
357
357
  rc = gpgme_new(&(mc->ctx));
358
358
  if(rc != GPG_ERR_NO_ERROR){
359
 
    fprintf_plus(stderr, "Mandos plugin mandos-client: "
360
 
                 "bad gpgme_new: %s: %s\n", gpgme_strsource(rc),
361
 
                 gpgme_strerror(rc));
 
359
    fprintf_plus(stderr, "bad gpgme_new: %s: %s\n",
 
360
                 gpgme_strsource(rc), gpgme_strerror(rc));
362
361
    return false;
363
362
  }
364
363
  
400
399
  /* Create new empty GPGME data buffer for the plaintext */
401
400
  rc = gpgme_data_new(&dh_plain);
402
401
  if(rc != GPG_ERR_NO_ERROR){
403
 
    fprintf_plus(stderr, "Mandos plugin mandos-client: "
404
 
                 "bad gpgme_data_new: %s: %s\n",
 
402
    fprintf_plus(stderr, "bad gpgme_data_new: %s: %s\n",
405
403
                 gpgme_strsource(rc), gpgme_strerror(rc));
406
404
    gpgme_data_release(dh_crypto);
407
405
    return -1;