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

* src/lsh-decode-key.c (do_decode_key): Support ssh-rsa keys.

Rev: src/lsh-decode-key.c:1.7
parent 8e5e469b
......@@ -169,6 +169,23 @@ do_decode_key(struct abstract_write *s,
COMMAND_RETURN(self->c, spki_make_public_key(v));
break;
}
case ATOM_SSH_RSA:
{
struct verifier *v;
werror("Reading key of type ssh-rsa...\n");
if (! ( (v = parse_ssh_rsa_public(&buffer)) ))
{
EXCEPTION_RAISE(self->e,
make_simple_exception(EXC_APP_BAD_KEY,
"Invalid rsa key.\n"));
return;
}
COMMAND_RETURN(self->c, spki_make_public_key(v));
break;
}
default:
EXCEPTION_RAISE(self->e,
make_simple_exception(EXC_APP_BAD_KEY,
......
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