head	1.4;
access;
symbols
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.2
	RELEASE_3_3_0:1.2
	RELEASE_3_2_0:1.2
	RELEASE_3_1_0:1.1.1.1
	RELEASE_2_2_8:1.1.1.1
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	RELEASE_2_2_6:1.1.1.1
	ARCHIE_1:1.1.1.1
	WHISTLE_ARCHIE:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2006.04.06.13.54.44;	author archie;	state dead;
branches;
next	1.3;

1.3
date	2000.01.26.01.55.13;	author archie;	state Exp;
branches;
next	1.2;

1.2
date	99.03.10.22.27.53;	author archie;	state Exp;
branches;
next	1.1;

1.1
date	98.01.09.23.23.51;	author julian;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.01.09.23.23.51;	author julian;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove the skip port. Created before there was an IPSec implementation on
FreeBSD, it is now extremely obsolete. In any case it doesn't compile. Earlier
version of this port can still be used on older versions of FreeBSD of course.
@
text
@diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/common/skip_keystore.c work.new/skip/common/skip_keystore.c
--- skipsrc-1.0.orig/skip/common/skip_keystore.c	Fri Oct 25 13:12:41 1996
+++ work.new/skip/common/skip_keystore.c	Mon Jan 24 12:52:53 2000
@@@@ -308,7 +308,7 @@@@
 		/*
 	 	 * SKIP tunneling mode
 	 	 */
-		params->payload_type = IPPROTO_ENCAP;
+		params->payload_type = IPPROTO_IPIP;
 	}
 	/*
 	 * Return offset of data to decrypt
@@@@ -1177,7 +1177,7 @@@@
  * Returns: none
  */
 void
-skip_key_iterate(int (*f)(), void *arg)
+skip_key_iterate(int (*f)(skip_keycb_t *, void *), void *arg)
 {
 	skip_keycb_t	*cp, *ncp;
 	int		i, rc;
@@@@ -1209,7 +1209,7 @@@@
 		for (cp = skip_decrypt_hashtable[i]; cp; cp = ncp) {
 			ncp = cp->next;
 
-			rc = (*f)(cp);
+			rc = (*f)(cp, arg);
 
 			if (rc) {
 				skip_hash_remove(cp, skip_decrypt_hashtable,
@@@@ -1258,7 +1258,7 @@@@
 		return(ENOMEM);
 	}
 
-#ifdef KERNEL
+#if defined(KERNEL) || defined(_KERNEL)
 	/*
 	 * XXX 4.x only
 	 * we have knowledge that arg is a pointer to a struct sockaddr which
@


1.3
log
@Bash this port until it compiles under -current again.
@
text
@@


1.2
log
@Build SKIP port as a KLD instead of an LKM.
@
text
@d1 14
a14 17
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_if.h work.new/skip/freebsd/skip_if.h
--- skipsrc-1.0.orig/skip/freebsd/skip_if.h	Fri Oct 25 13:12:43 1996
+++ work.new/skip/freebsd/skip_if.h	Tue Mar  9 20:30:46 1999
@@@@ -86,7 +86,9 @@@@
 	struct skip_es	*next;
 	char		if_name[SKIPSZ];/* e.g. "le0" */
 	struct ifnet	*ifp;		/* network interface */
-	int		(*if_output)();	/* default output handler */
+	int		(*if_output)	/* default output handler */
+			    (struct ifnet *, struct mbuf *,
+			    struct sockaddr *, struct rtentry *);
 	void		*sd;		/* skip descriptor */
 	unsigned char	if_mode;	/* interface mode */
 	int		notifier;	/* who to send events to */
@@@@ -104,7 +106,7 @@@@
 /*
  * returns TRUE if SKIP has processed this buffer
d16 9
a24 2
-#define	SKIP_DECRYPTED(m)	((m)->m_flags & M_EOR)
+#define	SKIP_DECRYPTED(m)	((m)->m_flags & M_PROTO1)
d26 8
a33 19
 /* 
  * Macro to retrieve an ifnet 
@@@@ -114,14 +116,15 @@@@
 /*
  * function prototypes
  */
+
+int			skip_init(void);
+int			skip_uninit(void);
 int			skip_ifopen(dev_t, int, int, struct proc *);
 int			skip_ifclose(dev_t, int, int, struct proc *);
-int			skip_ifioctl(dev_t, int, caddr_t, int, struct proc *);
-int			skip_ifselect(dev_t, int, struct proc *);
+int			skip_ifioctl(dev_t, u_long, caddr_t, int, struct proc *);
+int			skip_ifpoll(dev_t, int, struct proc *);
 int			skip_ifwrite(dev_t, struct uio *, int);
 int			skip_ifread(dev_t, struct uio *, int);
-
-void 			skip_key_tellkm( enum skip_msgs, skip_keycb_t *);
d35 5
a39 2
 /*
  * exported functions
@


1.1
log
@Initial revision
@
text
@d1 20
a20 6
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_log.C skipsrc-1.0/skip/keymgrd/skip_log.C
--- skipsrc-1.0.orig/skip/keymgrd/skip_log.C	Fri Oct 25 13:12:50 1996
+++ skipsrc-1.0/skip/keymgrd/skip_log.C	Thu Dec  4 18:20:12 1997
@@@@ -60,7 +60,7 @@@@
 	strcpy(outbuf,buf);
 }
d22 19
a40 8
-FILE *skip_log_fp = NULL;
+int skip_log_syslog = 0;
 
 void skip_log(int severity, char *control,...)
 {
@@@@ -71,15 +71,15 @@@@
 	get_time(buf);
 	va_start(va,control);
d42 2
a43 23
-	if (skip_log_fp)
-		out = skip_log_fp;
-	else if (severity == SKIP_NOTICE) 
-		out=stdout;
-	else
-		out=stderr;
-
-	fprintf(out,"%s",buf);
-	vfprintf(out, control,va);
-	fprintf(out,"\n");
-	fflush(out);
+	if (skip_log_syslog) {
+	  vsyslog(severity, control, va);
+	} else {
+		out = (severity == SKIP_NOTICE) ? stdout : stderr;
+		fprintf(out, "%s",buf);
+		vfprintf(out, control, va);
+		fprintf(out, "\n");
+		fflush(out);
+	}
+	va_end(va);
 }
+
@


1.1.1.1
log
@Add a package for the SKIP package from Sun Microsystems,
for making secure pipes across the internet (etc.)
@
text
@@
