/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/password-prompt.c

  • Committer: Teddy Hogeborn
  • Date: 2009-01-08 03:54:06 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090108035406-01uqkv9xqgxlnw7c
Change the default value of the "checker" option command to make the
checker command be run-time dependent on the "host" client attribute
instead of reading it only once on startup:

* clients.conf (checker): Changed default commented-out value to
                          "fping -q -- %%(host)s".
* mandos (main): Changed default value for the "checker" config option
                 to "fping -q -- %%(host)s".
* mandos-clients.conf.xml (OPTIONS): Document changed default value.
  (EXAMPLE): Changed value of "checker".

* plugins.d/password-prompt.c: Whitespace changes only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        .doc = "Debug mode", .group = 3 },
80
80
      { .name = NULL }
81
81
    };
82
 
  
 
82
    
83
83
    error_t parse_opt (int key, char *arg, struct argp_state *state) {
84
84
      /* Get the INPUT argument from `argp_parse', which we know is a
85
85
         pointer to our plugin list pointer. */
100
100
      }
101
101
      return 0;
102
102
    }
103
 
  
 
103
    
104
104
    struct argp argp = { .options = options, .parser = parse_opt,
105
105
                         .args_doc = "",
106
106
                         .doc = "Mandos password-prompt -- Read and"
111
111
      return EXIT_FAILURE;
112
112
    }
113
113
  }
114
 
    
 
114
  
115
115
  if (debug){
116
116
    fprintf(stderr, "Starting %s\n", argv[0]);
117
117
  }
250
250
      fprintf(stderr, "getline() returned 0, retrying.\n");
251
251
    }
252
252
  }
253
 
 
 
253
  
254
254
  free(buffer);
255
255
  
256
256
  if (debug){