Lines 112-125
Link Here
|
112 |
} |
112 |
} |
113 |
|
113 |
|
114 |
|
114 |
|
115 |
/* make sure that prompting at the console does not occur */ |
|
|
116 |
static int my_getpass(void *client, char *prompt, char *buffer, int buflen) |
117 |
{ |
118 |
buffer[0] = '\0'; |
119 |
return 0; |
120 |
} |
121 |
|
122 |
|
123 |
static int handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream) |
115 |
static int handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream) |
124 |
{ |
116 |
{ |
125 |
auth_client *auth_user = stream; |
117 |
auth_client *auth_user = stream; |
Lines 518-524
Link Here
|
518 |
curl_easy_setopt (url_info->handle, CURLOPT_WRITEDATA, url_info->handle); |
510 |
curl_easy_setopt (url_info->handle, CURLOPT_WRITEDATA, url_info->handle); |
519 |
curl_easy_setopt (url_info->handle, CURLOPT_NOSIGNAL, 1L); |
511 |
curl_easy_setopt (url_info->handle, CURLOPT_NOSIGNAL, 1L); |
520 |
curl_easy_setopt (url_info->handle, CURLOPT_TIMEOUT, 15L); |
512 |
curl_easy_setopt (url_info->handle, CURLOPT_TIMEOUT, 15L); |
521 |
curl_easy_setopt (url_info->handle, CURLOPT_PASSWDFUNCTION, my_getpass); |
|
|
522 |
curl_easy_setopt (url_info->handle, CURLOPT_ERRORBUFFER, &url_info->errormsg[0]); |
513 |
curl_easy_setopt (url_info->handle, CURLOPT_ERRORBUFFER, &url_info->errormsg[0]); |
523 |
|
514 |
|
524 |
if (url_info->username && url_info->password) |
515 |
if (url_info->username && url_info->password) |