|
|
@ -12,6 +12,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <llarp/util/logging/buffer.hpp>
|
|
|
|
#include <llarp/util/logging/buffer.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <oxenmq/base32z.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <mutex>
|
|
|
|
#include <mutex>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifdef _WIN32
|
|
|
@ -546,6 +548,13 @@ extern "C"
|
|
|
|
return id;
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char* EXPORT
|
|
|
|
|
|
|
|
lokinet_hex_to_base32z(const char* hex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const auto base32z = oxenmq::to_base32z(oxenmq::from_hex(std::string{hex}));
|
|
|
|
|
|
|
|
return strdup(base32z.c_str());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void EXPORT
|
|
|
|
void EXPORT
|
|
|
|
lokinet_close_stream(int stream_id, struct lokinet_context* ctx)
|
|
|
|
lokinet_close_stream(int stream_id, struct lokinet_context* ctx)
|
|
|
|
{
|
|
|
|
{
|
|
|
|