Browse Source

renamed functions

master
root 5 years ago
parent
commit
7221807e3b
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      inc/lc6_base64.h
  2. 2
    2
      src/lc6_base64.c

+ 2
- 2
inc/lc6_base64.h View File



#include "../inc/lc6_common.h" #include "../inc/lc6_common.h"


unsigned char* base64_encode(const unsigned char*, size_t, size_t*);
unsigned char* base64_decode(const unsigned char*, size_t, size_t*);
unsigned char* lc6base64_encode(const unsigned char*, size_t, size_t*);
unsigned char* lc6base64_decode(const unsigned char*, size_t, size_t*);


#endif #endif



+ 2
- 2
src/lc6_base64.c View File

* nul terminated to make it easier to use as a C string. The nul terminator is * nul terminated to make it easier to use as a C string. The nul terminator is
* not included in out_len. * not included in out_len.
*/ */
unsigned char* base64_encode(const unsigned char *src, size_t len,
unsigned char* lc6base64_encode(const unsigned char *src, size_t len,
size_t *out_len) size_t *out_len)
{ {
unsigned char *out, *pos; unsigned char *out, *pos;
* *
* Caller is responsible for freeing the returned buffer. * Caller is responsible for freeing the returned buffer.
*/ */
unsigned char * base64_decode(const unsigned char *src, size_t len,
unsigned char * lc6base64_decode(const unsigned char *src, size_t len,
size_t *out_len) size_t *out_len)
{ {
unsigned char dtable[256], *out, *pos, block[4], tmp; unsigned char dtable[256], *out, *pos, block[4], tmp;

Loading…
Cancel
Save