71 #define PROXY_PASS_RES_LEN 16 180 int OPENELP_API
get_nonce(uint32_t *nonce);
203 const char *callsign);
261 const char *fmt, ...);
char * calls_denied
Definition: openelp.h:134
int proxy_start(struct proxy_handle *ph)
Starts the client processing thread(s)
void proxy_shutdown(struct proxy_handle *ph)
Gracefully shut down all proxy operations asynchronously.
int proxy_authorize_callsign(struct proxy_handle *ph, const char *callsign)
Authorizes the given callsign against the proxy's configuration.
char ** bind_addr_ext_add
Definition: openelp.h:128
void proxy_log_level(struct proxy_handle *ph, enum LOG_LEVEL lvl)
Changes the log message importance threshold.
#define PROXY_PASS_RES_LEN
Definition: openelp.h:71
void * priv
Definition: openelp.h:167
void proxy_free(struct proxy_handle *ph)
Frees data allocated by proxy_init.
uint16_t port
Definition: openelp.h:155
uint32_t connection_timeout
Definition: openelp.h:149
char * bind_addr
Definition: openelp.h:122
int proxy_load_conf(struct proxy_handle *ph, const char *path)
Loads the configuration from the file at the given path.
int get_nonce(uint32_t *nonce)
Get a single-use 32-bit number.
struct proxy_conf conf
Definition: openelp.h:170
Definition: openelp.h:107
Configuration instance for a proxy_handle.
Definition: openelp.h:120
char * password
Definition: openelp.h:137
Represents an instance of an EchoLink proxy.
Definition: openelp.h:165
int proxy_open(struct proxy_handle *ph)
Opens the proxy for client connections.
int proxy_log_select_medium(struct proxy_handle *ph, enum LOG_MEDIUM medium, const char *target)
Changes the target logging medium.
int proxy_init(struct proxy_handle *ph)
Initializes the private data in a proxy_handle.
Definition: openelp.h:110
char * public_addr
Definition: openelp.h:146
int proxy_process(struct proxy_handle *ph)
Blocking call to process new clients.
void proxy_drop(struct proxy_handle *ph)
Drops all currently connected clients from the proxy.
char * reg_comment
Definition: openelp.h:143
void proxy_update_registration(struct proxy_handle *ph)
Updates the registration status of the proxy instance.
LOG_LEVEL
Severity level of log information.
Definition: openelp.h:76
char * calls_allowed
Definition: openelp.h:131
LOG_MEDIUM
Logging facilities to write logging events to.
Definition: openelp.h:96
void proxy_close(struct proxy_handle *ph)
Closes the proxy so no more clients can connect.
void proxy_ident(struct proxy_handle *ph)
Instructs the proxy to identify itself to the current log medium.
char * bind_addr_ext
Definition: openelp.h:125
uint16_t bind_addr_ext_add_len
Definition: openelp.h:152
Definition: openelp.h:101
void proxy_log(struct proxy_handle *ph, enum LOG_LEVEL lvl, const char *fmt,...)
Logs the given message to the current medium if lvl is high enough.
char * reg_name
Definition: openelp.h:140
int get_password_response(uint32_t nonce, const char *password, uint8_t response[PROXY_PASS_RES_LEN])
Gets the expected response for a given nonce and password.
Definition: openelp.h:104