mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
fixed keysig saving (forgot the id), enhancements on cmdline
This commit is contained in:
@@ -8,6 +8,7 @@ extern "C" {
|
||||
#include "pcp/config.h"
|
||||
#include "pcp/base85.h"
|
||||
#include "pcp/buffer.h"
|
||||
#include "pcp/config.h"
|
||||
#include "pcp/crypto.h"
|
||||
#include "pcp/defines.h"
|
||||
#include "pcp/digital_crc32.h"
|
||||
|
||||
@@ -196,6 +196,9 @@ void fatals_reset();
|
||||
*/
|
||||
void fatals_done();
|
||||
|
||||
extern int PCPVERBOSE;
|
||||
|
||||
|
||||
#endif /* _DEFINES_H */
|
||||
|
||||
/**@}*/
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
struct _pcp_keysig_t {
|
||||
uint8_t type;
|
||||
uint32_t size;
|
||||
char belongs[17];
|
||||
char id[17];
|
||||
byte checksum[32];
|
||||
byte *blob;
|
||||
UT_hash_handle hh;
|
||||
|
||||
@@ -89,6 +89,8 @@ byte *pcp_z85_decode(char *z85block, size_t *dstlen);
|
||||
/** Encode data to Z85 encoding.
|
||||
|
||||
Beside Z85 encoding it also adds a newline everiy 72 characters.
|
||||
It allocates the memory for the returned char pointer. The caller
|
||||
is responsible the free() it.
|
||||
|
||||
\param[in] raw Pointer to raw data.
|
||||
\param[in] srclen Size of the data.
|
||||
|
||||
Reference in New Issue
Block a user