#include "curlx.h" /* from the private lib dir */
-/* just to please curl_base64.h we create a fake struct */
-struct Curl_easy {
- int fake;
-};
-
#include "curl_base64.h"
#include "curl_memory.h"
#endif
-/*
- * Curl_convert_clone() returns a malloced copy of the source string (if
- * returning CURLE_OK), with the data converted to network format. This
- * function is used by base64 code in libcurl built to support data
- * conversion. This is a DUMMY VERSION that returns data unmodified - for
- * use by the test server only.
- */
-CURLcode Curl_convert_clone(struct Curl_easy *data,
- const char *indata,
- size_t insize,
- char **outbuf);
-CURLcode Curl_convert_clone(struct Curl_easy *data,
- const char *indata,
- size_t insize,
- char **outbuf)
-{
- char *convbuf;
- (void)data;
-
- convbuf = malloc(insize);
- if(!convbuf)
- return CURLE_OUT_OF_MEMORY;
-
- memcpy(convbuf, indata, insize);
- *outbuf = convbuf;
- return CURLE_OK;
-}
-
/*
* line_length()
*