Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
a30f0ed6
Commit
a30f0ed6
authored
Jul 06, 2001
by
Niels Möller
Browse files
* src/lsh-writekey.c: Don't use DEFINE_COMMAND_SIMPLE.
* src/lsh.c: Likewise. * src/lshd.c: Likewise. Rev: src/lshd.c:1.119
parent
af9252df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lshd.c
View file @
a30f0ed6
...
...
@@ -62,15 +62,15 @@
#include
"lsh_argp.h"
/* Forward declarations */
struct
command
_simple
options2local
;
#define OPTIONS2LOCAL (&options2local.super
.super
)
struct
command
options2local
;
#define OPTIONS2LOCAL (&options2local.super)
static
struct
command
options2keyfile
;
struct
command
options2keyfile
;
#define OPTIONS2KEYFILE (&options2keyfile.super)
struct
command
_simple
options2signature_algorithms
;
struct
command
options2signature_algorithms
;
#define OPTIONS2SIGNATURE_ALGORITHMS \
(&options2signature_algorithms.super
.super
)
(&options2signature_algorithms.super)
#include
"lshd.c.x"
...
...
@@ -262,25 +262,34 @@ make_lshd_options(struct io_backend *backend)
}
/* Port to listen on */
DEFINE_COMMAND_SIMPLE
(
options2local
,
a
)
DEFINE_COMMAND
(
options2local
)
(
struct
command
*
s
UNUSED
,
struct
lsh_object
*
a
,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
UNUSED
)
{
CAST
(
lshd_options
,
options
,
a
);
return
&
options
->
local
->
super
;
COMMAND_RETURN
(
c
,
options
->
local
)
;
}
/* alist of signature algorithms */
DEFINE_COMMAND_SIMPLE
(
options2signature_algorithms
,
a
)
DEFINE_COMMAND
(
options2signature_algorithms
)
(
struct
command
*
s
UNUSED
,
struct
lsh_object
*
a
,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
UNUSED
)
{
CAST
(
lshd_options
,
options
,
a
);
return
&
options
->
signature_algorithms
->
super
;
COMMAND_RETURN
(
c
,
options
->
signature_algorithms
)
;
}
/* Read server's private key */
static
void
do_options2keyfile
(
struct
command
*
ignored
UNUSED
,
struct
lsh_object
*
a
,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
)
DEFINE_COMMAND
(
options2keyfile
)
(
struct
command
*
ignored
UNUSED
,
struct
lsh_object
*
a
,
struct
command_continuation
*
c
,
struct
exception_handler
*
e
)
{
CAST
(
lshd_options
,
options
,
a
);
...
...
@@ -298,9 +307,6 @@ do_options2keyfile(struct command *ignored UNUSED,
}
}
static
struct
command
options2keyfile
=
STATIC_COMMAND
(
do_options2keyfile
);
static
const
struct
argp_option
main_options
[]
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment