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
1dafa4f7
Commit
1dafa4f7
authored
Nov 14, 2000
by
Niels Möller
Browse files
* src/lsh-writekey.c: Use the DEFINE_COMMAND_SIMPLE macro.
Rev: src/lsh-writekey.c:1.5
parent
05f375c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsh-writekey.c
View file @
1dafa4f7
...
...
@@ -303,7 +303,7 @@ main_argp =
NULL
,
NULL
};
COMMAND_SIMPLE
(
lsh_writekey_print_public
)
DEFINE_
COMMAND_SIMPLE
(
lsh_writekey_print_public
,
a
)
{
CAST
(
lsh_writekey_options
,
options
,
a
);
...
...
@@ -311,7 +311,7 @@ COMMAND_SIMPLE(lsh_writekey_print_public)
((
options
->
style
>
0
)
?
options
->
style
:
SEXP_TRANSPORT
)
->
super
.
super
;
}
COMMAND_SIMPLE
(
lsh_writekey_print_private
)
DEFINE_
COMMAND_SIMPLE
(
lsh_writekey_print_private
,
a
)
{
CAST
(
lsh_writekey_options
,
options
,
a
);
...
...
@@ -319,13 +319,13 @@ COMMAND_SIMPLE(lsh_writekey_print_private)
((
options
->
style
>
0
)
?
options
->
style
:
SEXP_CANONICAL
)
->
super
.
super
;
}
COMMAND_SIMPLE
(
lsh_writekey_options2algorithms
)
DEFINE_
COMMAND_SIMPLE
(
lsh_writekey_options2algorithms
,
a
)
{
CAST
(
lsh_writekey_options
,
options
,
a
);
return
&
options
->
signature_algorithms
->
super
;
}
COMMAND_SIMPLE
(
lsh_writekey_options2transform
)
DEFINE_
COMMAND_SIMPLE
(
lsh_writekey_options2transform
,
a
)
{
CAST
(
lsh_writekey_options
,
options
,
a
);
if
(
!
options
->
crypto
)
...
...
@@ -349,7 +349,7 @@ COMMAND_SIMPLE(lsh_writekey_options2transform)
}
}
COMMAND_SIMPLE
(
lsh_writekey_options2public_file
)
DEFINE_
COMMAND_SIMPLE
(
lsh_writekey_options2public_file
,
a
)
{
CAST
(
lsh_writekey_options
,
options
,
a
);
struct
lsh_string
*
public
=
ssh_cformat
(
"%lS.pub"
,
options
->
file
);
...
...
@@ -361,7 +361,7 @@ COMMAND_SIMPLE(lsh_writekey_options2public_file)
BLOCK_SIZE
)
->
super
;
}
COMMAND_SIMPLE
(
lsh_writekey_options2private_file
)
DEFINE_
COMMAND_SIMPLE
(
lsh_writekey_options2private_file
,
a
)
{
CAST
(
lsh_writekey_options
,
options
,
a
);
return
...
...
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