소스 검색

renamed functions

master
root 5 년 전
부모
커밋
7221807e3b
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    2
      inc/lc6_base64.h
  2. 2
    2
      src/lc6_base64.c

+ 2
- 2
inc/lc6_base64.h 파일 보기

@@ -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 파일 보기

@@ -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;

Loading…
취소
저장