From 810dde21ee65653c15606917b19566cfbaaf165e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 9 Aug 2022 21:54:45 +0200 Subject: ecp server added --- ecp/util/mknode.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ecp/util/mknode.c') diff --git a/ecp/util/mknode.c b/ecp/util/mknode.c index 764ac18..bc66da0 100644 --- a/ecp/util/mknode.c +++ b/ecp/util/mknode.c @@ -4,7 +4,7 @@ #include #include -#include +#include #include "util.h" @@ -38,8 +38,11 @@ int main(int argc, char *argv[]) { rv = ecp_dhkey_gen(&key); if (rv) goto err; - rv = ecp_node_init(&node, &key.public, addr); - if (rv) goto err; + ecp_node_init(&node, &key.public, NULL); + if (addr) { + rv = ecp_node_set_addr(&node, addr); + if (rv) goto err; + } rv = ecp_util_save_key(&key.public, &key.private, fn_key); if (rv) goto err; -- cgit v1.2.3