Commit 6a49e5ec authored by Niels Möller's avatar Niels Möller
Browse files

* src/algorithms.c (make_algorithms_options): New function.

Rev: src/algorithms.c:1.18
Rev: src/algorithms.h:1.9
parent 040f4138
......@@ -473,6 +473,15 @@ init_algorithms_options(struct algorithms_options *self,
self->hostkey_algorithms = NULL;
}
struct algorithms_options *
make_algorithms_options(struct alist *algorithms)
{
NEW(algorithms_options, self);
init_algorithms_options(self, algorithms);
return self;
}
static error_t
algorithms_argp_parser(int key, char *arg, struct argp_state *state)
{
......
......@@ -69,6 +69,9 @@ list_hostkey_algorithms(const struct argp_state *state);
void init_algorithms_options(struct algorithms_options *self,
struct alist *algorithms);
struct algorithms_options *
make_algorithms_options(struct alist *algorithms);
extern const struct argp algorithms_argp;
#endif /* LSH_ALGORITHMS_H_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment