Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
7c6c79c4
Commit
7c6c79c4
authored
Aug 09, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build fix with libcurl 7.16 onwards
svn path=/icecast/trunk/icecast/; revision=13495
parent
adac7ebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/auth_url.c
src/auth_url.c
+4
-0
No files found.
src/auth_url.c
View file @
7c6c79c4
...
@@ -112,12 +112,14 @@ static void auth_url_clear(auth_t *self)
...
@@ -112,12 +112,14 @@ static void auth_url_clear(auth_t *self)
}
}
#ifdef CURLOPT_PASSWDFUNCTION
/* make sure that prompting at the console does not occur */
/* make sure that prompting at the console does not occur */
static
int
my_getpass
(
void
*
client
,
char
*
prompt
,
char
*
buffer
,
int
buflen
)
static
int
my_getpass
(
void
*
client
,
char
*
prompt
,
char
*
buffer
,
int
buflen
)
{
{
buffer
[
0
]
=
'\0'
;
buffer
[
0
]
=
'\0'
;
return
0
;
return
0
;
}
}
#endif
static
int
handle_returned_header
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
stream
)
static
int
handle_returned_header
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
stream
)
...
@@ -518,7 +520,9 @@ int auth_get_url_auth (auth_t *authenticator, config_options_t *options)
...
@@ -518,7 +520,9 @@ int auth_get_url_auth (auth_t *authenticator, config_options_t *options)
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_WRITEDATA
,
url_info
->
handle
);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_WRITEDATA
,
url_info
->
handle
);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_NOSIGNAL
,
1L
);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_NOSIGNAL
,
1L
);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_TIMEOUT
,
15L
);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_TIMEOUT
,
15L
);
#ifdef CURLOPT_PASSWDFUNCTION
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_PASSWDFUNCTION
,
my_getpass
);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_PASSWDFUNCTION
,
my_getpass
);
#endif
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_ERRORBUFFER
,
&
url_info
->
errormsg
[
0
]);
curl_easy_setopt
(
url_info
->
handle
,
CURLOPT_ERRORBUFFER
,
&
url_info
->
errormsg
[
0
]);
if
(
url_info
->
username
&&
url_info
->
password
)
if
(
url_info
->
username
&&
url_info
->
password
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment