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.14;	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/freebsd/Makefile.bmake work.new/skip/freebsd/Makefile.bmake
--- skipsrc-1.0.orig/skip/freebsd/Makefile.bmake	Wed Dec 31 16:00:00 1969
+++ work.new/skip/freebsd/Makefile.bmake	Mon Jan 24 18:25:11 2000
@@@@ -0,0 +1,41 @@@@
+
+.include "../../Makefile.defs"
+
+CPPOPTS	=	-DINET $(K_FLAGS) -D$(K_ARCH) -D__$(K_ARCH)__ \
+		-I$(COMM_INC) -I. 
+COPTS	=	${CPPOPTS} -c 
+CFLAGS	=	${COPTS} $(K_DEBUG)
+
+SRCS	=	skip_wrapper.c skip_es.c 
+
+CRYPTS	=	../bdcmod/simplecrypt/$(K_DIR)/simplecrypt.o \
+		../bdcmod/fast_des_cbc/$(K_DIR)/descbc.o  \
+		../bdcmod/fast_des_cbc/$(K_DIR)/des.o  \
+		../bdcmod/fast_des_cbc/$(K_DIR)/dessp.o  \
+		../bdcmod/des_ede_cbc/$(K_DIR)/des_ede_cbc.o \
+		../bdcmod/des_ede_cbc/$(K_DIR)/des_ede_ecb.o \
+		../bdcmod/safer/$(K_DIR)/skip_safercbc.o \
+		../bdcmod/safer/$(K_DIR)/safer.o 
+
+COMDIR	=	../common/$(K_DIR)
+
+COMOBJS	=	$(COMDIR)/skip_hdr.o $(COMDIR)/skip_es_bypass.o \
+		$(COMDIR)/skip_crypt.o $(COMDIR)/skip_ioctl.o \
+		$(COMDIR)/skip_keystore.o $(COMDIR)/skip_keymgrmsgs.o \
+		$(COMDIR)/skip_ipsp.o $(COMDIR)/skip_nsid.o \
+		$(COMDIR)/skip_ah.o  $(COMDIR)/skip_md5.o $(COMDIR)/skip_acl.o
+
+MDV_OBJ	=	$(COMDIR)/md5.o
+
+OBJS	=	$(COMOBJS) $(CRYPTS) $($(AHOBJS))
+
+HDRS	=	$(COMM_INC)/skip_keymgrmsgs.h $(COMM_INC)/skip_ioctl.h \
+		$(COMM_INC)/skip_key.h $(COMM_INC)/skip_crypt.h \
+		$(COMM_INC)/skip_types.h $(COMM_INC)/skip_es.h \
+		$(COMM_INC)/skip_sunos.h $(COMM_INC)/skip_proto.h \
+		skip_if.h $(COMM_INC)/skip_acl.h
+
+KMOD	=	skip
+KLDMOD	=	yes
+
+.include <bsd.kmod.mk>
@


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 40
a40 113
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_wrapper.c work.new/skip/freebsd/skip_wrapper.c
--- skipsrc-1.0.orig/skip/freebsd/skip_wrapper.c	Fri Oct 25 13:12:43 1996
+++ work.new/skip/freebsd/skip_wrapper.c	Mon Mar  8 23:00:57 1999
@@@@ -66,55 +66,69 @@@@
 #include <skip_es.h>
 #include <skip_if.h>
 
-
-/*
- * SunOS 4.1.x loadable driver wrapper for the SKIP module
- */
-extern char		skip_module_name[];
-
-/*
- * Module linkage information for the kernel.
- */
-extern int		nulldev();
-
-struct cfdriver skipcd=
-        { NULL, "skip", NULL, NULL, DV_DULL, 0 };
-
 struct cdevsw skipdevsw = {
         skip_ifopen, skip_ifclose, skip_ifread, skip_ifwrite, skip_ifioctl,
-	NULL, NULL, NULL, skip_ifselect, NULL, NULL 
+	nullstop, noreset, nodevtotty, skip_ifpoll, nommap, nostrategy,
+	"skip", NULL
 };
 
-MOD_DEV("skipmod", LM_DT_CHAR, -1, (void *)&skipdevsw)
-
-extern int		skip_init(), skip_uninit();
+static struct cdevsw	*old_dev;
+static u_long		skip_major;
 
-/*ARGSUSED*/
-int
-skipmod_load(struct lkm_table *lkmtp, int cmd)
+/*
+ * Handle loading and unloading of the SKIP module.
+ */
+static int
+skip_mod_event(module_t mod, int event, void *data)
 {
+	int error = 0;
+	dev_t dev;
 
-	int rc;
-	rc = skip_init();
-	if (rc != 0) {
-		return (rc);
-	}
-	uprintf("skip: driver loaded\n");
-	return (0);
-}
+	switch (event) {
+	case MOD_LOAD:
 
-skipmod_unload(struct lkm_table *lkmtp, int cmd)
-{
-	
-	int rc;
-	rc = skip_uninit();
-	if (rc == 0) {
-		uprintf("skip: driver unloaded\n");
+		/* Add character device, getting assigned a major number */
+		dev = (dev_t) -1;
+		if ((error = cdevsw_add(&dev, &skipdevsw, &old_dev)) != 0) {
+			log(LOG_ERR, "skip: can't add device\n");
+			break;
+		}
+		skip_major = major(dev);
+
+		/* Initialize SKIP itself */
+		if ((error = skip_init()) != 0) {
+			/* XXX should remove char device */
+			log(LOG_ERR, "skip: init failed\n");
+			break;
+		}
+		log(LOG_INFO, "skip: device major=%lu, driver loaded\n",
+			skip_major);
+		break;
+
+	case MOD_UNLOAD:
+
+		/* Uninitialize SKIP */
+		if ((error = skip_uninit()) != 0) {
+			log(LOG_INFO, "skip: uninit failed\n");
+			break;
+		}
+
+		/* Replace original device driver (if any) */
+		dev = makedev(skip_major, 0);
+		(void) cdevsw_add(&dev, old_dev, NULL);
+		break;
+
+	default:
+		error = EOPNOTSUPP;
+		break;
 	}
-	return (rc);
+	return(error);
 }
 
-xxxinit(struct lkm_table *lkmtp, int cmd, int ver)
-{
-	DISPATCH(lkmtp, cmd, ver, skipmod_load, skipmod_unload, nosys);
-}
+static moduledata_t skip_mod = {
+	"skip",
+	skip_mod_event,
+	NULL
+};
+DECLARE_MODULE(skip, skip_mod, SI_SUB_PROTO_END, SI_ORDER_MIDDLE);
d42 4
@


1.1
log
@Initial revision
@
text
@d1 114
a114 21
diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_msgs.C skipsrc-1.0/skip/keymgrd/skip_msgs.C
--- skipsrc-1.0.orig/skip/keymgrd/skip_msgs.C	Fri Oct 25 13:12:51 1996
+++ skipsrc-1.0/skip/keymgrd/skip_msgs.C	Tue Dec 23 13:36:10 1997
@@@@ -82,7 +82,7 @@@@
         set.msgtype	= SKIP_SET_CDP_SERVER_PORT;
         set.port	= cdp_port;
 	
- 	skip_log(SKIP_NOTICE, "Setting CDP port=%d", cdp_port);
+ 	skip_log(SKIP_INFO, "Setting CDP port=%d", cdp_port);
         fflush(stdout);
  
         if (put_kernel_message(fd, &set, sizeof(set)) < 0) {
@@@@ -107,7 +107,7 @@@@
         set.version     = version;
         set.kij_alg     = kij_alg;
 	
- 	skip_log(SKIP_NOTICE, "Setting supported kij alg=%d for version %d",
+ 	skip_log(SKIP_INFO, "Setting supported kij alg=%d for version %d",
                                                         kij_alg, version);
         fflush(stdout);
  
@


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