From 0ba0c6d04d69f50292dd18e913a447ee70d92db7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 6 May 2014 00:05:11 +0000 Subject: New netconf... --- main.cpp | 1 + netconf-service/index.js | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 6e9bf5db..2d93b49e 100644 --- a/main.cpp +++ b/main.cpp @@ -189,6 +189,7 @@ static void printHelp(FILE *out,const char *pn) fprintf(out," getpublic "ZT_EOL_S); fprintf(out," sign "ZT_EOL_S); fprintf(out," verify "ZT_EOL_S); + fprintf(out," mkcom [ ...] (hexadecimal integers)"ZT_EOL_S); } static Identity getIdFromArg(char *arg) diff --git a/netconf-service/index.js b/netconf-service/index.js index 7ab2b35e..701e9dfe 100644 --- a/netconf-service/index.js +++ b/netconf-service/index.js @@ -184,19 +184,27 @@ function Identity(idstr) this.fromString = function(str) { thiz.str = ''; thiz.fields = []; - if (!str) + if (typeof str !== 'string') return; + for(var i=0;i= 4)); + }; if (typeof idstr === 'string') thiz.fromString(idstr); -- cgit v1.2.3