~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to tests/asschk.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
673
673
static void
674
674
cmd_echo (const char *assign_to, char *arg)
675
675
{
 
676
  (void)assign_to;
676
677
  if (!opt_no_echo)
677
678
    printf ("%s\n", arg);
678
679
}
680
681
static void
681
682
cmd_send (const char *assign_to, char *arg)
682
683
{
 
684
  (void)assign_to;
683
685
  if (opt_verbose)
684
686
    fprintf (stderr, "sending `%s'\n", arg);
685
687
  write_assuan (server_send_fd, arg); 
706
708
static void
707
709
cmd_expect_ok (const char *assign_to, char *arg)
708
710
{
 
711
  (void)assign_to;
 
712
  (void)arg;
 
713
 
709
714
  if (opt_verbose)
710
715
    fprintf (stderr, "expecting OK\n");
711
716
  do
724
729
static void
725
730
cmd_expect_err (const char *assign_to, char *arg)
726
731
{
 
732
  (void)assign_to;
 
733
  (void)arg;
 
734
 
727
735
  if (opt_verbose)
728
736
    fprintf (stderr, "expecting ERR\n");
729
737
  do
795
803
static void
796
804
cmd_pipeserver (const char *assign_to, char *arg)
797
805
{
 
806
  (void)assign_to;
 
807
 
798
808
  if (!*arg)
799
809
    die ("syntax error: servername missing");
800
810
 
805
815
static void
806
816
cmd_quit_if(const char *assign_to, char *arg)
807
817
{
 
818
  (void)assign_to;
 
819
 
808
820
  if (eval_boolean (arg))
809
821
    exit (0);
810
822
}
812
824
static void
813
825
cmd_fail_if(const char *assign_to, char *arg)
814
826
{
 
827
  (void)assign_to;
 
828
 
815
829
  if (eval_boolean (arg))
816
830
    exit (1);
817
831
}