155
171
const char *indata = inputbuff;
162
179
base64data = output = malloc(insize*4/3+4);
167
184
* The base64 data needs to be created using the network encoding
168
185
* not the host encoding. And we can't change the actual input
169
186
* so we copy it to a buffer, translate it, and use that instead.
171
res = Curl_convert_clone(data, indata, insize, &convbuf);
188
error = Curl_convert_clone(data, indata, insize, &convbuf);