# DO NOT EDIT. This file is generated from Config.src # # For a description of the syntax of this configuration file, # see scripts/kbuild/config-language.txt. # menu "Runit Utilities" config BUSYBOX_CONFIG_RUNSV bool "runsv" default n help runsv starts and monitors a service and optionally an appendant log service. config BUSYBOX_CONFIG_RUNSVDIR bool "runsvdir" default n help runsvdir starts a runsv process for each subdirectory, or symlink to a directory, in the services directory dir, up to a limit of 1000 subdirectories, and restarts a runsv process if it terminates. config BUSYBOX_CONFIG_FEATURE_RUNSVDIR_LOG bool "Enable scrolling argument log" depends on BUSYBOX_CONFIG_RUNSVDIR default n help Enable feature where second parameter of runsvdir holds last error message (viewable via top/ps). Otherwise (feature is off or no parameter), error messages go to stderr only. config BUSYBOX_CONFIG_SV bool "sv" default n help sv reports the current status and controls the state of services monitored by the runsv supervisor. config BUSYBOX_CONFIG_SV_DEFAULT_SERVICE_DIR string "Default directory for services" default "/var/service" depends on BUSYBOX_CONFIG_SV help Default directory for services. Defaults to "/var/service" config BUSYBOX_CONFIG_SVLOGD bool "svlogd" default n help svlogd continuously reads log data from its standard input, optionally filters log messages, and writes the data to one or more automatically rotated logs. config BUSYBOX_CONFIG_CHPST bool "chpst" default n help chpst changes the process state according to the given options, and execs specified program. config BUSYBOX_CONFIG_SETUIDGID bool "setuidgid" default n help Sets soft resource limits as specified by options config BUSYBOX_CONFIG_ENVUIDGID bool "envuidgid" default n help Sets $UID to account's uid and $GID to account's gid config BUSYBOX_CONFIG_ENVDIR bool "envdir" default n help Sets various environment variables as specified by files in the given directory config BUSYBOX_CONFIG_SOFTLIMIT bool "softlimit" default n help Sets soft resource limits as specified by options endmenu etwork/services/ead/src/tinysrp/tinysrp.h?h=v18.06.6'>diffstats
path: root/package/network/services/ead/src/tinysrp/tinysrp.h
blob: 4420a196a314b3573786f10d1f5af79a89337025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Simple API for the tinysrp library. */

#ifndef T_PWD_H
#define MAXUSERLEN      32
#define SESSION_KEY_LEN 40      /* 320-bit session key */
#endif

typedef struct {
	char username[MAXUSERLEN + 1];
	unsigned char key[SESSION_KEY_LEN];
} TSRP_SESSION;

/* These functions are passed a connected socket, and return true for a
successful authentication.  If tsrp is not NULL, the username and key
fields are filled in. */

extern int tsrp_server_authenticate(int s, TSRP_SESSION *tsrp);
extern int tsrp_client_authenticate(int s, char *user, char *pass, TSRP_SESSION *tsrp);