mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
This allows a <role> represented by a auth_t to run in "immediate" mode. In this mode no thread is created for this <role>. This is a major speedup. Closes #2124
32 lines
701 B
C
32 lines
701 B
C
/* Icecast
|
|
*
|
|
* This program is distributed under the GNU General Public License, version 2.
|
|
* A copy of this license is included with this source.
|
|
*
|
|
* Copyright 2014, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>,
|
|
*/
|
|
|
|
/**
|
|
* Client authentication functions
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include <config.h>
|
|
#endif
|
|
|
|
#include "auth.h"
|
|
#include "client.h"
|
|
|
|
#include "logging.h"
|
|
#define CATMODULE "auth_anonymous"
|
|
|
|
static auth_result anonymous_auth (auth_client *auth_user) {
|
|
return AUTH_OK;
|
|
}
|
|
|
|
int auth_get_anonymous_auth (auth_t *authenticator, config_options_t *options) {
|
|
authenticator->authenticate_client = anonymous_auth;
|
|
authenticator->immediate = 1;
|
|
return 0;
|
|
}
|