/*--------------------------------------------------*/
/* CONFIG */

/******************/
/* TIME CONSTANTS */

/* timeout, in seconds */
#define PADTMO 120

/* interval to check if pad has returned */
#define PADCHECK 5
/* Don't accept keys older than this many seconds */
#define STALETIME 1200
/* Seconds to wait before reattempting pad generation */
#define NEWPADRT 30

/* minimum number of sites before starting */
#define QUORUM 3
/* smallest (above quorum) and largest path size */
#define MINRING 8
#define MAXRING 16

/* number of simultaneous pads in circulation */
#define NPADS 2

/* udp multicast info */
#define ATHENSPORT 12345
#define ATHENSIP "224.0.1.234"
/* files that hold key info */
#define RINGFILE "keys.out"
/* pad size */
#define DSIZE 8192
/* UDP packet size */
#define MAXUDP 16384
/* after pgp5, idea is 1, 3des is 2, cast is 3 */
#define CYPHER 2
/*--------------------------------------------------*/
#define DEBUG

/*--------------------------------------------------*/
#define CPKE 'P'

#define INTERN 'i'
#define PTYPEPK 'k'
#define LOCMSG 'l'
#define MESSAGE 'm'
#define RESULT 'r'
/*--------------------------------------------------*/
#define SADDR (struct sockaddr *)
extern char chkfile[50];
extern unsigned char auxpad[DSIZE], scribpad[DSIZE];
extern unsigned char pathbuf[500 * MAXRING];
extern unsigned int pblen;
extern unsigned char msg[MAXUDP];
extern int msglen;
extern int sockfd, cl;
extern struct sockaddr_in remote_addr;
extern FILE *keyf;
extern char *av0;
