diff --git a/include/zmq_utils.h b/include/zmq_utils.h index a40df7e2..4fe8fcd2 100644 --- a/include/zmq_utils.h +++ b/include/zmq_utils.h @@ -82,6 +82,12 @@ ZMQ_EXPORT void *zmq_threadstart (zmq_thread_fn* func, void* arg); /* Wait for thread to complete then free up resources. */ ZMQ_EXPORT void zmq_threadclose (void* thread); +/* Encode data with Z85 encoding. Returns encoded data */ +ZMQ_EXPORT char *zmq_z85_encode (char *dest, uint8_t *data, size_t size); + +/* Decode data with Z85 encoding. Returns decoded data */ +ZMQ_EXPORT uint8_t *zmq_z85_decode (uint8_t *dest, char *string); + #undef ZMQ_EXPORT #ifdef __cplusplus diff --git a/tools/curve_keygen.c b/tools/curve_keygen.c index c18c4621..eb1f0bbb 100644 --- a/tools/curve_keygen.c +++ b/tools/curve_keygen.c @@ -25,6 +25,7 @@ */ #include +#include #include #ifdef HAVE_LIBSODIUM # include