/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/mandosclient.c

Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
bool debug = false;
78
78
static const char *keydir = "/conf/conf.d/mandos";
 
79
static const char mandos_protocol_version[] = "1";
79
80
const char *argp_program_version = "mandosclient 0.9";
80
81
const char *argp_program_bug_address = "<mandos@fukt.bsnet.se>";
81
 
static const char mandos_protocol_version[] = "1";
82
82
 
83
83
/* Used for passing in values through the Avahi callback functions */
84
84
typedef struct {
90
90
  const char *priority;
91
91
} mandos_context;
92
92
 
93
 
/* Make room in "buffer" for at least BUFFER_SIZE additional bytes.
 
93
/*
 
94
 * Make room in "buffer" for at least BUFFER_SIZE additional bytes.
94
95
 * "buffer_capacity" is how much is currently allocated,
95
 
 * "buffer_length" is how much is already used. */
 
96
 * "buffer_length" is how much is already used.
 
97
 */
96
98
size_t adjustbuffer(char **buffer, size_t buffer_length,
97
99
                  size_t buffer_capacity){
98
100
  if (buffer_length + BUFFER_SIZE > buffer_capacity){