diff --git a/appl/popper/popper.h b/appl/popper/popper.h index 2fb94d30a..3244ef75e 100644 --- a/appl/popper/popper.h +++ b/appl/popper/popper.h @@ -10,8 +10,6 @@ /* $Id$ */ -/* LINTLIBRARY */ - /* * Header file for the POP programs */ @@ -92,19 +90,17 @@ #define K_LOCK_UN LOCK_UN /* Unlock */ #endif -#define NULLCP ((char *) 0) -#define SPACE 32 -#define TAB 9 +#ifndef TRUE #define TRUE 1 #define FALSE 0 -#define NEWLINE '\n' +#endif #define MAXUSERNAMELEN 65 #define MAXDROPLEN 64 #define MAXLINELEN 1024 #define MAXMSGLINELEN 1024 #define MAXCMDLEN 4 -#define MAXPARMCOUNT 5 +#define MAXPARMCOUNT 10 #define MAXPARMLEN 10 #define ALLOC_MSGS 20 #define MAIL_COMMAND "/usr/lib/sendmail" @@ -121,6 +117,10 @@ #include #endif +#if defined(SKEY) +#include +#endif + #if defined(KRB4_MAILDIR) #define POP_MAILDIR KRB4_MAILDIR #elif defined(_PATH_MAILDIR) @@ -146,8 +146,6 @@ #define POP_TERMINATE '.' #define POP_TIMEOUT 120 /* timeout connection after this many secs */ -extern int errno; - extern int pop_timeout; extern int hangup; @@ -252,6 +250,13 @@ typedef struct { /* POP parameter block */ int parm_count; /* Number of parameters in parsed list */ int kerberosp; /* Using KPOP? */ +#ifdef KERBEROS + AUTH_DAT kdata; +#endif +#ifdef SKEY + struct skey sk; /* Skey state */ + int permit_passwd; /* allow cleartext pwd? */ +#endif } POP; int pop_dele(POP *p); @@ -273,6 +278,7 @@ int pop_xtnd(POP *p); #ifdef UIDL int pop_uidl(POP *p); #endif +int pop_help(POP *p); state_table *pop_get_command(POP *p, char *mp); void pop_lower(char *buf); xtnd_table *pop_get_subcommand(POP *p);