version 1.4, 2022/03/18 20:54:01 |
version 1.13, 2022/04/10 21:04:06 |
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
|
|
|
#ifndef BLIND_H |
|
#define BLIND_H |
|
|
#include <limits.h> |
#include <limits.h> |
|
#include <stdio.h> |
|
|
#define BL_CONF "/etc/blind.conf" |
#define BL_TEXT "blind" |
#define BL_TEXT "blind" |
#define BL_VERS "0.0.1" |
#define BL_VERS "0.0.1" |
|
#define BL_SOCK "/var/run/blind.sock" |
|
#define BL_TTL 3600 |
|
|
|
|
#define BL_CONF "/etc/blind.conf" |
|
#define BL_SOCK "/var/run/blind.sock" |
|
#define BL_TTL 3600 |
|
|
|
#define BL_OPT_DEFAULT 0x00000000 |
|
#define BL_OPT_VERBOSE 0x00000001 |
|
#define BL_OPT_ACTION 0x00000002 |
|
#define BL_OPT_COMPRESS 0x00000004 |
|
#define BL_OPT_ENCRYPT 0x00000008 |
|
|
struct blind { |
struct blind { |
char bl_conf[PATH_MAX]; |
char bl_conf[PATH_MAX]; |
char bl_sock[PATH_MAX]; |
char bl_sock[PATH_MAX]; |
int bl_ttl; |
int bl_ttl; |
|
uint32_t bl_opt; |
}; |
}; |
|
|
|
struct file { |
|
FILE *stream; |
|
char *name; |
|
size_t unpos; |
|
size_t unsize; |
|
u_char *unbuf; |
|
int eof; |
|
int lineno; |
|
}; |
|
|
|
#endif /* BLIND_H */ |