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

(spki_signer2verifier): Deleted command.

(spki_verifier2public): Deleted command.

Rev: src/spki_commands.c:1.29
parent 605b6bbc
......@@ -61,32 +61,9 @@ struct command spki_add_userkey_command;
EXCEPTION_RAISE((e), make_spki_exception(EXC_SPKI_TYPE, (msg), (expr)))
/* Various conversion functions */
DEFINE_COMMAND(spki_signer2verifier)
(struct command *s UNUSED,
struct lsh_object *a,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{
CAST_SUBTYPE(signer, private, a);
COMMAND_RETURN(c, SIGNER_GET_VERIFIER(private));
}
DEFINE_COMMAND(spki_verifier2public)
(struct command *s UNUSED,
struct lsh_object *a,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{
CAST_SUBTYPE(verifier, v, a);
COMMAND_RETURN(c, spki_make_public_key(v));
}
/* Reading keys */
/* FIXME: Ued only by sexp2keypair, move code there? */
/* FIXME: Used only by sexp2keypair, move code there? */
static void
parse_private_key(struct alist *algorithms,
struct sexp_iterator *i,
......
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