The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
userv/functions.h

36 lines
756 B

7 years ago
#ifndef _US_FUNCTIONS_H
# define _US_FUNCTIONS_H
# include <sys/types.h>
# include "userv.h"
int AddListen(char *);
int AddClient(char *);
int AddUser(char *);
int AddConfig(char *);
int AddPeer(char *);
void CleanUp(int);
int StartListening(void);
int valid_user(char *);
int valid_ip(char *);
char *trim(char *, char *);
int ip_allowed(char *);
int MainLoop(void);
int ParseConfig(void);
int pwcheck(char *, char *);
int IsNum(char *);
int Is_UID_exist(uid_t);
void salt(char *);
void tempname(char *, size_t);
int user_allowed(char *);
void Log(int, char *, ...);
void SetSignals(void);
void Send(int, char *, ...);
void DelConn(int);
# ifdef CONTEXT_DEBUG
void n_Context(char *, int);
void n_PrintContext(void);
# endif
#endif /* _US_FUNCTIONS_H */