Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (32 sloc) 943 Bytes
/*
See COPYRIGHT for the license
*/
#include <sys/types.h>
#include <stdio.h>
#include <pwd.h>
#define BUF_SZ (1024 * 2) /* A pretty large buffer, but not outrageous */
#define MAXWAIT (10 * 60) /* Maximum wait between commands, in seconds */
#define MEDWAIT (5 * 60)
#define MAXSYSUID 999 /* Highest UID which is a system account */
#ifndef _POSIX_ARG_MAX
#define MAXARGS 4096
#else
#define MAXARGS _POSIX_ARG_MAX
#endif
/* ssmtp assumes MAXHOSTNAMELEN is alwyas in sys/param.h this is
not always the case (System V/Solaris) */
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif
typedef enum {False, True} bool_t;
struct string_list {
char *string;
struct string_list *next;
};
typedef struct string_list headers_t;
typedef struct string_list rcpt_t;
/* arpadate.c */
void get_arpadate(char *);
/* base64.c */
void to64frombits(unsigned char *, const unsigned char *, int);
int from64tobits(char *, const char *);