mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-05 01:43:18 +03:00
removed obsolete declarations
This commit is contained in:
parent
0cde3d794a
commit
c9eff6e38d
5
common.h
5
common.h
@ -83,9 +83,6 @@ enum connection_state {
|
|||||||
ST_SHOVELING /* Connexion is established */
|
ST_SHOVELING /* Connexion is established */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* this is used to pass protocols through the command-line parameter parsing */
|
|
||||||
#define PROT_SHIFT 1000 /* protocol options will be 1000, 1001, etc */
|
|
||||||
|
|
||||||
/* A 'queue' is composed of a file descriptor (which can be read from or
|
/* A 'queue' is composed of a file descriptor (which can be read from or
|
||||||
* written to), and a queue for deferred write data */
|
* written to), and a queue for deferred write data */
|
||||||
struct queue {
|
struct queue {
|
||||||
@ -152,11 +149,9 @@ int fd2fd(struct queue *target, struct queue *from);
|
|||||||
char* sprintaddr(char* buf, size_t size, struct addrinfo *a);
|
char* sprintaddr(char* buf, size_t size, struct addrinfo *a);
|
||||||
void resolve_name(struct addrinfo **out, char* fullname);
|
void resolve_name(struct addrinfo **out, char* fullname);
|
||||||
int get_connection_desc(struct connection_desc* desc, const struct connection *cnx);
|
int get_connection_desc(struct connection_desc* desc, const struct connection *cnx);
|
||||||
void log_connection(struct connection_desc* desc, const struct connection *cnx);
|
|
||||||
void set_proctitle_shovel(struct connection_desc* desc, const struct connection *cnx);
|
void set_proctitle_shovel(struct connection_desc* desc, const struct connection *cnx);
|
||||||
int check_access_rights(int in_socket, const char* service);
|
int check_access_rights(int in_socket, const char* service);
|
||||||
void setup_signals(void);
|
void setup_signals(void);
|
||||||
void setup_syslog(const char* bin_name);
|
|
||||||
void drop_privileges(const char* user_name, const char* chroot_path);
|
void drop_privileges(const char* user_name, const char* chroot_path);
|
||||||
void set_capabilities(int cap_net_admin);
|
void set_capabilities(int cap_net_admin);
|
||||||
void write_pid_file(const char* pidfile);
|
void write_pid_file(const char* pidfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user