Update which branch we are doing
Also fix bugs from dumping hash signtures
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb22aea..90c6399 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -131,7 +131,7 @@
ExternalProject_Add(
project_cn-cbor
GIT_REPOSITORY https://github.com/jimsch/cn-cbor
- GIT_TAG complete
+ GIT_TAG master
CMAKE_ARGS -Doptimize=OFF -Duse_context=${use_context} -Dbuild_docs=OFF -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -Dcoveralls=OFF -Dbuild_shared_libs=${build_shared_libs} -Dfatal_warnings=OFF
INSTALL_DIR "${dist_dir}"
UPDATE_DISCONNECTED 1
@@ -180,4 +180,4 @@
if(build_tests)
include (CTest)
add_subdirectory(test)
-endif()
\ No newline at end of file
+endif()
diff --git a/dumper/dumper.c b/dumper/dumper.c
index 945226b..c46391f 100644
--- a/dumper/dumper.c
+++ b/dumper/dumper.c
@@ -39,7 +39,8 @@
#define CBOR_CONTEXT_PARAM
#endif
-FOO AlgorithmMap[37] = {
+FOO AlgorithmMap[38] = {
+ { "HSS-LMS", CN_CBOR_INT, -46, NULL, 0, 0},
{ "ECHD-SS+A256KW", CN_CBOR_INT, -34, NULL, 0, 0 },
{ "ECHD-SS+A192KW", CN_CBOR_INT, -33, NULL, 0, 0 },
{ "ECHD-SS+A128KW", CN_CBOR_INT, -32, NULL, 0, 0 },
@@ -238,12 +239,12 @@
};
size_t WrapLineAt = 0;
-char OutputBuffer[4096];
+char OutputBuffer[4*4096];
void WrapPrintF(FILE * fp, char * format, ...)
{
va_list args;
- char buffer[4000];
+ char buffer[10000];
char * iRet;
va_start(args, format);
@@ -272,7 +273,7 @@
fprintf(fp, "%s", t);
fprintf(fp, "\n");
if (strlen(OutputBuffer) + strlen(iRet + 1) >= sizeof(OutputBuffer)-1) {
- fprintf(stderr, "Internal buffer too small for dumpping");
+ fprintf(stderr, "Internal buffer too small for dumping");
exit(1);
}
strcpy(OutputBuffer, iRet + 1);