Skip to content
GitLab
Menu
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
2fd6a79f
Commit
2fd6a79f
authored
Oct 17, 2000
by
Niels Möller
Browse files
* src/lsh-decode-key.c (do_decode_key): Use publickey-related
functions and methods. Rev: src/lsh-decode-key.c:1.5
parent
6eba4eb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsh-decode-key.c
View file @
2fd6a79f
...
...
@@ -11,6 +11,7 @@
#include "publickey_crypto.h"
#include "read_file.h"
#include "sexp_commands.h"
#include "spki.h"
#include "version.h"
#include "werror.h"
#include "xalloc.h"
...
...
@@ -153,12 +154,11 @@ do_decode_key(struct abstract_write *s,
{
case
ATOM_SSH_DSS
:
{
struct
dsa_public
dsa
;
struct
verifier
*
v
;
werror
(
"Reading key of type ssh-dss...
\n
"
);
init_dsa_public
(
&
dsa
);
if
(
!
parse_ds
a
_public
(
&
buffer
,
&
dsa
))
if
(
!
(
(
v
=
parse_
ssh_
ds
s
_public
(
&
buffer
))
))
{
EXCEPTION_RAISE
(
self
->
e
,
make_simple_exception
(
EXC_APP_BAD_KEY
,
...
...
@@ -166,9 +166,7 @@ do_decode_key(struct abstract_write *s,
return
;
}
COMMAND_RETURN
(
self
->
c
,
sexp_l
(
2
,
sexp_a
(
ATOM_PUBLIC_KEY
),
make_dsa_public_key
(
&
dsa
),
-
1
));
dsa_public_free
(
&
dsa
);
COMMAND_RETURN
(
self
->
c
,
spki_make_public_key
(
v
));
break
;
}
default:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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