Explorar el Código

renamed functions

master
root hace 5 años
padre
commit
7221807e3b
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2
    2
      inc/lc6_base64.h
  2. 2
    2
      src/lc6_base64.c

+ 2
- 2
inc/lc6_base64.h Ver fichero

@@ -3,8 +3,8 @@

#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


+ 2
- 2
src/lc6_base64.c Ver fichero

@@ -27,7 +27,7 @@ static const unsigned char base64_table[65] =
* nul terminated to make it easier to use as a C string. The nul terminator is
* 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)
{
unsigned char *out, *pos;
@@ -95,7 +95,7 @@ unsigned char* base64_encode(const unsigned char *src, size_t len,
*
* 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)
{
unsigned char dtable[256], *out, *pos, block[4], tmp;

Cargando…
Cancelar
Guardar