Removed old garbage and added SKEY.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@857 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-17 19:48:02 +00:00
parent 576d77483b
commit 492eeb1220

View File

@@ -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 <maillock.h>
#endif
#if defined(SKEY)
#include <skey.h>
#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);