Commit bdc392be authored by Philipp Schafft's avatar Philipp Schafft 🦁

some smaller stuff needed to get new authing stuff done

svn path=/icecast/trunk/icecast/; revision=19346
parent 6cca1c55
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment