Revert "Export base64 encoder and decoder"

There is currently no use for this.

This reverts commit c38f669e13.
pull/96/head
Andri Yngvason 2023-10-02 22:46:49 +00:00
parent a5fecc0b97
commit d2c8ab0b6c
2 changed files with 0 additions and 21 deletions

View File

@ -48,9 +48,6 @@
#define nvnc_trace(...)
#endif
#define NVNC_BASE64_ENCODED_SIZE(x) ((((x) + 2) / 3) * 4 + 1)
#define NVNC_BASE64_DECODED_MAX_SIZE(x) ((((x) + 3) / 4) * 3)
struct nvnc;
struct nvnc_client;
struct nvnc_desktop_layout;
@ -241,6 +238,3 @@ void nvnc_set_cursor(struct nvnc*, struct nvnc_fb*, uint16_t width,
void nvnc_set_log_fn(nvnc_log_fn);
void nvnc_set_log_level(enum nvnc_log_level);
void nvnc__log(const struct nvnc_log_data*, const char* fmt, ...);
void nvnc_base64_encode(char* dst, const uint8_t* src, size_t src_len);
ssize_t nvnc_base64_decode(uint8_t* dst, const char* src);

View File

@ -14,7 +14,6 @@
*/
#include "base64.h"
#include "neatvnc.h"
#include <unistd.h>
#include <stdint.h>
@ -22,8 +21,6 @@
#include <stdlib.h>
#include <string.h>
#define EXPORT __attribute__((visibility("default")))
static const char base64_enc_lut[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@ -156,15 +153,3 @@ ssize_t base64_decode(uint8_t* dst, const char* src)
return i * 3 + di;
}
EXPORT
void nvnc_base64_encode(char* dst, const uint8_t* src, size_t src_len)
{
base64_encode(dst, src, src_len);
}
EXPORT
ssize_t nvnc_base64_decode(uint8_t* dst, const char* src)
{
return base64_decode(dst, src);
}