Loading lib/base64.c +4 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -141,7 +141,8 @@ size_t Curl_base64_decode(const char *src, unsigned char **outptr) * */ size_t Curl_base64_encode(struct SessionHandle *data, const char *inp, size_t insize, char **outptr) const char *inputbuff, size_t insize, char **outptr) { unsigned char ibuf[3]; unsigned char obuf[4]; Loading @@ -153,7 +154,7 @@ size_t Curl_base64_encode(struct SessionHandle *data, char *convbuf = NULL; #endif const char *indata = inp; const char *indata = inputbuff; *outptr = NULL; /* set to NULL in case of failure before we reach the end */ Loading lib/curl_base64.h +10 −6 Original line number Diff line number Diff line #ifndef __CURL_BASE64_H #define __CURL_BASE64_H #ifndef HEADER_CURL_BASE64_H #define HEADER_CURL_BASE64_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | Loading @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -22,7 +22,11 @@ * * $Id$ ***************************************************************************/ size_t Curl_base64_encode(struct SessionHandle *data, const char *input, size_t size, char **str); size_t Curl_base64_decode(const char *source, unsigned char **outptr); #endif const char *inputbuff, size_t insize, char **outptr); size_t Curl_base64_decode(const char *src, unsigned char **outptr); #endif /* HEADER_CURL_BASE64_H */ lib/dict.c +3 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -112,7 +112,7 @@ const struct Curl_handler Curl_handler_dict = { PROT_DICT /* protocol */ }; static char *unescape_word(struct SessionHandle *data, const char *inp) static char *unescape_word(struct SessionHandle *data, const char *inputbuff) { char *newp; char *dictp; Loading @@ -121,7 +121,7 @@ static char *unescape_word(struct SessionHandle *data, const char *inp) char byte; int olen=0; newp = curl_easy_unescape(data, inp, 0, &len); newp = curl_easy_unescape(data, inputbuff, 0, &len); if(!newp) return NULL; Loading lib/dict.h +6 −5 Original line number Diff line number Diff line #ifndef __DICT_H #define __DICT_H #ifndef HEADER_CURL_DICT_H #define HEADER_CURL_DICT_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | Loading @@ -8,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -23,7 +22,9 @@ * * $Id$ ***************************************************************************/ #ifndef CURL_DISABLE_DICT extern const struct Curl_handler Curl_handler_dict; #endif #endif #endif /* HEADER_CURL_DICT_H */ Loading
lib/base64.c +4 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -141,7 +141,8 @@ size_t Curl_base64_decode(const char *src, unsigned char **outptr) * */ size_t Curl_base64_encode(struct SessionHandle *data, const char *inp, size_t insize, char **outptr) const char *inputbuff, size_t insize, char **outptr) { unsigned char ibuf[3]; unsigned char obuf[4]; Loading @@ -153,7 +154,7 @@ size_t Curl_base64_encode(struct SessionHandle *data, char *convbuf = NULL; #endif const char *indata = inp; const char *indata = inputbuff; *outptr = NULL; /* set to NULL in case of failure before we reach the end */ Loading
lib/curl_base64.h +10 −6 Original line number Diff line number Diff line #ifndef __CURL_BASE64_H #define __CURL_BASE64_H #ifndef HEADER_CURL_BASE64_H #define HEADER_CURL_BASE64_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | Loading @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -22,7 +22,11 @@ * * $Id$ ***************************************************************************/ size_t Curl_base64_encode(struct SessionHandle *data, const char *input, size_t size, char **str); size_t Curl_base64_decode(const char *source, unsigned char **outptr); #endif const char *inputbuff, size_t insize, char **outptr); size_t Curl_base64_decode(const char *src, unsigned char **outptr); #endif /* HEADER_CURL_BASE64_H */
lib/dict.c +3 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading Loading @@ -112,7 +112,7 @@ const struct Curl_handler Curl_handler_dict = { PROT_DICT /* protocol */ }; static char *unescape_word(struct SessionHandle *data, const char *inp) static char *unescape_word(struct SessionHandle *data, const char *inputbuff) { char *newp; char *dictp; Loading @@ -121,7 +121,7 @@ static char *unescape_word(struct SessionHandle *data, const char *inp) char byte; int olen=0; newp = curl_easy_unescape(data, inp, 0, &len); newp = curl_easy_unescape(data, inputbuff, 0, &len); if(!newp) return NULL; Loading
lib/dict.h +6 −5 Original line number Diff line number Diff line #ifndef __DICT_H #define __DICT_H #ifndef HEADER_CURL_DICT_H #define HEADER_CURL_DICT_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | Loading @@ -8,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -23,7 +22,9 @@ * * $Id$ ***************************************************************************/ #ifndef CURL_DISABLE_DICT extern const struct Curl_handler Curl_handler_dict; #endif #endif #endif /* HEADER_CURL_DICT_H */