data->url = va_arg(param, char *);
break;
case CURLOPT_PORT:
- /* this typecast is used to fool the compiler to NOT warn for a
- "cast from pointer to integer of different size" */
- data->port = (unsigned short)(va_arg(param, long));
+ data->port = va_arg(param, long);
break;
case CURLOPT_POSTFIELDS:
data->postfields = va_arg(param, char *);
bool use; /* use ssl encrypted communications TRUE/FALSE */
long version; /* what version the client wants to use */
long certverifyresult; /* result from the certificate verification */
- bool verifypeer; /* set TRUE if this is desired */
+ long verifypeer; /* set TRUE if this is desired */
char *CApath; /* DOES NOT WORK ON WINDOWS */
char *CAfile; /* cerficate to verify peer against */
#ifdef USE_SSLEAY
char *url; /* what to get */
char *freethis; /* if non-NULL, an allocated string for the URL */
char *hostname; /* hostname to connect, as parsed from url */
- unsigned short port; /* which port to use (if non-protocol bind) set
- CONF_PORT to use this */
+ long port; /* which port to use (if non-protocol bind) set
+ CONF_PORT to use this */
unsigned short remote_port; /* what remote port to connect to, not the proxy
port! */
struct Configbits bits; /* new-style (v7) flag data */