rawyaml mode

This commit is contained in:
cathugger
2020-01-17 14:15:56 +00:00
parent 30c05eb266
commit c57f10316f
6 changed files with 89 additions and 33 deletions

View File

@@ -33,8 +33,8 @@
#endif
// additional 0 terminator is added by C
static const char * const pkprefix = "== ed25519v1-public: type0 ==\0\0";
static const char * const skprefix = "== ed25519v1-secret: type0 ==\0\0";
const char * const pkprefix = "== ed25519v1-public: type0 ==\0\0";
const char * const skprefix = "== ed25519v1-secret: type0 ==\0\0";
static const char checksumstr[] = ".onion checksum";
#define checksumstrlen (sizeof(checksumstr) - 1) // 15
@@ -44,6 +44,7 @@ volatile size_t keysgenerated = 0;
volatile int endwork = 0;
int yamloutput = 0;
int yamlraw = 0;
int numwords = 1;
size_t numneedgenerate = 0;
@@ -127,8 +128,9 @@ static void onionready(char *sname,const u8 *secret,const u8 *pubonion)
fflush(fout);
pthread_mutex_unlock(&fout_mutex);
}
} else
yamlout_writekeys(&sname[direndpos],pubonion,secret);
}
else
yamlout_writekeys(&sname[direndpos],pubonion,secret,yamlraw);
}
#include "filters_worker.inc.h"