auth_anonymous.c 738 Bytes
Newer Older
Philipp Schafft's avatar
Philipp Schafft committed
1 2 3 4 5
/* Icecast
 *
 * This program is distributed under the GNU General Public License, version 2.
 * A copy of this license is included with this source.
 *
6
 * Copyright 2014-2015, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>,
Philipp Schafft's avatar
Philipp Schafft committed
7 8
 */

9
/**
Philipp Schafft's avatar
Philipp Schafft committed
10 11 12 13 14 15 16 17 18 19 20 21 22
 * Client authentication functions
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "auth.h"
#include "client.h"

#include "logging.h"
#define CATMODULE "auth_anonymous"

Marvin Scholz's avatar
Marvin Scholz committed
23 24
static auth_result anonymous_auth(auth_client *auth_user)
{
25
    (void)auth_user;
Philipp Schafft's avatar
Philipp Schafft committed
26 27 28
    return AUTH_OK;
}

Marvin Scholz's avatar
Marvin Scholz committed
29 30
int  auth_get_anonymous_auth(auth_t *authenticator, config_options_t *options)
{
31
    (void)options;
Philipp Schafft's avatar
Philipp Schafft committed
32
    authenticator->authenticate_client = anonymous_auth;
33
    authenticator->immediate = 1;
Philipp Schafft's avatar
Philipp Schafft committed
34 35
    return 0;
}