static CURLcode pausewrite(struct SessionHandle *data,
int type, /* what type of data */
- char *ptr,
+ const char *ptr,
size_t len)
{
/* signalled to pause sending on this connection, but since we have data
The bit pattern defines to what "streams" to write to. Body and/or header.
The defines are in sendf.h of course.
+
+ If CURL_DO_LINEEND_CONV is enabled, data is converted IN PLACE to the
+ local character encoding. This is a problem and should be changed in
+ the future to leave the original data alone.
*/
CURLcode Curl_client_write(struct connectdata *conn,
int type,
2: CN must match hostname */
char *CApath; /* certificate dir (doesn't work on windows) */
char *CAfile; /* cerficate to verify peer against */
- char *CRLfile; /* CRL to check cerficate revocation */
- char *issuercert; /* optional issuer cerficate filename */
+ const char *CRLfile; /* CRL to check cerficate revocation */
+ const char *issuercert;/* optional issuer cerficate filename */
char *random_file; /* path to file containing "random" data */
char *egdsocket; /* path to file containing the EGD daemon socket */
char *cipher_list; /* list of ciphers to use */
struct HTTP {
struct FormData *sendit;
curl_off_t postsize; /* off_t to handle large file sizes */
- char *postdata;
+ const char *postdata;
const char *p_pragma; /* Pragma: string */
const char *p_accept; /* Accept: string */
struct back {
curl_read_callback fread_func; /* backup storage for fread pointer */
void *fread_in; /* backup storage for fread_in pointer */
- char *postdata;
+ const char *postdata;
curl_off_t postsize;
} backup;
char *rawalloc; /* allocated "raw" version of the name */
char *encalloc; /* allocated IDN-encoded version of the name */
char *name; /* name to use internally, might be encoded, might be raw */
- char *dispname; /* name to display, as 'name' might be encoded */
+ const char *dispname; /* name to display, as 'name' might be encoded */
};
/*