diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-02 18:02:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-02 18:02:10 +0000 |
commit | 29f54d263c352640cfcf386a062f5ff37b401f7e (patch) | |
tree | a531d7acc398c5f8e9671d3097ca157f7f8a996f | |
parent | 86a83a59d0be62fb6789218e90fadf44d99dcba2 (diff) | |
download | rspamd-29f54d263c352640cfcf386a062f5ff37b401f7e.tar.gz rspamd-29f54d263c352640cfcf386a062f5ff37b401f7e.zip |
Add more fields to ucl definition of the keypair
-rw-r--r-- | src/rspamadm/keypair.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rspamadm/keypair.c b/src/rspamadm/keypair.c index be33a6512..8b3c8255b 100644 --- a/src/rspamadm/keypair.c +++ b/src/rspamadm/keypair.c @@ -167,6 +167,12 @@ rspamadm_keypair (gint argc, gchar **argv) ucl_object_insert_key (elt, ucl_object_fromstring (encoding), "encoding", 0, false); + ucl_object_insert_key (elt, + ucl_object_fromstring (openssl ? "nistp256" : "curve25519"), + "algorithm", 0, false); + ucl_object_insert_key (elt, + ucl_object_fromstring ("kex"), + "type", 0, false); ucl_emit_subr = ucl_object_emit_file_funcs (stdout); ucl_object_emit_full (ucl_out, UCL_EMIT_CONFIG, ucl_emit_subr); @@ -236,6 +242,13 @@ rspamadm_keypair (gint argc, gchar **argv) ucl_object_fromstring (encoding), "encoding", 0, false); + ucl_object_insert_key (elt, + ucl_object_fromstring (openssl ? "nistp256" : "curve25519"), + "algorithm", 0, false); + ucl_object_insert_key (elt, + ucl_object_fromstring ("sign"), + "type", 0, false); + ucl_emit_subr = ucl_object_emit_file_funcs (stdout); ucl_object_emit_full (ucl_out, UCL_EMIT_CONFIG, ucl_emit_subr); ucl_object_emit_funcs_free (ucl_emit_subr); |