]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add more fields to ucl definition of the keypair
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Feb 2016 18:02:10 +0000 (18:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Feb 2016 18:02:10 +0000 (18:02 +0000)
src/rspamadm/keypair.c

index be33a65124f3ee32b3a8577512406d9d458d9b0e..8b3c8255b7dae71d77b2cac93fb5d4cd1a9594cb 100644 (file)
@@ -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);