/* * Copyright (c) 2022 Daniel Kroczynski * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef BLIND_H #define BLIND_H #include #include #define BL_TEXT "blind" #define BL_VERS "0.0.1" #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 { char bl_conf[PATH_MAX]; char bl_sock[PATH_MAX]; int bl_ttl; uint32_t bl_opt; }; struct file { FILE *stream; char *name; size_t unpos; size_t unsize; u_char *unbuf; int lineno; }; #endif /* BLIND_H */