Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
bdc392be
Commit
bdc392be
authored
Nov 22, 2014
by
Philipp Schafft
🦁
Browse files
some smaller stuff needed to get new authing stuff done
svn path=/icecast/trunk/icecast/; revision=19346
parent
6cca1c55
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/auth.c
View file @
bdc392be
...
...
@@ -602,8 +602,7 @@ static int get_authenticator (auth_t *auth, config_options_t *options)
{
ICECAST_LOG_DEBUG
(
"type is %s"
,
auth
->
type
);
if
(
strcmp
(
auth
->
type
,
"url"
)
==
0
)
{
if
(
strcmp
(
auth
->
type
,
"url"
)
==
0
)
{
#ifdef HAVE_AUTH_URL
if
(
auth_get_url_auth
(
auth
,
options
)
<
0
)
return
-
1
;
...
...
@@ -612,9 +611,7 @@ static int get_authenticator (auth_t *auth, config_options_t *options)
ICECAST_LOG_ERROR
(
"Auth URL disabled"
);
return
-
1
;
#endif
}
if
(
strcmp
(
auth
->
type
,
"htpasswd"
)
==
0
)
{
}
else
if
(
strcmp
(
auth
->
type
,
"htpasswd"
)
==
0
)
{
if
(
auth_get_htpasswd_auth
(
auth
,
options
)
<
0
)
return
-
1
;
break
;
...
...
src/auth.h
View file @
bdc392be
...
...
@@ -29,10 +29,17 @@ struct auth_tag;
typedef
enum
{
/* XXX: ??? */
AUTH_UNDEFINED
,
/* user authed successfull */
AUTH_OK
,
/* user authed failed */
AUTH_FAILED
,
/* XXX: ??? */
AUTH_FORBIDDEN
,
/* No match for given username or other identifier found */
AUTH_NOMATCH
,
/* status codes for database changes */
AUTH_USERADDED
,
AUTH_USEREXISTS
,
AUTH_USERDELETED
...
...
Write
Preview
Supports
Markdown
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