aboutsummaryrefslogtreecommitdiffstats
path: root/security/skip
diff options
context:
space:
mode:
Diffstat (limited to 'security/skip')
-rw-r--r--security/skip/files/patch-aa4
-rw-r--r--security/skip/files/patch-ab4
-rw-r--r--security/skip/files/patch-ac4
-rw-r--r--security/skip/files/patch-ad4
-rw-r--r--security/skip/files/patch-ae4
-rw-r--r--security/skip/files/patch-af4
-rw-r--r--security/skip/files/patch-ag4
-rw-r--r--security/skip/files/patch-ah22
-rw-r--r--security/skip/files/patch-ai25
-rw-r--r--security/skip/files/patch-aj22
-rw-r--r--security/skip/files/patch-ak22
-rw-r--r--security/skip/files/patch-al22
-rw-r--r--security/skip/files/patch-am16
-rw-r--r--security/skip/files/patch-an12
-rw-r--r--security/skip/files/patch-ao16
-rw-r--r--security/skip/files/patch-ap16
-rw-r--r--security/skip/files/patch-aq14
-rw-r--r--security/skip/files/patch-ar10
-rw-r--r--security/skip/files/patch-as15
-rw-r--r--security/skip/files/patch-at39
-rw-r--r--security/skip/files/patch-au105
-rw-r--r--security/skip/files/patch-av94
-rw-r--r--security/skip/files/patch-aw34
-rw-r--r--security/skip/files/patch-ax61
-rw-r--r--security/skip/files/patch-ay129
-rw-r--r--security/skip/files/patch-az24
-rw-r--r--security/skip/files/patch-ba33
-rw-r--r--security/skip/files/patch-bb69
-rw-r--r--security/skip/files/patch-bc83
-rw-r--r--security/skip/files/patch-bd149
-rw-r--r--security/skip/files/patch-be22
-rw-r--r--security/skip/files/patch-bf168
-rw-r--r--security/skip/files/patch-bg304
-rw-r--r--security/skip/files/patch-bh124
-rw-r--r--security/skip/files/patch-bi22
-rw-r--r--security/skip/files/patch-bj170
-rw-r--r--security/skip/files/patch-bk48
-rw-r--r--security/skip/files/patch-bl304
-rw-r--r--security/skip/files/patch-bm78
-rw-r--r--security/skip/files/patch-bn205
-rw-r--r--security/skip/files/patch-bo135
-rw-r--r--security/skip/files/patch-bp24
-rw-r--r--security/skip/files/patch-bq110
-rw-r--r--security/skip/files/patch-br22
-rw-r--r--security/skip/files/patch-bs33
-rw-r--r--security/skip/files/patch-bt51
-rw-r--r--security/skip/files/patch-bu25
-rw-r--r--security/skip/files/patch-bv60
-rw-r--r--security/skip/files/patch-bw26
-rw-r--r--security/skip/files/patch-bx41
-rw-r--r--security/skip/files/patch-by36
-rw-r--r--security/skip/files/patch-bz90
-rw-r--r--security/skip/files/patch-ca32
-rw-r--r--security/skip/files/patch-cb31
-rw-r--r--security/skip/files/patch-cc34
-rw-r--r--security/skip/files/patch-cd26
-rw-r--r--security/skip/files/patch-ce113
-rw-r--r--security/skip/files/patch-cf33
-rw-r--r--security/skip/files/patch-cg30
-rw-r--r--security/skip/files/patch-ch41
-rw-r--r--security/skip/files/patch-ci392
-rw-r--r--security/skip/files/patch-cj32
-rw-r--r--security/skip/files/patch-ck179
-rw-r--r--security/skip/files/patch-cl52
-rw-r--r--security/skip/files/patch-cm29
-rw-r--r--security/skip/files/patch-cn76
-rw-r--r--security/skip/files/patch-co105
-rw-r--r--security/skip/files/patch-cp173
-rw-r--r--security/skip/files/patch-cq58
-rw-r--r--security/skip/files/patch-cr12
-rw-r--r--security/skip/files/patch-cs17
-rw-r--r--security/skip/files/patch-ct378
-rw-r--r--security/skip/files/skip.mtree4
-rw-r--r--security/skip/pkg-plist3
-rw-r--r--security/skip/scripts/pre-install6
75 files changed, 2732 insertions, 2282 deletions
diff --git a/security/skip/files/patch-aa b/security/skip/files/patch-aa
index e54d2149c589..e200731e4444 100644
--- a/security/skip/files/patch-aa
+++ b/security/skip/files/patch-aa
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/Configure skipsrc-1.0/Configure
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/Configure work.new/Configure
--- skipsrc-1.0.orig/Configure Fri Oct 25 13:13:15 1996
-+++ skipsrc-1.0/Configure Wed Dec 10 15:10:41 1997
++++ work.new/Configure Mon Mar 8 21:33:38 1999
@@ -103,8 +103,6 @@
echo "$0: failed to install skip/freebsd/Makefile.defs"
exit 1
diff --git a/security/skip/files/patch-ab b/security/skip/files/patch-ab
index 86e6bd8cdd1b..67570ddb1e04 100644
--- a/security/skip/files/patch-ab
+++ b/security/skip/files/patch-ab
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/Makefile skipsrc-1.0/Makefile
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/Makefile work.new/Makefile
--- skipsrc-1.0.orig/Makefile Fri Oct 25 13:11:18 1996
-+++ skipsrc-1.0/Makefile Mon Dec 8 13:22:13 1997
++++ work.new/Makefile Mon Mar 8 21:33:38 1999
@@ -74,3 +74,7 @@
cleanpkgs:
@echo "Cleaning SKIP package directory..."
diff --git a/security/skip/files/patch-ac b/security/skip/files/patch-ac
index 8b0c7cb1f3c1..94b3d5cb3e4c 100644
--- a/security/skip/files/patch-ac
+++ b/security/skip/files/patch-ac
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/hosts.4.x skipsrc-1.0/admin/hosts.4.x
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/hosts.4.x work.new/admin/hosts.4.x
--- skipsrc-1.0.orig/admin/hosts.4.x Fri Oct 25 13:13:14 1996
-+++ skipsrc-1.0/admin/hosts.4.x Thu Dec 18 10:53:56 1997
++++ work.new/admin/hosts.4.x Mon Mar 8 21:33:39 1999
@@ -46,20 +46,18 @@
#
# SKIP host access control information
diff --git a/security/skip/files/patch-ad b/security/skip/files/patch-ad
index fb97d4fad614..c740229d83ab 100644
--- a/security/skip/files/patch-ad
+++ b/security/skip/files/patch-ad
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/install_skip_keys.sh skipsrc-1.0/admin/install_skip_keys.sh
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/install_skip_keys.sh work.new/admin/install_skip_keys.sh
--- skipsrc-1.0.orig/admin/install_skip_keys.sh Fri Oct 25 13:11:19 1996
-+++ skipsrc-1.0/admin/install_skip_keys.sh Wed Nov 26 18:36:37 1997
++++ work.new/admin/install_skip_keys.sh Mon Mar 8 21:33:39 1999
@@ -145,18 +145,11 @@
rm -rf $DIR
}
diff --git a/security/skip/files/patch-ae b/security/skip/files/patch-ae
index 0c5b0b0067f6..6bd7d9b698f8 100644
--- a/security/skip/files/patch-ae
+++ b/security/skip/files/patch-ae
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/skip_conf.sh skipsrc-1.0/admin/skip_conf.sh
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/skip_conf.sh work.new/admin/skip_conf.sh
--- skipsrc-1.0.orig/admin/skip_conf.sh Fri Oct 25 13:11:19 1996
-+++ skipsrc-1.0/admin/skip_conf.sh Wed Nov 26 18:39:02 1997
++++ work.new/admin/skip_conf.sh Mon Mar 8 21:33:39 1999
@@ -8,14 +8,9 @@
exit 1
fi
diff --git a/security/skip/files/patch-af b/security/skip/files/patch-af
index c35cf5d0c137..640f7eb15e56 100644
--- a/security/skip/files/patch-af
+++ b/security/skip/files/patch-af
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/skipd_restart.sh skipsrc-1.0/admin/skipd_restart.sh
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/skipd_restart.sh work.new/admin/skipd_restart.sh
--- skipsrc-1.0.orig/admin/skipd_restart.sh Fri Oct 25 13:11:19 1996
-+++ skipsrc-1.0/admin/skipd_restart.sh Wed Nov 26 20:13:18 1997
++++ work.new/admin/skipd_restart.sh Mon Mar 8 21:33:39 1999
@@ -4,20 +4,9 @@
#
# Kill and restart the SKIP key management/certificate daemon
diff --git a/security/skip/files/patch-ag b/security/skip/files/patch-ag
index 5ba5def5403f..bf7d540cbe57 100644
--- a/security/skip/files/patch-ag
+++ b/security/skip/files/patch-ag
@@ -1,6 +1,6 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/skipif.sh skipsrc-1.0/admin/skipif.sh
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/skipif.sh work.new/admin/skipif.sh
--- skipsrc-1.0.orig/admin/skipif.sh Fri Oct 25 13:11:20 1996
-+++ skipsrc-1.0/admin/skipif.sh Wed Nov 26 20:01:21 1997
++++ work.new/admin/skipif.sh Mon Mar 8 21:33:39 1999
@@ -4,30 +4,15 @@
#
# SKIP interface management utility
diff --git a/security/skip/files/patch-ah b/security/skip/files/patch-ah
index 450845a2d84f..3122c9e19286 100644
--- a/security/skip/files/patch-ah
+++ b/security/skip/files/patch-ah
@@ -1,12 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/hashcert/dh_keygen.C skipsrc-1.0/certs/hashcert/dh_keygen.C
---- skipsrc-1.0.orig/certs/hashcert/dh_keygen.C Fri Oct 25 13:11:37 1996
-+++ skipsrc-1.0/certs/hashcert/dh_keygen.C Mon Dec 15 16:57:05 1997
-@@ -54,6 +54,8 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/bnlib/Makefile.in work.new/bnlib/Makefile.in
+--- skipsrc-1.0.orig/bnlib/Makefile.in Fri Oct 25 13:11:20 1996
++++ work.new/bnlib/Makefile.in Mon Mar 8 21:33:38 1999
+@@ -61,7 +61,7 @@
+ # code compiled with another cc, which doesn't know about -lgcc.
- #include <stdio.h>
- #include <stdlib.h>
-+#include <unistd.h>
-+#include <time.h>
- #include <sys/types.h>
- #include "Time.h"
- #include "Bigint.h"
+ lbn%.o: $(srcdir)/lbn%.c $(HDRS) config.h
+- $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ @GCCMAGIC1@ $< @GCCMAGIC2@
++ $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ -c $<
+
+ # Saying that every .o file depends on every header is overkill, but
+ # it will suffice.
diff --git a/security/skip/files/patch-ai b/security/skip/files/patch-ai
index 8d6f80a5bc8e..6821ea657511 100644
--- a/security/skip/files/patch-ai
+++ b/security/skip/files/patch-ai
@@ -1,13 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/AuthPolicy.C skipsrc-1.0/certs/lib/AuthPolicy.C
---- skipsrc-1.0.orig/certs/lib/AuthPolicy.C Fri Oct 25 13:11:37 1996
-+++ skipsrc-1.0/certs/lib/AuthPolicy.C Fri Nov 21 11:39:11 1997
-@@ -44,7 +44,9 @@
-
- #pragma ident "@(#)AuthPolicy.C 1.9 96/05/15"
-
-+#include <sys/types.h>
- #include <dirent.h>
-+#include <string.h>
- #include "AuthPolicy.h"
-
-
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/hashcert/dh_keygen.C work.new/certs/hashcert/dh_keygen.C
+--- skipsrc-1.0.orig/certs/hashcert/dh_keygen.C Fri Oct 25 13:11:37 1996
++++ work.new/certs/hashcert/dh_keygen.C Mon Mar 8 21:33:38 1999
+@@ -54,6 +54,8 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h>
++#include <time.h>
+ #include <sys/types.h>
+ #include "Time.h"
+ #include "Bigint.h"
diff --git a/security/skip/files/patch-aj b/security/skip/files/patch-aj
index 1ff6b6224647..e2f5331f593c 100644
--- a/security/skip/files/patch-aj
+++ b/security/skip/files/patch-aj
@@ -1,11 +1,13 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/Bstream.C skipsrc-1.0/certs/lib/Bstream.C
---- skipsrc-1.0.orig/certs/lib/Bstream.C Fri Oct 25 13:11:38 1996
-+++ skipsrc-1.0/certs/lib/Bstream.C Fri Nov 21 11:39:11 1997
-@@ -48,6 +48,7 @@
- #include <netinet/in.h>
- #include <stdio.h>
- #include <stdlib.h>
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/AuthPolicy.C work.new/certs/lib/AuthPolicy.C
+--- skipsrc-1.0.orig/certs/lib/AuthPolicy.C Fri Oct 25 13:11:37 1996
++++ work.new/certs/lib/AuthPolicy.C Mon Mar 8 21:33:38 1999
+@@ -44,7 +44,9 @@
+
+ #pragma ident "@(#)AuthPolicy.C 1.9 96/05/15"
+
++#include <sys/types.h>
+ #include <dirent.h>
+#include <string.h>
- #include <unistd.h>
- #include <fcntl.h>
- #include "Bstream.h"
+ #include "AuthPolicy.h"
+
+
diff --git a/security/skip/files/patch-ak b/security/skip/files/patch-ak
index 59395b7f31ab..cbf1fe221874 100644
--- a/security/skip/files/patch-ak
+++ b/security/skip/files/patch-ak
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/CertInfo.C skipsrc-1.0/certs/lib/CertInfo.C
---- skipsrc-1.0.orig/certs/lib/CertInfo.C Fri Oct 25 13:11:39 1996
-+++ skipsrc-1.0/certs/lib/CertInfo.C Fri Nov 21 11:39:11 1997
-@@ -44,6 +44,7 @@
-
- #pragma ident "@(#)CertInfo.C 1.14 96/04/10"
-
-+#include <time.h>
- #include "CertInfo.h"
- #include "X509skip.h"
- #include "HashCert.h"
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/Bstream.C work.new/certs/lib/Bstream.C
+--- skipsrc-1.0.orig/certs/lib/Bstream.C Fri Oct 25 13:11:38 1996
++++ work.new/certs/lib/Bstream.C Mon Mar 8 21:33:38 1999
+@@ -48,6 +48,7 @@
+ #include <netinet/in.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include "Bstream.h"
diff --git a/security/skip/files/patch-al b/security/skip/files/patch-al
index 0ad2024e1558..6ab3833b796b 100644
--- a/security/skip/files/patch-al
+++ b/security/skip/files/patch-al
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/Name.C skipsrc-1.0/certs/lib/Name.C
---- skipsrc-1.0.orig/certs/lib/Name.C Fri Oct 25 13:11:40 1996
-+++ skipsrc-1.0/certs/lib/Name.C Fri Nov 21 11:39:11 1997
-@@ -48,6 +48,7 @@
- #include <stdarg.h>
- #include <stdio.h>
- #include <stdlib.h>
-+#include <string.h>
- #include "Time.h"
- #include "Bigint.h"
- #include "Bstream.h"
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/CertInfo.C work.new/certs/lib/CertInfo.C
+--- skipsrc-1.0.orig/certs/lib/CertInfo.C Fri Oct 25 13:11:39 1996
++++ work.new/certs/lib/CertInfo.C Mon Mar 8 21:33:38 1999
+@@ -44,6 +44,7 @@
+
+ #pragma ident "@(#)CertInfo.C 1.14 96/04/10"
+
++#include <time.h>
+ #include "CertInfo.h"
+ #include "X509skip.h"
+ #include "HashCert.h"
diff --git a/security/skip/files/patch-am b/security/skip/files/patch-am
index b5c1e1a5f684..00e385abf212 100644
--- a/security/skip/files/patch-am
+++ b/security/skip/files/patch-am
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/SkipCert.C skipsrc-1.0/certs/lib/SkipCert.C
---- skipsrc-1.0.orig/certs/lib/SkipCert.C Fri Oct 25 13:11:43 1996
-+++ skipsrc-1.0/certs/lib/SkipCert.C Fri Nov 21 11:39:11 1997
-@@ -46,6 +46,7 @@
-
- #include <sys/types.h>
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/Name.C work.new/certs/lib/Name.C
+--- skipsrc-1.0.orig/certs/lib/Name.C Fri Oct 25 13:11:40 1996
++++ work.new/certs/lib/Name.C Mon Mar 8 21:33:38 1999
+@@ -48,6 +48,7 @@
+ #include <stdarg.h>
#include <stdio.h>
+ #include <stdlib.h>
+#include <string.h>
-
- #include "Bstream.h"
+ #include "Time.h"
#include "Bigint.h"
+ #include "Bstream.h"
diff --git a/security/skip/files/patch-an b/security/skip/files/patch-an
index c17ba4b11f41..38af530fd723 100644
--- a/security/skip/files/patch-an
+++ b/security/skip/files/patch-an
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/Time.C skipsrc-1.0/certs/lib/Time.C
---- skipsrc-1.0.orig/certs/lib/Time.C Fri Oct 25 13:11:43 1996
-+++ skipsrc-1.0/certs/lib/Time.C Fri Nov 21 11:39:11 1997
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/SkipCert.C work.new/certs/lib/SkipCert.C
+--- skipsrc-1.0.orig/certs/lib/SkipCert.C Fri Oct 25 13:11:43 1996
++++ work.new/certs/lib/SkipCert.C Mon Mar 8 21:33:38 1999
@@ -46,6 +46,7 @@
#include <sys/types.h>
#include <stdio.h>
+#include <string.h>
- #include "Time.h"
- #include <time.h>
- #include <sys/time.h>
+
+ #include "Bstream.h"
+ #include "Bigint.h"
diff --git a/security/skip/files/patch-ao b/security/skip/files/patch-ao
index bb1d2b3ee202..10b7658ae4e6 100644
--- a/security/skip/files/patch-ao
+++ b/security/skip/files/patch-ao
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/asn1_der_decode.C skipsrc-1.0/certs/lib/asn1_der_decode.C
---- skipsrc-1.0.orig/certs/lib/asn1_der_decode.C Fri Oct 25 13:11:45 1996
-+++ skipsrc-1.0/certs/lib/asn1_der_decode.C Fri Nov 21 11:39:11 1997
-@@ -48,6 +48,7 @@
- #include <stdarg.h>
- #include <stdlib.h>
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/Time.C work.new/certs/lib/Time.C
+--- skipsrc-1.0.orig/certs/lib/Time.C Fri Oct 25 13:11:43 1996
++++ work.new/certs/lib/Time.C Mon Mar 8 21:33:38 1999
+@@ -46,6 +46,7 @@
+
+ #include <sys/types.h>
#include <stdio.h>
+#include <string.h>
- #include "my_types.h"
#include "Time.h"
- #include "Bigint.h"
+ #include <time.h>
+ #include <sys/time.h>
diff --git a/security/skip/files/patch-ap b/security/skip/files/patch-ap
index 1c8063f4b987..1f7dadf80cd2 100644
--- a/security/skip/files/patch-ap
+++ b/security/skip/files/patch-ap
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/passwd_subr.C skipsrc-1.0/certs/lib/passwd_subr.C
---- skipsrc-1.0.orig/certs/lib/passwd_subr.C Fri Oct 25 13:11:49 1996
-+++ skipsrc-1.0/certs/lib/passwd_subr.C Fri Nov 21 11:39:11 1997
-@@ -52,6 +52,7 @@
-
- #include <stdio.h>
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/asn1_der_decode.C work.new/certs/lib/asn1_der_decode.C
+--- skipsrc-1.0.orig/certs/lib/asn1_der_decode.C Fri Oct 25 13:11:45 1996
++++ work.new/certs/lib/asn1_der_decode.C Mon Mar 8 21:33:38 1999
+@@ -48,6 +48,7 @@
+ #include <stdarg.h>
#include <stdlib.h>
+ #include <stdio.h>
+#include <string.h>
- #include "Bstream.h"
+ #include "my_types.h"
+ #include "Time.h"
#include "Bigint.h"
- #include "ObjId.h"
diff --git a/security/skip/files/patch-aq b/security/skip/files/patch-aq
index d3098f900402..b9e13a1719cf 100644
--- a/security/skip/files/patch-aq
+++ b/security/skip/files/patch-aq
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/test_ca.C skipsrc-1.0/certs/lib/test_ca.C
---- skipsrc-1.0.orig/certs/lib/test_ca.C Fri Oct 25 13:11:50 1996
-+++ skipsrc-1.0/certs/lib/test_ca.C Mon Dec 15 16:56:35 1997
-@@ -46,6 +46,7 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/passwd_subr.C work.new/certs/lib/passwd_subr.C
+--- skipsrc-1.0.orig/certs/lib/passwd_subr.C Fri Oct 25 13:11:49 1996
++++ work.new/certs/lib/passwd_subr.C Mon Mar 8 21:33:38 1999
+@@ -52,6 +52,7 @@
#include <stdio.h>
#include <stdlib.h>
-+#include <unistd.h>
- #include <sys/types.h>
- #include "Time.h"
++#include <string.h>
+ #include "Bstream.h"
#include "Bigint.h"
+ #include "ObjId.h"
diff --git a/security/skip/files/patch-ar b/security/skip/files/patch-ar
index 374e06be1206..6ba7080175a7 100644
--- a/security/skip/files/patch-ar
+++ b/security/skip/files/patch-ar
@@ -1,11 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/test_passwd.C skipsrc-1.0/certs/lib/test_passwd.C
---- skipsrc-1.0.orig/certs/lib/test_passwd.C Fri Oct 25 13:11:50 1996
-+++ skipsrc-1.0/certs/lib/test_passwd.C Mon Dec 15 16:56:09 1997
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/test_ca.C work.new/certs/lib/test_ca.C
+--- skipsrc-1.0.orig/certs/lib/test_ca.C Fri Oct 25 13:11:50 1996
++++ work.new/certs/lib/test_ca.C Mon Mar 8 21:33:38 1999
@@ -46,6 +46,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
- #include "Bstream.h"
+ #include <sys/types.h>
+ #include "Time.h"
#include "Bigint.h"
- #include "ObjId.h"
diff --git a/security/skip/files/patch-as b/security/skip/files/patch-as
index c205fa903b6f..8132c5d9326c 100644
--- a/security/skip/files/patch-as
+++ b/security/skip/files/patch-as
@@ -1,12 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/userfuncs.C skipsrc-1.0/certs/lib/userfuncs.C
---- skipsrc-1.0.orig/certs/lib/userfuncs.C Fri Oct 25 13:11:51 1996
-+++ skipsrc-1.0/certs/lib/userfuncs.C Fri Nov 21 11:39:11 1997
-@@ -47,6 +47,8 @@
- #include <sys/types.h>
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/test_passwd.C work.new/certs/lib/test_passwd.C
+--- skipsrc-1.0.orig/certs/lib/test_passwd.C Fri Oct 25 13:11:50 1996
++++ work.new/certs/lib/test_passwd.C Mon Mar 8 21:33:38 1999
+@@ -46,6 +46,7 @@
+
#include <stdio.h>
#include <stdlib.h>
-+#include <pwd.h>
+#include <unistd.h>
- #include "Time.h"
- #include "Bigint.h"
#include "Bstream.h"
+ #include "Bigint.h"
+ #include "ObjId.h"
diff --git a/security/skip/files/patch-at b/security/skip/files/patch-at
index a90d1aa8586f..7efadc32a72d 100644
--- a/security/skip/files/patch-at
+++ b/security/skip/files/patch-at
@@ -1,27 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/doc/INSTALL skipsrc-1.0/doc/INSTALL
---- skipsrc-1.0.orig/doc/INSTALL Fri Oct 25 13:11:55 1996
-+++ skipsrc-1.0/doc/INSTALL Fri Dec 5 17:47:56 1997
-@@ -1,6 +1,13 @@
- Quick-Start Guide
- -----------------
-
-+ ***
-+ *** NOTE TO FREEBSD PORT USERS
-+ ***
-+ *** If you've installed SKIP using the FreeBSD port
-+ *** or package, you can go directly to step #4.
-+ ***
-+
- This is a quick-start guide for SKIP. It covers installing the SKIP
- binaries and setting up IP-level encryption between two hosts.
-
-@@ -64,7 +71,8 @@
- View the key manager log file to see if the the certificate
- exchange and the shared secret computation succeeded:
-
-- tail /var/log/skip.log
-+ tail /var/log/skiphost.log
-+ tail /var/log/messages
-
- If you have tcpdump, etherfind, snoop, or some other packet dumping
- utility, you can verify that encrypted packets are using protocol 57.
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/certs/lib/userfuncs.C work.new/certs/lib/userfuncs.C
+--- skipsrc-1.0.orig/certs/lib/userfuncs.C Fri Oct 25 13:11:51 1996
++++ work.new/certs/lib/userfuncs.C Mon Mar 8 21:33:38 1999
+@@ -47,6 +47,8 @@
+ #include <sys/types.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <pwd.h>
++#include <unistd.h>
+ #include "Time.h"
+ #include "Bigint.h"
+ #include "Bstream.h"
diff --git a/security/skip/files/patch-au b/security/skip/files/patch-au
index 8c7922f5de7b..4a77530b6c78 100644
--- a/security/skip/files/patch-au
+++ b/security/skip/files/patch-au
@@ -1,78 +1,27 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/doc/README.FreeBSD skipsrc-1.0/doc/README.FreeBSD
---- skipsrc-1.0.orig/doc/README.FreeBSD Wed Dec 31 16:00:00 1969
-+++ skipsrc-1.0/doc/README.FreeBSD Sun Apr 12 16:10:32 1998
-@@ -0,0 +1,74 @@
-+
-+Some notes regarding the FreeBSD port of SKIP
-+December 8, 1997
-+
-+- Most of the non-man page documentation has NOT be patched to
-+ reflect the different locations of files, etc. The main difference
-+ is that the original version of SKIP puts everything under /usr/skip,
-+ wheras the FreeBSD port puts it under /usr/local (or elsewhere if
-+ you set ${PREFIX}). This documentation can be found under
-+ /usr/local/share/doc/skip.
-+
-+- Thanks to S. Wehner, skiphost now takes a new argument for specifying
-+ the source address for encrypted packets. This allows encrypted packets
-+ that are being tunnelled between two routers to have source and dest
-+ IP addresses of only those two routers. This reduces firewall complexity
-+ in many cases. From his description:
-+
-+ This adds another command line option to skiphost, namely
-+ -f <source address> . Every packet going out to the other host
-+ will then have this source address in the packet.
-+
-+- SKIP is applied to packets *after* any ipfw(8) filtering is applied.
-+ This is true for both incoming and outgoing packets. Note that SKIP
-+ has its own access control functionality.
-+
-+ One way to deal with this is to do the following:
-+
-+ - Setup ipfw as you normally would to restrict access to your machine.
-+ - Add additional ipfw rules to allow SKIP related traffic:
-+ - ipfw add 10 allow 57 from any to any
-+ - ipfw add 10 allow 79 from any to any (if using SunScreen mode)
-+ - ipfw add 10 allow 50 from any to any (if using raw ESP/AH mode)
-+ - ipfw add 10 allow 51 from any to any (if using raw ESP/AH mode)
-+ - ipfw add 10 allow udp from any to <your-address> 1640
-+ - ipfw add 10 allow udp from <your-address> 1640 to any
-+ - Set the default rule for SKIP to be to allow access.
-+
-+- Skipd will logs via syslog(3) instead of logging directly
-+ to /var/log/skip.log as before, using the LOG_DAEMON facility.
-+
-+ You may want to redirect this output to its own log file.
-+ This is done by the following steps:
-+
-+ 1. touch /var/log/skipd.log
-+ 2. Edit /etc/syslog.conf and add these lines at the end:
-+
-+ !skipd
-+ *.* /var/log/skipd.log
-+
-+ 3. Edit /etc/newsyslog.conf as appropriate
-+ 4. Restart syslogd
-+
-+- Each time skip is started (at reboot time), the skiphost
-+ output is written to /var/log/skiphost.log. You may also
-+ want to add an entry to /etc/newsyslog.conf for this one
-+ as well.
-+
-+- Users of skip should subscribe to the SKIP mailing list
-+ by sending an email to "majordomo@skip.org" containing
-+ the line "subscribe skip-info".
-+
-+- If you have trouble:
-+
-+ - If there is a problem with the port itself (e.g., it won't
-+ compile on your system), use send-pr(1) to send a problem report.
-+
-+ - If you are having trouble with SKIP configuration, use,
-+ compatibility, etc., send your questions to the SKIP
-+ mailing list: skip-info@skip.org (you should subscribe
-+ to it first).
-+
-+Thanks,
-+-Archie Cobbs <archie@whistle.com>
-+
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/doc/INSTALL work.new/doc/INSTALL
+--- skipsrc-1.0.orig/doc/INSTALL Fri Oct 25 13:11:55 1996
++++ work.new/doc/INSTALL Mon Mar 8 21:33:38 1999
+@@ -1,6 +1,13 @@
+ Quick-Start Guide
+ -----------------
+
++ ***
++ *** NOTE TO FREEBSD PORT USERS
++ ***
++ *** If you've installed SKIP using the FreeBSD port
++ *** or package, you can go directly to step #4.
++ ***
++
+ This is a quick-start guide for SKIP. It covers installing the SKIP
+ binaries and setting up IP-level encryption between two hosts.
+
+@@ -64,7 +71,8 @@
+ View the key manager log file to see if the the certificate
+ exchange and the shared secret computation succeeded:
+
+- tail /var/log/skip.log
++ tail /var/log/skiphost.log
++ tail /var/log/messages
+
+ If you have tcpdump, etherfind, snoop, or some other packet dumping
+ utility, you can verify that encrypted packets are using protocol 57.
diff --git a/security/skip/files/patch-av b/security/skip/files/patch-av
index 5e630c71a49d..2c6bc86feb6d 100644
--- a/security/skip/files/patch-av
+++ b/security/skip/files/patch-av
@@ -1,19 +1,77 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/doc/ROADMAP skipsrc-1.0/doc/ROADMAP
---- skipsrc-1.0.orig/doc/ROADMAP Fri Oct 25 13:11:55 1996
-+++ skipsrc-1.0/doc/ROADMAP Mon Dec 8 13:00:51 1997
-@@ -1,6 +1,10 @@
- This directory contains documentation and legal statements for this
- release.
-
-+README.FreeBSD - Notes on the FreeBSD port of SKIP.
-+ All of the other documentation is NOT
-+ specific to FreeBSD.
-+
- 00README - Introduction, Release notes and Build
- Instructions. Read this first. You
- should read this if only for the
-@@ -24,3 +28,4 @@
- architecture and performance.
-
- usersguide.* - User's guide in various formats
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/doc/README.FreeBSD work.new/doc/README.FreeBSD
+--- skipsrc-1.0.orig/doc/README.FreeBSD Wed Dec 31 16:00:00 1969
++++ work.new/doc/README.FreeBSD Wed Mar 10 09:25:35 1999
+@@ -0,0 +1,73 @@
++
++Some notes regarding the FreeBSD port of SKIP
++December 8, 1997
++
++- Much of the non-man page documentation has NOT be patched to reflect
++ the different locations of files, etc. The main difference is that the
++ original version of SKIP puts everything under /usr/skip, whereas the
++ FreeBSD port has put it under @@PREFIX@@. This documentation can be
++ found in @@PREFIX@@/share/doc/skip.
++
++- Thanks to Stephanie Wehner, skiphost now takes a new argument for specifying
++ the source address for encrypted packets. This allows encrypted packets
++ that are being tunnelled between two routers to have source and dest
++ IP addresses of only those two routers. This reduces firewall complexity
++ in many cases. From her description:
++
++ This adds another command line option to skiphost, namely
++ -f <source address> . Every packet going out to the other host
++ will then have this source address in the packet.
++
++- SKIP is applied to packets *after* any ipfw(8) filtering is applied.
++ This is true for both incoming and outgoing packets. Note that SKIP
++ has its own access control functionality.
++
++ One way to deal with this is to do the following:
++
++ - Setup ipfw as you normally would to restrict access to your machine.
++ - Add additional ipfw rules to allow SKIP related traffic:
++ - ipfw add 10 allow 57 from any to any
++ - ipfw add 10 allow 79 from any to any (if using SunScreen mode)
++ - ipfw add 10 allow 50 from any to any (if using raw ESP/AH mode)
++ - ipfw add 10 allow 51 from any to any (if using raw ESP/AH mode)
++ - ipfw add 10 allow udp from any to <your-address> 1640
++ - ipfw add 10 allow udp from <your-address> 1640 to any
++ - Set the default rule for SKIP to be to allow access.
++
++- Skipd will logs via syslog(3) instead of logging directly
++ to /var/log/skip.log as before, using the LOG_DAEMON facility.
++
++ You may want to redirect this output to its own log file.
++ This is done by the following steps:
++
++ 1. touch /var/log/skipd.log
++ 2. Edit /etc/syslog.conf and add these lines at the end:
++
++ !skipd
++ *.* /var/log/skipd.log
++
++ 3. Edit /etc/newsyslog.conf as appropriate
++ 4. Restart syslogd
++
++- Each time skip is started (at reboot time), the skiphost
++ output is written to /var/log/skiphost.log. You may also
++ want to add an entry to /etc/newsyslog.conf for this one
++ as well.
++
++- Users of skip should subscribe to the SKIP mailing list
++ by sending an email to "majordomo@skip.org" containing
++ the line "subscribe skip-info".
++
++- If you have trouble:
++
++ - If there is a problem with the port itself (e.g., it won't
++ compile on your system), use send-pr(1) to send a problem report.
++
++ - If you are having trouble with SKIP configuration, use,
++ compatibility, etc., send your questions to the SKIP
++ mailing list: skip-info@skip.org (you should subscribe
++ to it first).
++
++Thanks,
++-Archie Cobbs <archie@whistle.com>
+
diff --git a/security/skip/files/patch-aw b/security/skip/files/patch-aw
index 536aac0d2203..08b96fec1ba6 100644
--- a/security/skip/files/patch-aw
+++ b/security/skip/files/patch-aw
@@ -1,17 +1,19 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/PORT/freebsd2.1/include/compat.h skipsrc-1.0/libdb/PORT/freebsd2.1/include/compat.h
---- skipsrc-1.0.orig/libdb/PORT/freebsd2.1/include/compat.h Fri Oct 25 13:12:04 1996
-+++ skipsrc-1.0/libdb/PORT/freebsd2.1/include/compat.h Tue Dec 9 11:24:35 1997
-@@ -125,13 +125,6 @@
- #define bcopy(a, b, n) memmove(b, a, n)
- #endif
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/doc/ROADMAP work.new/doc/ROADMAP
+--- skipsrc-1.0.orig/doc/ROADMAP Fri Oct 25 13:11:55 1996
++++ work.new/doc/ROADMAP Mon Mar 8 21:33:38 1999
+@@ -1,6 +1,10 @@
+ This directory contains documentation and legal statements for this
+ release.
--#if defined(BSD) || defined(BSD4_3)
--#define strchr(a, b) index(a, b)
--#define strrchr(a, b) rindex(a, b)
--#define memcmp(a, b, n) bcmp(a, b, n)
--#define memmove(a, b, n) bcopy(b, a, n)
--#endif
--
- /*
- * 32-bit machine. The db routines are theoretically independent of
- * the size of u_shorts and u_longs, but I don't know that anyone has
++README.FreeBSD - Notes on the FreeBSD port of SKIP.
++ All of the other documentation is NOT
++ specific to FreeBSD.
++
+ 00README - Introduction, Release notes and Build
+ Instructions. Read this first. You
+ should read this if only for the
+@@ -24,3 +28,4 @@
+ architecture and performance.
+
+ usersguide.* - User's guide in various formats
++
diff --git a/security/skip/files/patch-ax b/security/skip/files/patch-ax
index d874c43a189c..ecd1919db16a 100644
--- a/security/skip/files/patch-ax
+++ b/security/skip/files/patch-ax
@@ -1,46 +1,17 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/mkpkgs/freebsd/Makefile skipsrc-1.0/mkpkgs/freebsd/Makefile
---- skipsrc-1.0.orig/mkpkgs/freebsd/Makefile Fri Oct 25 13:12:32 1996
-+++ skipsrc-1.0/mkpkgs/freebsd/Makefile Mon Dec 8 16:34:23 1997
-@@ -64,6 +64,7 @@
- $(BLD_DIR)/doc/SKIP_SOFTWARE_LICENSE \
- $(BLD_DIR)/doc/BN_SOFTWARE_LICENSE \
- $(BLD_DIR)/doc/README.PATENT \
-+ $(BLD_DIR)/doc/README.FreeBSD \
- $(BLD_DIR)/doc/00README \
- $(BLD_DIR)/doc/INSTALL \
- $(BLD_DIR)/doc/advanced.TOPICS \
-@@ -104,10 +105,10 @@
- $(MKDIR) $(BSDPROTO)/bin
- $(MKDIR) $(BSDPROTO)/doc
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/PORT/freebsd2.1/include/compat.h work.new/libdb/PORT/freebsd2.1/include/compat.h
+--- skipsrc-1.0.orig/libdb/PORT/freebsd2.1/include/compat.h Fri Oct 25 13:12:04 1996
++++ work.new/libdb/PORT/freebsd2.1/include/compat.h Mon Mar 8 21:33:38 1999
+@@ -125,13 +125,6 @@
+ #define bcopy(a, b, n) memmove(b, a, n)
+ #endif
-- $(INSTALL) -m 0555 $(BLD_DIR)/skip/freebsd/install.skip \
-- $(BSDPROTO)/install.skip
-- $(INSTALL) -m 0555 $(BLD_DIR)/admin/remove.skip \
-- $(BSDPROTO)/remove.skip
-+# $(INSTALL) -m 0555 $(BLD_DIR)/skip/freebsd/install.skip \
-+# $(BSDPROTO)/install.skip
-+# $(INSTALL) -m 0555 $(BLD_DIR)/admin/remove.skip \
-+# $(BSDPROTO)/remove.skip
-
- @echo "Initializing skip/etc directory"
- $(INSTALL) -m 0444 $(BLD_DIR)/admin/SunICG_CA_selfcert \
-@@ -191,6 +192,8 @@
- $(BSDPROTO)/doc/BN_SOFTWARE_LICENSE
- $(INSTALL) -m 0644 $(BLD_DIR)/doc/README.PATENT \
- $(BSDPROTO)/doc/README.PATENT
-+ $(INSTALL) -m 0644 $(BLD_DIR)/doc/README.FreeBSD \
-+ $(BSDPROTO)/doc/README.FreeBSD
- $(INSTALL) -m 0644 $(BLD_DIR)/doc/00README \
- $(BSDPROTO)/doc/00README
- $(INSTALL) -m 0644 $(BLD_DIR)/doc/INSTALL \
-@@ -239,8 +242,8 @@
- $(BSDPROTO)/man/man4/raw_keys.4
- $(INSTALL) -m 0644 $(BLD_DIR)/certs/man/print_cert.1m \
- $(BSDPROTO)/man/man1/print_cert.1
-- (cd $(BSDBIN); tar cvf skip.tar skip)
-- (cd $(BSDBIN); compress skip.tar)
-+# (cd $(BSDBIN); tar cvf skip.tar skip)
-+# (cd $(BSDBIN); compress skip.tar)
-
- clean:
- @-$(RM) -rf $(BSDBIN)
+-#if defined(BSD) || defined(BSD4_3)
+-#define strchr(a, b) index(a, b)
+-#define strrchr(a, b) rindex(a, b)
+-#define memcmp(a, b, n) bcmp(a, b, n)
+-#define memmove(a, b, n) bcopy(b, a, n)
+-#endif
+-
+ /*
+ * 32-bit machine. The db routines are theoretically independent of
+ * the size of u_shorts and u_longs, but I don't know that anyone has
diff --git a/security/skip/files/patch-ay b/security/skip/files/patch-ay
index ece612801395..5f1915d950d3 100644
--- a/security/skip/files/patch-ay
+++ b/security/skip/files/patch-ay
@@ -1,73 +1,58 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/bdcmod/des_ecb/dessp.c skipsrc-1.0/skip/bdcmod/des_ecb/dessp.c
---- skipsrc-1.0.orig/skip/bdcmod/des_ecb/dessp.c Fri Oct 25 13:12:34 1996
-+++ skipsrc-1.0/skip/bdcmod/des_ecb/dessp.c Tue Dec 9 11:34:28 1997
-@@ -2,6 +2,7 @@
- #pragma ident "@(#)dessp.c 1.2 95/11/15 Sun Microsystems"
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/hash/hash.c work.new/libdb/hash/hash.c
+--- skipsrc-1.0.orig/libdb/hash/hash.c Fri Oct 25 13:12:20 1996
++++ work.new/libdb/hash/hash.c Mon Mar 8 21:33:38 1999
+@@ -505,7 +505,7 @@
+ else
+ if (wsize != sizeof(HASHHDR)) {
+ errno = EFTYPE;
+- hashp->errno = errno;
++ hashp->errnum = errno;
+ return (-1);
+ }
+ for (i = 0; i < NCACHED; i++)
+@@ -536,7 +536,7 @@
- unsigned long Spbox[8][64] = {
-+{
- 0x01010400,0x00000000,0x00010000,0x01010404,
- 0x01010004,0x00010404,0x00000004,0x00010000,
- 0x00000400,0x01010400,0x01010404,0x00000400,
-@@ -18,6 +19,7 @@
- 0x01000004,0x00000404,0x00010404,0x01010400,
- 0x00000404,0x01000400,0x01000400,0x00000000,
- 0x00010004,0x00010400,0x00000000,0x01010004,
-+}, {
- 0x80108020,0x80008000,0x00008000,0x00108020,
- 0x00100000,0x00000020,0x80100020,0x80008020,
- 0x80000020,0x80108020,0x80108000,0x80000000,
-@@ -34,6 +36,7 @@
- 0x00100020,0x80008020,0x80000020,0x00100020,
- 0x00108000,0x00000000,0x80008000,0x00008020,
- 0x80000000,0x80100020,0x80108020,0x00108000,
-+}, {
- 0x00000208,0x08020200,0x00000000,0x08020008,
- 0x08000200,0x00000000,0x00020208,0x08000200,
- 0x00020008,0x08000008,0x08000008,0x00020000,
-@@ -50,6 +53,7 @@
- 0x00000008,0x00020208,0x00020200,0x08000008,
- 0x08020000,0x08000208,0x00000208,0x08020000,
- 0x00020208,0x00000008,0x08020008,0x00020200,
-+}, {
- 0x00802001,0x00002081,0x00002081,0x00000080,
- 0x00802080,0x00800081,0x00800001,0x00002001,
- 0x00000000,0x00802000,0x00802000,0x00802081,
-@@ -66,6 +70,7 @@
- 0x00800001,0x00002001,0x00802080,0x00800081,
- 0x00002001,0x00002080,0x00800000,0x00802001,
- 0x00000080,0x00800000,0x00002000,0x00802080,
-+}, {
- 0x00000100,0x02080100,0x02080000,0x42000100,
- 0x00080000,0x00000100,0x40000000,0x02080000,
- 0x40080100,0x00080000,0x02000100,0x40080100,
-@@ -82,6 +87,7 @@
- 0x02080000,0x00000000,0x40080000,0x42000000,
- 0x00080100,0x02000100,0x40000100,0x00080000,
- 0x00000000,0x40080000,0x02080100,0x40000100,
-+}, {
- 0x20000010,0x20400000,0x00004000,0x20404010,
- 0x20400000,0x00000010,0x20404010,0x00400000,
- 0x20004000,0x00404010,0x00400000,0x20000010,
-@@ -98,6 +104,7 @@
- 0x00000010,0x00004000,0x20400000,0x00404010,
- 0x00004000,0x00400010,0x20004010,0x00000000,
- 0x20404000,0x20000000,0x00400010,0x20004010,
-+}, {
- 0x00200000,0x04200002,0x04000802,0x00000000,
- 0x00000800,0x04000802,0x00200802,0x04200800,
- 0x04200802,0x00200000,0x00000000,0x04000002,
-@@ -114,6 +121,7 @@
- 0x00200800,0x00000000,0x00000002,0x04200802,
- 0x00000000,0x00200802,0x04200000,0x00000800,
- 0x04000002,0x04000800,0x00000800,0x00200002,
-+}, {
- 0x10001040,0x00001000,0x00040000,0x10041040,
- 0x10000000,0x10001040,0x00000040,0x10000000,
- 0x00040040,0x10040000,0x10041040,0x00041000,
-@@ -130,4 +138,5 @@
- 0x10040000,0x10001000,0x10001040,0x00000000,
- 0x10041040,0x00041000,0x00041000,0x00001040,
- 0x00001040,0x00040040,0x10000000,0x10041000,
-+},
- };
+ hashp = (HTAB *)dbp->internal;
+ if (flag) {
+- hashp->errno = errno = EINVAL;
++ hashp->errnum = errno = EINVAL;
+ return (ERROR);
+ }
+ return (hash_access(hashp, HASH_GET, (DBT *)key, data));
+@@ -553,11 +553,11 @@
+
+ hashp = (HTAB *)dbp->internal;
+ if (flag && flag != R_NOOVERWRITE) {
+- hashp->errno = errno = EINVAL;
++ hashp->errnum = errno = EINVAL;
+ return (ERROR);
+ }
+ if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
+- hashp->errno = errno = EPERM;
++ hashp->errnum = errno = EPERM;
+ return (ERROR);
+ }
+ return (hash_access(hashp, flag == R_NOOVERWRITE ?
+@@ -574,11 +574,11 @@
+
+ hashp = (HTAB *)dbp->internal;
+ if (flag && flag != R_CURSOR) {
+- hashp->errno = errno = EINVAL;
++ hashp->errnum = errno = EINVAL;
+ return (ERROR);
+ }
+ if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
+- hashp->errno = errno = EPERM;
++ hashp->errnum = errno = EPERM;
+ return (ERROR);
+ }
+ return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
+@@ -729,7 +729,7 @@
+
+ hashp = (HTAB *)dbp->internal;
+ if (flag && flag != R_FIRST && flag != R_NEXT) {
+- hashp->errno = errno = EINVAL;
++ hashp->errnum = errno = EINVAL;
+ return (ERROR);
+ }
+ #ifdef HASH_STATISTICS
diff --git a/security/skip/files/patch-az b/security/skip/files/patch-az
index 2d97eac4f498..66aa82fa6d44 100644
--- a/security/skip/files/patch-az
+++ b/security/skip/files/patch-az
@@ -1,12 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/bdcmod/fast_des_cbc/descbc.c skipsrc-1.0/skip/bdcmod/fast_des_cbc/descbc.c
---- skipsrc-1.0.orig/skip/bdcmod/fast_des_cbc/descbc.c Fri Oct 25 13:12:36 1996
-+++ skipsrc-1.0/skip/bdcmod/fast_des_cbc/descbc.c Mon Dec 15 17:41:10 1997
-@@ -424,7 +424,7 @@
- return;
- cs=(struct des_cbc_state *)csp;
-
-- *payload = IPPROTO_ENCAP;
-+ *payload = IPPROTO_IPIP;
-
- ks = (unsigned long *)(cs->keysched);
- mod8 = (len & 0x07); /* technically this is (len % 8) */
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/hash/hash.h work.new/libdb/hash/hash.h
+--- skipsrc-1.0.orig/libdb/hash/hash.h Fri Oct 25 13:12:21 1996
++++ work.new/libdb/hash/hash.h Mon Mar 8 21:33:38 1999
+@@ -103,7 +103,7 @@
+ BUFHEAD *cpage; /* Current page */
+ int cbucket; /* Current bucket */
+ int cndx; /* Index of next item on cpage */
+- int errno; /* Error Number -- for DBM
++ int errnum; /* Error Number -- for DBM
+ * compatability */
+ int new_file; /* Indicates if fd is backing store
+ * or no */
diff --git a/security/skip/files/patch-ba b/security/skip/files/patch-ba
index 18e09d8b3ba4..d9d7779ed51a 100644
--- a/security/skip/files/patch-ba
+++ b/security/skip/files/patch-ba
@@ -1,12 +1,21 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/bdcmod/simplecrypt/simplecrypt.c skipsrc-1.0/skip/bdcmod/simplecrypt/simplecrypt.c
---- skipsrc-1.0.orig/skip/bdcmod/simplecrypt/simplecrypt.c Fri Oct 25 13:12:38 1996
-+++ skipsrc-1.0/skip/bdcmod/simplecrypt/simplecrypt.c Mon Dec 15 17:41:14 1997
-@@ -335,7 +335,7 @@
- register char *s = keyp->buf;
- register char *e = keyp->buf + keyp->len;
-
-- *payload_type = IPPROTO_ENCAP;
-+ *payload_type = IPPROTO_IPIP;
-
- /*
- * exclusive-or the key over the buffer
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/hash/ndbm.c work.new/libdb/hash/ndbm.c
+--- skipsrc-1.0.orig/libdb/hash/ndbm.c Fri Oct 25 13:12:22 1996
++++ work.new/libdb/hash/ndbm.c Mon Mar 8 21:33:38 1999
+@@ -180,7 +180,7 @@
+ HTAB *hp;
+
+ hp = (HTAB *)db->internal;
+- return (hp->errno);
++ return (hp->errnum);
+ }
+
+ extern int
+@@ -190,7 +190,7 @@
+ HTAB *hp;
+
+ hp = (HTAB *)db->internal;
+- hp->errno = 0;
++ hp->errnum = 0;
+ return (0);
+ }
+
diff --git a/security/skip/files/patch-bb b/security/skip/files/patch-bb
index e684daa9dfdb..32c0ccf41905 100644
--- a/security/skip/files/patch-bb
+++ b/security/skip/files/patch-bb
@@ -1,12 +1,57 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/common/skip_keystore.c skipsrc-1.0/skip/common/skip_keystore.c
---- skipsrc-1.0.orig/skip/common/skip_keystore.c Fri Oct 25 13:12:41 1996
-+++ skipsrc-1.0/skip/common/skip_keystore.c Mon Dec 15 17:41:20 1997
-@@ -308,7 +308,7 @@
- /*
- * SKIP tunneling mode
- */
-- params->payload_type = IPPROTO_ENCAP;
-+ params->payload_type = IPPROTO_IPIP;
- }
- /*
- * Return offset of data to decrypt
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/mkpkgs/freebsd/Makefile work.new/mkpkgs/freebsd/Makefile
+--- skipsrc-1.0.orig/mkpkgs/freebsd/Makefile Fri Oct 25 13:12:32 1996
++++ work.new/mkpkgs/freebsd/Makefile Mon Mar 8 22:13:27 1999
+@@ -64,6 +64,7 @@
+ $(BLD_DIR)/doc/SKIP_SOFTWARE_LICENSE \
+ $(BLD_DIR)/doc/BN_SOFTWARE_LICENSE \
+ $(BLD_DIR)/doc/README.PATENT \
++ $(BLD_DIR)/doc/README.FreeBSD \
+ $(BLD_DIR)/doc/00README \
+ $(BLD_DIR)/doc/INSTALL \
+ $(BLD_DIR)/doc/advanced.TOPICS \
+@@ -104,10 +105,10 @@
+ $(MKDIR) $(BSDPROTO)/bin
+ $(MKDIR) $(BSDPROTO)/doc
+
+- $(INSTALL) -m 0555 $(BLD_DIR)/skip/freebsd/install.skip \
+- $(BSDPROTO)/install.skip
+- $(INSTALL) -m 0555 $(BLD_DIR)/admin/remove.skip \
+- $(BSDPROTO)/remove.skip
++# $(INSTALL) -m 0555 $(BLD_DIR)/skip/freebsd/install.skip \
++# $(BSDPROTO)/install.skip
++# $(INSTALL) -m 0555 $(BLD_DIR)/admin/remove.skip \
++# $(BSDPROTO)/remove.skip
+
+ @echo "Initializing skip/etc directory"
+ $(INSTALL) -m 0444 $(BLD_DIR)/admin/SunICG_CA_selfcert \
+@@ -124,8 +125,8 @@
+ $(BSDPROTO)/etc/skipd.conf
+
+ @echo "Adding skip/drv to release"
+- $(INSTALL) -m 0755 $(BLD_DIR)/skip/freebsd/bin.x86/skip.o \
+- $(BSDPROTO)/drv/skip.o
++ $(INSTALL) -m 0755 $(BLD_DIR)/skip/freebsd/skip.ko \
++ $(BSDPROTO)/drv/skip.ko
+
+ @echo "Adding skip/bin to release"
+ $(INSTALL) -m 0755 $(BLD_DIR)/skip/tools/skiptool/none.ras \
+@@ -191,6 +192,8 @@
+ $(BSDPROTO)/doc/BN_SOFTWARE_LICENSE
+ $(INSTALL) -m 0644 $(BLD_DIR)/doc/README.PATENT \
+ $(BSDPROTO)/doc/README.PATENT
++ $(INSTALL) -m 0644 $(BLD_DIR)/doc/README.FreeBSD \
++ $(BSDPROTO)/doc/README.FreeBSD
+ $(INSTALL) -m 0644 $(BLD_DIR)/doc/00README \
+ $(BSDPROTO)/doc/00README
+ $(INSTALL) -m 0644 $(BLD_DIR)/doc/INSTALL \
+@@ -239,8 +242,8 @@
+ $(BSDPROTO)/man/man4/raw_keys.4
+ $(INSTALL) -m 0644 $(BLD_DIR)/certs/man/print_cert.1m \
+ $(BSDPROTO)/man/man1/print_cert.1
+- (cd $(BSDBIN); tar cvf skip.tar skip)
+- (cd $(BSDBIN); compress skip.tar)
++# (cd $(BSDBIN); tar cvf skip.tar skip)
++# (cd $(BSDBIN); compress skip.tar)
+
+ clean:
+ @-$(RM) -rf $(BSDBIN)
diff --git a/security/skip/files/patch-bc b/security/skip/files/patch-bc
index 0177ad2efe22..1ecbfe8e44e4 100644
--- a/security/skip/files/patch-bc
+++ b/security/skip/files/patch-bc
@@ -1,12 +1,73 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/Makefile.defs skipsrc-1.0/skip/freebsd/Makefile.defs
---- skipsrc-1.0.orig/skip/freebsd/Makefile.defs Fri Oct 25 13:12:42 1996
-+++ skipsrc-1.0/skip/freebsd/Makefile.defs Fri Nov 21 11:39:11 1997
-@@ -93,7 +93,7 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/bdcmod/des_ecb/dessp.c work.new/skip/bdcmod/des_ecb/dessp.c
+--- skipsrc-1.0.orig/skip/bdcmod/des_ecb/dessp.c Fri Oct 25 13:12:34 1996
++++ work.new/skip/bdcmod/des_ecb/dessp.c Mon Mar 8 21:33:38 1999
+@@ -2,6 +2,7 @@
+ #pragma ident "@(#)dessp.c 1.2 95/11/15 Sun Microsystems"
- # Kernel compilation flags
- #
--K_FLAGS_FREEBSD_gnu = -DKERNEL -DFREEBSD
-+K_FLAGS_FREEBSD_gnu = -DKERNEL -DACTUALLY_LKM_NOT_KERNEL
-
- # OS Libraries
- #
+ unsigned long Spbox[8][64] = {
++{
+ 0x01010400,0x00000000,0x00010000,0x01010404,
+ 0x01010004,0x00010404,0x00000004,0x00010000,
+ 0x00000400,0x01010400,0x01010404,0x00000400,
+@@ -18,6 +19,7 @@
+ 0x01000004,0x00000404,0x00010404,0x01010400,
+ 0x00000404,0x01000400,0x01000400,0x00000000,
+ 0x00010004,0x00010400,0x00000000,0x01010004,
++}, {
+ 0x80108020,0x80008000,0x00008000,0x00108020,
+ 0x00100000,0x00000020,0x80100020,0x80008020,
+ 0x80000020,0x80108020,0x80108000,0x80000000,
+@@ -34,6 +36,7 @@
+ 0x00100020,0x80008020,0x80000020,0x00100020,
+ 0x00108000,0x00000000,0x80008000,0x00008020,
+ 0x80000000,0x80100020,0x80108020,0x00108000,
++}, {
+ 0x00000208,0x08020200,0x00000000,0x08020008,
+ 0x08000200,0x00000000,0x00020208,0x08000200,
+ 0x00020008,0x08000008,0x08000008,0x00020000,
+@@ -50,6 +53,7 @@
+ 0x00000008,0x00020208,0x00020200,0x08000008,
+ 0x08020000,0x08000208,0x00000208,0x08020000,
+ 0x00020208,0x00000008,0x08020008,0x00020200,
++}, {
+ 0x00802001,0x00002081,0x00002081,0x00000080,
+ 0x00802080,0x00800081,0x00800001,0x00002001,
+ 0x00000000,0x00802000,0x00802000,0x00802081,
+@@ -66,6 +70,7 @@
+ 0x00800001,0x00002001,0x00802080,0x00800081,
+ 0x00002001,0x00002080,0x00800000,0x00802001,
+ 0x00000080,0x00800000,0x00002000,0x00802080,
++}, {
+ 0x00000100,0x02080100,0x02080000,0x42000100,
+ 0x00080000,0x00000100,0x40000000,0x02080000,
+ 0x40080100,0x00080000,0x02000100,0x40080100,
+@@ -82,6 +87,7 @@
+ 0x02080000,0x00000000,0x40080000,0x42000000,
+ 0x00080100,0x02000100,0x40000100,0x00080000,
+ 0x00000000,0x40080000,0x02080100,0x40000100,
++}, {
+ 0x20000010,0x20400000,0x00004000,0x20404010,
+ 0x20400000,0x00000010,0x20404010,0x00400000,
+ 0x20004000,0x00404010,0x00400000,0x20000010,
+@@ -98,6 +104,7 @@
+ 0x00000010,0x00004000,0x20400000,0x00404010,
+ 0x00004000,0x00400010,0x20004010,0x00000000,
+ 0x20404000,0x20000000,0x00400010,0x20004010,
++}, {
+ 0x00200000,0x04200002,0x04000802,0x00000000,
+ 0x00000800,0x04000802,0x00200802,0x04200800,
+ 0x04200802,0x00200000,0x00000000,0x04000002,
+@@ -114,6 +121,7 @@
+ 0x00200800,0x00000000,0x00000002,0x04200802,
+ 0x00000000,0x00200802,0x04200000,0x00000800,
+ 0x04000002,0x04000800,0x00000800,0x00200002,
++}, {
+ 0x10001040,0x00001000,0x00040000,0x10041040,
+ 0x10000000,0x10001040,0x00000040,0x10000000,
+ 0x00040040,0x10040000,0x10041040,0x00041000,
+@@ -130,4 +138,5 @@
+ 0x10040000,0x10001000,0x10001040,0x00000000,
+ 0x10041040,0x00041000,0x00041000,0x00001040,
+ 0x00001040,0x00040040,0x10000000,0x10041000,
++},
+ };
diff --git a/security/skip/files/patch-bd b/security/skip/files/patch-bd
index e3f4a1a5e0ef..77494a7d194d 100644
--- a/security/skip/files/patch-bd
+++ b/security/skip/files/patch-bd
@@ -1,137 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/rc skipsrc-1.0/skip/freebsd/rc
---- skipsrc-1.0.orig/skip/freebsd/rc Fri Oct 25 13:13:19 1996
-+++ skipsrc-1.0/skip/freebsd/rc Thu Dec 18 10:50:34 1997
-@@ -44,22 +44,30 @@
-
- #pragma ident "@(#)rc 1.5 96/10/08 Sun Microsystems"
- #
--PATH=/bin:/usr/bin:/sbin:/usr/ucb:/usr/etc
--SKIP_PATH=${SKIP_PATH-/usr/skip}
--SKIPD=/usr/skip/bin/skipd
--SKIP_HOST=/usr/skip/bin/skiphost
--SKIP_VAR_CMD=/usr/skip/bin/skipvar
--SKIP_SECURE_HOSTS=/etc/skip/hosts
--SKIP_ETC=/etc/skip
--SKIP_VAR=/var/skip
-+
-+PATH=/bin:/usr/bin:/sbin:/usr/sbin
-+PREFIX=@@PREFIX@@
-+
-+SKIP_BIN=${PREFIX}/bin
-+SKIP_ETC=${PREFIX}/etc/skip
-+SKIP_LKM=${PREFIX}/lkm
-+
-+SKIPD=${SKIP_BIN}/skipd
-+SKIP_HOST=${SKIP_BIN}/skiphost
-+SKIP_MKDEV=${SKIP_ETC}/skip.mkdev
-+SKIP_SECURE_HOSTS=${SKIP_ETC}/hosts
-+
-+SKIP_VAR=/var/tmp
- VAR_SIZE=830
--SKIP_REQ_FILES="$SKIP_PATH/drv/skip.o $SKIP_ETC/skip.mkdev"
--PSEUDO_DRVS="skip"
-+
-+SKIP_REQ_FILES="${SKIP_LKM}/skip.o ${SKIP_ETC}/skip.mkdev"
-+SKIP_MOD="skip_mod"
-
- verify_owner()
- {
- me=`whoami`
- if [ $me != "root" ]; then
-+ echo ""
- echo "skip: this script must be run as root ... fatal error"
- exit 1
- fi
-@@ -68,6 +76,7 @@
- pre_checks() {
- for FILE in $SKIP_REQ_FILES; do
- if [ ! -f $FILE ]; then
-+ echo ""
- echo "skip: installation problem detected"
- echo "skip: $FILE not found"
- echo "skip: please refer to installation guide"
-@@ -76,6 +85,7 @@
- done
-
- if [ ! -w $SKIP_VAR ]; then
-+ echo ""
- echo "skip: can not write to $SKIP_VAR"
- exit 1
- fi
-@@ -85,11 +95,12 @@
-
- sync
-
-- DISK_AVAIL=`df $SKIP_VAR | awk 'NR==2 {x=$4}
-+ DISK_AVAIL=`df -k $SKIP_VAR | awk 'NR==2 {x=$4}
- NR==3 {x=$3}
- END {print x}'`
-
- if [ $DISK_AVAIL -lt $VAR_SIZE ]; then
-+ echo ""
- echo "skip: not enough space available in $SKIP_VAR"
- echo "skip: $VAR_SIZE kbytes will be required to run the product"
- exit 1
-@@ -98,45 +109,37 @@
-
- load_driver()
- {
-- modstat > $SKIP_VAR/modules
--
-- # load pseudo-drivers
-- for driver in $PSEUDO_DRVS; do
-+ modstat | awk '{ print $8 }' | grep ${SKIP_MOD} > /dev/null 2>&1
-
-- awk '{ print $8 }' $SKIP_VAR/modules | grep $driver > /dev/null 2>&1
-+ if [ $? -ne 0 ]; then
-+ modload -q -o ${SKIP_VAR}/${SKIP_MOD}.out \
-+ -p ${SKIP_MKDEV} ${SKIP_LKM}/skip.o > /dev/null
-+ if [ $? -ne 0 ]; then
-+ echo ""
-+ echo "skip: failed to load driver"
-+ echo "skip: perhaps too many drivers are loaded?"
-+ exit 1
-+ fi
-
-- if [ $? -eq 0 ]; then
-- echo "skip: driver already loaded"
-- else
-- echo "skip: loading driver"
-- modload -o $SKIP_VAR/$driver \
-- -p $SKIP_ETC/$driver.mkdev \
-- $SKIP_PATH/drv/$driver.o> /dev/null
--
--
-- if [ $? -ne 0 ]; then
-- echo "skip: failed to load driver"
-- echo "skip: perhaps too many drivers are loaded?"
-- exit 1
-- fi
-+ fi
-
-- fi
-- done
- }
-
- start_daemons() {
- if [ -x $SKIPD ]; then
-- echo -n "starting skip key manager daemon"
-- $SKIPD > /var/log/skipd.log &
-- echo "."
-+ $SKIPD
- fi
-
- if [ -x $SKIP_SECURE_HOSTS -a -x $SKIP_HOST ]; then
-- $SKIP_SECURE_HOSTS >> /var/log/skipd.log 2>&1 &
-+ $SKIP_SECURE_HOSTS >> /var/log/skiphost.log 2>&1 &
- fi
- }
-
- # main
-+
-+# keep console output pretty
-+echo -n " skip"
-+
- verify_owner
- pre_checks
- load_driver
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/bdcmod/fast_des_cbc/descbc.c work.new/skip/bdcmod/fast_des_cbc/descbc.c
+--- skipsrc-1.0.orig/skip/bdcmod/fast_des_cbc/descbc.c Fri Oct 25 13:12:36 1996
++++ work.new/skip/bdcmod/fast_des_cbc/descbc.c Mon Mar 8 21:33:38 1999
+@@ -424,7 +424,7 @@
+ return;
+ cs=(struct des_cbc_state *)csp;
+
+- *payload = IPPROTO_ENCAP;
++ *payload = IPPROTO_IPIP;
+
+ ks = (unsigned long *)(cs->keysched);
+ mod8 = (len & 0x07); /* technically this is (len % 8) */
diff --git a/security/skip/files/patch-be b/security/skip/files/patch-be
index fbfae2ba743c..cb38c71c3e53 100644
--- a/security/skip/files/patch-be
+++ b/security/skip/files/patch-be
@@ -1,12 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip.mkdev skipsrc-1.0/skip/freebsd/skip.mkdev
---- skipsrc-1.0.orig/skip/freebsd/skip.mkdev Fri Oct 25 13:13:20 1996
-+++ skipsrc-1.0/skip/freebsd/skip.mkdev Thu Dec 4 17:53:18 1997
-@@ -48,7 +48,7 @@
- SKIP_KEYMGRD_MINOR=0
- SKIP_ACL_NODE=/dev/skip
- SKIP_MAX_OPENS=16
--PATH=/bin:/usr/ucb:/sbin:
-+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/bdcmod/simplecrypt/simplecrypt.c work.new/skip/bdcmod/simplecrypt/simplecrypt.c
+--- skipsrc-1.0.orig/skip/bdcmod/simplecrypt/simplecrypt.c Fri Oct 25 13:12:38 1996
++++ work.new/skip/bdcmod/simplecrypt/simplecrypt.c Mon Mar 8 21:33:38 1999
+@@ -335,7 +335,7 @@
+ register char *s = keyp->buf;
+ register char *e = keyp->buf + keyp->len;
- if [ $# != 3 ]; then
- exit
+- *payload_type = IPPROTO_ENCAP;
++ *payload_type = IPPROTO_IPIP;
+
+ /*
+ * exclusive-or the key over the buffer
diff --git a/security/skip/files/patch-bf b/security/skip/files/patch-bf
index 2afa0884eb1f..308bc3f9159b 100644
--- a/security/skip/files/patch-bf
+++ b/security/skip/files/patch-bf
@@ -1,146 +1,30 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_es.c skipsrc-1.0/skip/freebsd/skip_es.c
---- skipsrc-1.0.orig/skip/freebsd/skip_es.c Fri Oct 25 20:12:42 1996
-+++ skipsrc-1.0/skip/freebsd/skip_es.c Mon Nov 16 22:55:18 1998
-@@ -81,6 +81,11 @@
- static unsigned short skip_pktid;
- static skip_softc_t skip_softc[SKIP_MAX_OPENS];
-
-+#ifdef NEW_TIMEOUT_INTERFACE
-+static struct callout_handle
-+ skip_timeout_handle = CALLOUT_HANDLE_INITIALIZER(&skip_timeout_handle);
-+#endif
-+
- /*
- * statistics
- */
-@@ -252,7 +257,10 @@
- for (pr = inetdomain.dom_protosw;
- pr < inetdomain.dom_protoswNPROTOSW; pr++) {
-
-- pr->pr_input = skip_ifinput;
-+ if (pr->pr_protocol == IPPROTO_DIVERT)
-+ continue;
-+ pr->pr_input =
-+ (void (*)(struct mbuf *, int)) skip_ifinput;
- }
- splx(s);
- }
-@@ -788,7 +796,11 @@
- static void
- skip_inittimers()
- {
-+#ifdef NEW_TIMEOUT_INTERFACE
-+ skip_timeout_handle = timeout(skip_timer, NULL, skip_key_tick * hz);
-+#else
- timeout(skip_timer, NULL, skip_key_tick * hz);
-+#endif
- }
-
- /* skip_uninittimers()
-@@ -800,7 +812,12 @@
- static void
- skip_uninittimers()
- {
-+#ifdef NEW_TIMEOUT_INTERFACE
-+ untimeout(skip_timer, NULL, skip_timeout_handle);
-+ callout_handle_init(&skip_timeout_handle);
-+#else
- untimeout(skip_timer, NULL);
-+#endif
- }
-
- /* skip_timer()
-@@ -819,7 +836,11 @@
- * run through the key store
- */
- skip_key_iterate(skip_key_check, NULL);
-+#ifdef NEW_TIMEOUT_INTERFACE
-+ skip_timeout_handle = timeout(skip_timer, NULL, skip_key_tick * hz);
-+#else
- timeout(skip_timer, NULL, skip_key_tick * hz);
-+#endif
- }
-
- #ifdef notdef
-@@ -1718,7 +1739,7 @@
- */
- decryptbuf->m_data += iphlen;
-
-- SKIP_DEBUG2("skip_ifinput: decryptbuf m_len=%d m_data=%d\n",
-+ SKIP_DEBUG2("skip_ifinput: decryptbuf m_len=%d m_data=%p\n",
- decryptbuf->m_len, decryptbuf->m_data);
-
- }
-@@ -1745,7 +1766,7 @@
- ip->ip_id = ntohs(ip->ip_id);
- ip->ip_off = ntohs(ip->ip_off);
- pass:
-- m->m_flags &= ~ M_EOR;
-+ m->m_flags &= ~ M_PROTO1;
- (*inetsw_default[ip_protox[ip->ip_p]].pr_input)(m, hlen);
- return (0);
- }
-@@ -1910,6 +1931,13 @@
- */
- IPADDRCOPY(&params.tunnel_addr, &newip->ip_dst);
-
-+ /*
-+ * insert different source address if specified
-+ */
-+
-+ if(params.source != 0)
-+ (&newip->ip_src)->s_addr = params.source;
-+
- encryptbuf->m_len += sizeof (struct ip);
-
+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 Tue Mar 9 20:23:43 1999
+@@ -308,7 +308,7 @@
/*
-@@ -2005,7 +2033,7 @@
- if (params.kp_alg) {
- newip->ip_p = SKIP_NEXT_ESP;
- } else {
-- newip->ip_p = IPPROTO_ENCAP;
-+ newip->ip_p = IPPROTO_IPIP;
- }
- }
- skip_if->stats.skip_if_raw_out++;
-@@ -2028,6 +2056,13 @@
- * insert tunnel address as destination
- */
- IPADDRCOPY(&params.tunnel_addr, &newip->ip_dst);
-+
-+ /*
-+ * insert different source address if specified
-+ */
-+
-+ if(params.source != 0)
-+ (&newip->ip_src)->s_addr = params.source;
+ * 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;
- if (params.s_nsid == 0) {
-@@ -2097,7 +2132,7 @@
- register skip_param_t *params = &res->params;
- register struct ip *ip = mtod(original, struct ip *);
- int rc, s, iphlen;
-- struct mbuf *outbuf, *new_hdr;
-+ struct mbuf *outbuf;
-
- SKIP_PRINT("skip_decrypt_done", params);
-
-@@ -2125,7 +2160,7 @@
- */
- outbuf = (res->modes & SKIP_CRYPT_ON) ? m : original;
+- rc = (*f)(cp);
++ rc = (*f)(cp, arg);
-- if (res->proto != IPPROTO_ENCAP) {
-+ if (res->proto != IPPROTO_IPIP) {
- /*
- * transport mode, need to copy original IP header
- */
-@@ -2195,7 +2230,7 @@
- /*
- * tag the start of the header buffer so SKIP can recognise it
- */
-- outbuf->m_flags |= M_EOR | M_PKTHDR;
-+ outbuf->m_flags |= M_PROTO1 | M_PKTHDR;
-
- s = splimp();
- if (IF_QFULL(&ipintrq)) {
+ if (rc) {
+ skip_hash_remove(cp, skip_decrypt_hashtable,
diff --git a/security/skip/files/patch-bg b/security/skip/files/patch-bg
index 0823694663d8..f3a5efbfac11 100644
--- a/security/skip/files/patch-bg
+++ b/security/skip/files/patch-bg
@@ -1,197 +1,111 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_os.h skipsrc-1.0/skip/freebsd/skip_os.h
---- skipsrc-1.0.orig/skip/freebsd/skip_os.h Fri Oct 25 13:12:43 1996
-+++ skipsrc-1.0/skip/freebsd/skip_os.h Sun Apr 12 15:52:01 1998
-@@ -54,7 +54,6 @@
- #ifndef KERNEL
- #include <stdio.h>
- #include <string.h>
--#include <strings.h>
- #include <errno.h>
- #include <fcntl.h>
- #include <unistd.h>
-@@ -69,6 +68,12 @@
- #include <dirent.h>
- #endif
-
-+#include <osreldate.h>
-+
-+#ifdef KERNEL
-+#include <sys/cdefs.h>
-+#endif
-+
- #include <sys/types.h>
- #include <sys/errno.h>
- #include <sys/time.h>
-@@ -77,16 +82,23 @@
- #include <sys/malloc.h>
- #include <sys/stat.h>
- #include <sys/socket.h>
-+#if __FreeBSD_version >= 300000
-+#include <sys/socketvar.h>
-+#endif
- #include <sys/syslog.h>
- #include <sys/param.h>
- #include <sys/uio.h>
- #include <sys/file.h>
- #include <sys/sockio.h>
- #include <sys/wait.h>
-+#include <sys/fcntl.h>
-
- #ifndef __cplusplus
- #include <machine/cpu.h>
- #include <net/if.h>
-+#if __FreeBSD_version >= 300000
-+#include <net/if_var.h>
-+#endif
- #include <netinet/in_systm.h>
- #endif
- #include <netinet/in.h>
-@@ -94,8 +106,8 @@
- #include <netinet/ip.h>
- #include <netinet/udp.h>
- #include <netinet/in_var.h>
--#include <arpa/inet.h>
- #endif
-+#include <arpa/inet.h>
-
- /*
- * Basic required types and constants
-@@ -116,6 +128,7 @@
- #include <sys/sysent.h>
- #include <sys/exec.h>
- #include <sys/lkm.h>
-+#include <sys/sysproto.h>
- #include <sys/protosw.h>
- #include <net/route.h>
- #include <sys/kernel.h>
-@@ -123,6 +136,7 @@
- #include <net/netisr.h>
- #include <sys/proc.h>
- #include <sys/device.h>
-+#include <sys/libkern.h>
-
- #define PANIC(s) panic(s)
-
-@@ -131,11 +145,17 @@
- */
- #define SYSMEM_ALLOC(size) malloc((u_long)size, M_PCB, M_NOWAIT)
- #define SYSMEM_FREE(m, n) free(m, M_PCB)
--#define BCOPY(s, d, n) bcopy((caddr_t) s, (caddr_t) d, n)
--#define BZERO(s, n) bzero((caddr_t) s, n)
--#define BCMP(s, d, n) bcmp((caddr_t) s, (caddr_t) d, n)
- #define STATIC static
-
-+/*
-+ * The kernel doesn't have memcpy() or memcmp(), but gcc will inline them
-+ */
-+#ifdef KERNEL
-+extern int memcmp(const void *, const void *, size_t);
-+#endif
-+#define BCOPY(s, d, n) memcpy((caddr_t) (d), (caddr_t) (s), n)
-+#define BCMP(s, d, n) memcmp((caddr_t) (d), (caddr_t) (s), n)
-+#define BZERO(s, n) bzero((caddr_t) (s), n)
-
- #define ALIGNED(x) (((unsigned int)(x)&(skip_alignment - 1)) == 0)
-
-@@ -182,7 +202,11 @@
- /*
- * 4.x timing defines
- */
-+#if __FreeBSD__ >= 3
-+#define SKIP_ES_CURRENTTIME ((long)time_second)
-+#else
- #define SKIP_ES_CURRENTTIME (time.tv_sec)
-+#endif
- #define SKIP_ES_DELTATIME(then) (SKIP_ES_CURRENTTIME - then)
-
- /*
-@@ -205,26 +229,21 @@
- }
-
- /*
-+ * Whether to use old or new timeout()/untimeout() interface
-+ */
-+#if __FreeBSD_version >= 300001
-+#define NEW_TIMEOUT_INTERFACE
-+#endif
-+
-+/*
- * ANSI prototypes for system routines
- */
-+#if __FreeBSD_version < 300000
- extern int splimp();
- extern int splnet();
--extern void splx(int);
--extern void m_freem(struct mbuf *);
--extern void panic(const char *, ...);
--extern int tsleep(void *, int, char *, int);
--extern void wakeup(void *);
--extern int uiomove(caddr_t, int, struct uio *);
--extern int copyin(void *, void *, u_int );
--extern int copyout(void *, void *, u_int);
--extern int mclget(struct mbuf *);
--extern int m_cpytoc(struct mbuf *, int, int, caddr_t);
--
--extern void log(int, const char *, ...);
--
--extern char *strncpy(char *, const char *, size_t);
-+extern void splx(int s);
-+#endif
-
--extern void printf(const char *, ...);
- #else /* KERNEL */
-
- /*
-@@ -251,37 +270,12 @@
- #endif
- #define STATIC
-
--/*
-- * ANSI prototypes for C library routines and syscalls
-- */
--extern int gethostname(char *, int);
--extern int fprintf(FILE *, const char *, ...);
--extern int fflush(FILE *);
--extern int fgetc(FILE *);
--extern int fseek(FILE *, long, int);
--extern size_t fread(void *, size_t, size_t, FILE *);
--extern int fclose(FILE *);
--extern int socket(int, int, int);
--extern int ioctl(int, int, ...);
--extern int pclose(FILE *);
--/*extern int getrlimit(int, struct rlimit *); */
--extern void perror(const char *);
--extern time_t time(time_t *);
--extern int getopt(int, char * const *, const char *);
--extern int sscanf(const char *, const char *, ...);
--
- #endif /* KERNEL */
-
--/* XXX Bad IPPROTO_ENCAP define ? */
--#ifdef IPPROTO_ENCAP
--#undef IPPROTO_ENCAP
--#endif
--#define IPPROTO_ENCAP 4
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/Makefile work.new/skip/freebsd/Makefile
+--- skipsrc-1.0.orig/skip/freebsd/Makefile Fri Oct 25 13:12:41 1996
++++ work.new/skip/freebsd/Makefile Tue Mar 9 19:07:45 1999
+@@ -1,105 +1,3 @@
+-# SKIP Source Code License Statement:
+-# ------------------------------------------------------------------
+-# Copyright
+-# Sun Microsystems, Inc.
+-#
+-#
+-# Copyright (C) 1994, 1995, 1996 Sun Microsystems, Inc. All Rights
+-# Reserved.
+-#
+-# Permission is hereby granted, free of charge, to any person
+-# obtaining a copy of this software and associated documentation
+-# files (the "Software"), to deal in the Software without
+-# restriction, including without limitation the rights to use,
+-# copy, modify, merge, publish, distribute, sublicense, and/or sell
+-# copies of the Software or derivatives of the Software, and to
+-# permit persons to whom the Software or its derivatives is furnished
+-# to do so, subject to the following conditions:
+-#
+-# The above copyright notice and this permission notice shall be
+-# included in all copies or substantial portions of the Software.
+-#
+-# The Software must not be transferred to persons who are not US
+-# citizens or permanent residents of the US or exported outside
+-# the US (except Canada) in any form (including by electronic
+-# transmission) without prior written approval from the US
+-# Government. Non-compliance with these restrictions constitutes
+-# a violation of the U.S. Export Control Laws.
+-#
+-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-# NONINFRINGEMENT. IN NO EVENT SHALL SUN MICROSYSTEMS, INC., BE LIABLE
+-# FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+-# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+-# CONNECTION WITH THE SOFTWARE OR DERIVATES OF THIS SOFTWARE OR
+-# THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-#
+-# Except as contained in this notice, the name of Sun Microsystems, Inc.
+-# shall not be used in advertising or otherwise to promote
+-# the sale, use or other dealings in this Software or its derivatives
+-# without prior written authorization from Sun Microsystems, Inc.
+-#pragma ident "@(#)Makefile 1.20 96/02/05 Sun Microsystems"
++all depend install clean:
++ MAKEFLAGS= MFLAGS= MAKELEVEL= /usr/bin/make -f Makefile.bmake $@
+
+-include ../../Makefile.defs
-
- /* SKIP specific */
-
--#define SKIP_DIR "/etc/skip/"
--#define SKIP_BIN "/usr/skip/bin"
-+#define SKIP_DIR "@@PREFIX@@/etc/skip/"
-+#define SKIP_BIN "@@PREFIX@@/bin"
- #define KEYMGR "/dev/skip_key"
-
- /*
-@@ -306,12 +300,6 @@
- /* General purpose */
-
- typedef unsigned char byte;
+-CPPOPTS = -DINET $(K_FLAGS) -D$(K_ARCH) -D__$(K_ARCH)__ \
+- -I$(COMM_INC) -I.
+-COPTS = ${CPPOPTS} -c
+-CFLAGS = ${COPTS} $(K_DEBUG)
-
--#if 0
--extern void bcopy(void *, void *, int);
--extern void bzero(void *, int);
--extern int bcmp(void *, void *, int);
--#endif
-
- #define SKIP_IFCMP(if1, if2) strcmp(if1, if2)
-
+-CFILES = skip_wrapper.c skip_es.c
+-
+-
+-ES_OBJS = $(CFILES:%.c=$(K_DIR)/%.o)
+-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 = $(ES_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
+-
+-all: $(K_DIR) $(K_DIR)/skip.o
+-
+-$(K_DIR)/skip_wrapper.o: skip_wrapper.c
+- $(CC) $(CFLAGS) -o $@ $<
+-
+-$(K_DIR)/skip_es.o: skip_es.c
+- $(CC) $(CFLAGS) -o $@ $<
+-
+-
+-$(K_DIR):
+- @[ -d $(K_DIR) ] || mkdir -p $(K_DIR)
+-
+-$(K_DIR)/skip.o: $(OBJS)
+- $(LD) -r -o $(K_DIR)/skip.o $(OBJS)
+- @ /usr/bin/modstat
+-
+-clean:
+- @$(RM) -r $(K_DIR) *.pp *.L
+- @-$(SCCSCLEAN)
+-
+-cleanall:
+- @$(RM) -rf *bin.*
+- @-$(SCCSCLEAN)
+-
diff --git a/security/skip/files/patch-bh b/security/skip/files/patch-bh
index b528ca23c257..4ef3dc458d4f 100644
--- a/security/skip/files/patch-bh
+++ b/security/skip/files/patch-bh
@@ -1,89 +1,47 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_wrapper.c skipsrc-1.0/skip/freebsd/skip_wrapper.c
---- skipsrc-1.0.orig/skip/freebsd/skip_wrapper.c Fri Oct 25 13:12:43 1996
-+++ skipsrc-1.0/skip/freebsd/skip_wrapper.c Mon Dec 22 12:48:43 1997
-@@ -66,18 +66,7 @@
- #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=
-+struct cfdriver skipcd =
- { NULL, "skip", NULL, NULL, DV_DULL, 0 };
-
- struct cdevsw skipdevsw = {
-@@ -85,36 +74,55 @@
- NULL, NULL, NULL, skip_ifselect, NULL, NULL
- };
-
--MOD_DEV("skipmod", LM_DT_CHAR, -1, (void *)&skipdevsw)
-+/* The following is necessary to work around a bug in versions
-+ of FreeBSD's lkm.h up to and including 2.2.5 */
+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 Tue Mar 9 20:44:40 1999
+@@ -0,0 +1,43 @@
+
-+#if __FreeBSD__ >= 2
-+#include <osreldate.h>
-+#if __FreeBSD_version <= 225000
-+#define skip_module _module
-+#endif
-+#endif
++.include "../../Makefile.defs"
+
-+MOD_DEV(skip, LM_DT_CHAR, -1, (void *)&skipdevsw);
-
- extern int skip_init(), skip_uninit();
-
- /*ARGSUSED*/
--int
--skipmod_load(struct lkm_table *lkmtp, int cmd)
-+static int
-+skip_load(struct lkm_table *lkmtp, int cmd)
- {
--
- int rc;
++CPPOPTS = -DINET $(K_FLAGS) -D$(K_ARCH) -D__$(K_ARCH)__ \
++ -I$(COMM_INC) -I.
++COPTS = ${CPPOPTS} -c
++CFLAGS = ${COPTS} $(K_DEBUG)
+
- rc = skip_init();
- if (rc != 0) {
- return (rc);
- }
-- uprintf("skip: driver loaded\n");
-+ log(LOG_INFO, "skip: driver loaded\n");
- return (0);
- }
-
--skipmod_unload(struct lkm_table *lkmtp, int cmd)
-+static int
-+skip_unload(struct lkm_table *lkmtp, int cmd)
- {
--
- int rc;
++CFILES = skip_wrapper.c skip_es.c
+
- rc = skip_uninit();
- if (rc == 0) {
-- uprintf("skip: driver unloaded\n");
-+ log(LOG_INFO, "skip: driver unloaded\n");
- }
- return (rc);
- }
-
--xxxinit(struct lkm_table *lkmtp, int cmd, int ver)
-+static int
-+skip_stat(struct lkm_table *lkmtp, int cmd)
-+{
-+ return(ENOSYS);
-+}
++ES_OBJS = skip_wrapper.o skip_es.o
+
-+int
-+skip(struct lkm_table *lkmtp, int cmd, int ver)
- {
-- DISPATCH(lkmtp, cmd, ver, skipmod_load, skipmod_unload, nosys);
-+ MOD_DISPATCH(skip, lkmtp, cmd, ver, skip_load, skip_unload, skip_stat);
- }
++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 = $(ES_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>
diff --git a/security/skip/files/patch-bi b/security/skip/files/patch-bi
index 47e937b11173..8cb93c923c5a 100644
--- a/security/skip/files/patch-bi
+++ b/security/skip/files/patch-bi
@@ -1,12 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/include/skip_conf.h skipsrc-1.0/skip/include/skip_conf.h
---- skipsrc-1.0.orig/skip/include/skip_conf.h Fri Oct 25 13:12:44 1996
-+++ skipsrc-1.0/skip/include/skip_conf.h Wed Nov 26 20:13:42 1997
-@@ -58,7 +58,7 @@
- #define SKIP_CERTSBASE SKIP_DIR"certdb"
- #define SKIP_SECRET_CACHE SKIP_DIR"secret_cache"
- #define SKIP_RAW_FILE SKIP_DIR"raw_keys"
--#define SKIP_PID SKIP_DIR"skipd.pid"
-+#define SKIP_PID "/var/run/skipd.pid"
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/Makefile.defs work.new/skip/freebsd/Makefile.defs
+--- skipsrc-1.0.orig/skip/freebsd/Makefile.defs Fri Oct 25 13:12:42 1996
++++ work.new/skip/freebsd/Makefile.defs Mon Mar 8 22:25:13 1999
+@@ -93,7 +93,7 @@
- /*
- * Key manager Crypt algorithms supported
+ # Kernel compilation flags
+ #
+-K_FLAGS_FREEBSD_gnu = -DKERNEL -DFREEBSD
++K_FLAGS_FREEBSD_gnu = -DKERNEL -DKLD_MODULE
+
+ # OS Libraries
+ #
diff --git a/security/skip/files/patch-bj b/security/skip/files/patch-bj
index fb1335eb21f3..e1649f6d01da 100644
--- a/security/skip/files/patch-bj
+++ b/security/skip/files/patch-bj
@@ -1,24 +1,146 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/cdp_queue.C skipsrc-1.0/skip/keymgrd/cdp_queue.C
---- skipsrc-1.0.orig/skip/keymgrd/cdp_queue.C Fri Oct 25 13:12:47 1996
-+++ skipsrc-1.0/skip/keymgrd/cdp_queue.C Tue Dec 23 13:37:22 1997
-@@ -91,17 +91,17 @@
-
- switch (kind) {
- case RESOLVER_PING:
-- skip_log(SKIP_NOTICE, "add_cdp_resolver(@) (bilateral)");
-+ skip_log(SKIP_INFO, "add_cdp_resolver(@) (bilateral)");
- break;
-
- case RESOLVER_TUNNEL:
-- skip_log(SKIP_NOTICE, "add_cdp_resolver(=) (tunnel)");
-+ skip_log(SKIP_INFO, "add_cdp_resolver(=) (tunnel)");
- break;
-
- case RESOLVER_HOST:
- if (parse_ip_address(&r.server, arg))
- return;
-- skip_log(SKIP_NOTICE, "add_cdp_resolver(%s)", arg);
-+ skip_log(SKIP_INFO, "add_cdp_resolver(%s)", arg);
- break;
-
- default:
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/rc work.new/skip/freebsd/rc
+--- skipsrc-1.0.orig/skip/freebsd/rc Fri Oct 25 13:13:19 1996
++++ work.new/skip/freebsd/rc Wed Mar 10 09:24:17 1999
+@@ -44,22 +44,30 @@
+
+ #pragma ident "@(#)rc 1.5 96/10/08 Sun Microsystems"
+ #
+-PATH=/bin:/usr/bin:/sbin:/usr/ucb:/usr/etc
+-SKIP_PATH=${SKIP_PATH-/usr/skip}
+-SKIPD=/usr/skip/bin/skipd
+-SKIP_HOST=/usr/skip/bin/skiphost
+-SKIP_VAR_CMD=/usr/skip/bin/skipvar
+-SKIP_SECURE_HOSTS=/etc/skip/hosts
+-SKIP_ETC=/etc/skip
+-SKIP_VAR=/var/skip
++
++PATH=/bin:/usr/bin:/sbin:/usr/sbin
++PREFIX=@@PREFIX@@
++
++SKIP_BIN=${PREFIX}/bin
++SKIP_ETC=${PREFIX}/etc/skip
++SKIP_LKM=${PREFIX}/modules
++
++SKIPD=${SKIP_BIN}/skipd
++SKIP_HOST=${SKIP_BIN}/skiphost
++SKIP_MKDEV=${SKIP_ETC}/skip.mkdev
++SKIP_SECURE_HOSTS=${SKIP_ETC}/hosts
++
++SKIP_VAR=/var/tmp
+ VAR_SIZE=830
+-SKIP_REQ_FILES="$SKIP_PATH/drv/skip.o $SKIP_ETC/skip.mkdev"
+-PSEUDO_DRVS="skip"
++
++SKIP_MOD="skip.ko"
++SKIP_REQ_FILES="${SKIP_LKM}/${SKIP_MOD} ${SKIP_ETC}/skip.mkdev"
+
+ verify_owner()
+ {
+ me=`whoami`
+ if [ $me != "root" ]; then
++ echo ""
+ echo "skip: this script must be run as root ... fatal error"
+ exit 1
+ fi
+@@ -68,6 +76,7 @@
+ pre_checks() {
+ for FILE in $SKIP_REQ_FILES; do
+ if [ ! -f $FILE ]; then
++ echo ""
+ echo "skip: installation problem detected"
+ echo "skip: $FILE not found"
+ echo "skip: please refer to installation guide"
+@@ -76,6 +85,7 @@
+ done
+
+ if [ ! -w $SKIP_VAR ]; then
++ echo ""
+ echo "skip: can not write to $SKIP_VAR"
+ exit 1
+ fi
+@@ -85,11 +95,12 @@
+
+ sync
+
+- DISK_AVAIL=`df $SKIP_VAR | awk 'NR==2 {x=$4}
++ DISK_AVAIL=`df -k $SKIP_VAR | awk 'NR==2 {x=$4}
+ NR==3 {x=$3}
+ END {print x}'`
+
+ if [ $DISK_AVAIL -lt $VAR_SIZE ]; then
++ echo ""
+ echo "skip: not enough space available in $SKIP_VAR"
+ echo "skip: $VAR_SIZE kbytes will be required to run the product"
+ exit 1
+@@ -98,45 +109,47 @@
+
+ load_driver()
+ {
+- modstat > $SKIP_VAR/modules
+-
+- # load pseudo-drivers
+- for driver in $PSEUDO_DRVS; do
++ kldstat | awk '{ print $5 }' | grep ${SKIP_MOD} > /dev/null 2>&1
+
+- awk '{ print $8 }' $SKIP_VAR/modules | grep $driver > /dev/null 2>&1
++ if [ $? -ne 0 ]; then
+
+- if [ $? -eq 0 ]; then
+- echo "skip: driver already loaded"
+- else
+- echo "skip: loading driver"
+- modload -o $SKIP_VAR/$driver \
+- -p $SKIP_ETC/$driver.mkdev \
+- $SKIP_PATH/drv/$driver.o> /dev/null
+-
+-
+- if [ $? -ne 0 ]; then
+- echo "skip: failed to load driver"
+- echo "skip: perhaps too many drivers are loaded?"
+- exit 1
+- fi
++ # Load KLD
++ kldload ${SKIP_LKM}/${SKIP_MOD} > /dev/null
++ if [ $? -ne 0 ]; then
++ echo ""
++ echo "skip: failed to load driver"
++ exit 1
++ fi
+
++ # Absurd hack to find out device major number
++ DEV_MAJOR=`/sbin/dmesg | grep 'skip: device major=' | tail -1 | sed 's/^.*=\([0-9]\{1,\}\),.*$/\1/g'`
++ if [ "${DEV_MAJOR}" = "" ]; then
++ echo ""
++ echo "skip: can't determine skip device major number"
++ exit 1
+ fi
+- done
++
++ # Create device nodes
++ ${SKIP_MKDEV} ${DEV_MAJOR}
++ fi
++
+ }
+
+ start_daemons() {
+ if [ -x $SKIPD ]; then
+- echo -n "starting skip key manager daemon"
+- $SKIPD > /var/log/skipd.log &
+- echo "."
++ $SKIPD
+ fi
+
+ if [ -x $SKIP_SECURE_HOSTS -a -x $SKIP_HOST ]; then
+- $SKIP_SECURE_HOSTS >> /var/log/skipd.log 2>&1 &
++ $SKIP_SECURE_HOSTS >> /var/log/skiphost.log 2>&1 &
+ fi
+ }
+
+ # main
++
++# keep console output pretty
++echo -n " skip"
++
+ verify_owner
+ pre_checks
+ load_driver
diff --git a/security/skip/files/patch-bk b/security/skip/files/patch-bk
index 936c4991a483..0fdef455e9e5 100644
--- a/security/skip/files/patch-bk
+++ b/security/skip/files/patch-bk
@@ -1,24 +1,28 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_init.C skipsrc-1.0/skip/keymgrd/skip_init.C
---- skipsrc-1.0.orig/skip/keymgrd/skip_init.C Fri Oct 25 13:12:49 1996
-+++ skipsrc-1.0/skip/keymgrd/skip_init.C Tue Dec 23 13:35:05 1997
-@@ -81,7 +81,7 @@
- return;
- }
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip.mkdev work.new/skip/freebsd/skip.mkdev
+--- skipsrc-1.0.orig/skip/freebsd/skip.mkdev Fri Oct 25 13:13:20 1996
++++ work.new/skip/freebsd/skip.mkdev Mon Mar 8 22:02:26 1999
+@@ -48,19 +48,19 @@
+ SKIP_KEYMGRD_MINOR=0
+ SKIP_ACL_NODE=/dev/skip
+ SKIP_MAX_OPENS=16
+-PATH=/bin:/usr/ucb:/sbin:
++PATH=/bin:/usr/bin:/sbin:/usr/sbin
-- skip_log(SKIP_NOTICE, "local name nsid=%d mkid=%s",
-+ skip_log(SKIP_INFO, "local name nsid=%d mkid=%s",
- nsid, keyid.get_info_str());
- }
+-if [ $# != 3 ]; then
+- exit
++if [ $# != 1 ]; then
++ exit 1
+ fi
-@@ -135,9 +135,9 @@
- {
- // Let the random number generator kick off its entropy gathering
-
-- skip_log(SKIP_NOTICE, "Initializing random number generator...");
-+ skip_log(SKIP_INFO, "Initializing random number generator...");
- Bstream dummy = get_random_bytes(1);
-- skip_log(SKIP_NOTICE, "done");
-+ skip_log(SKIP_INFO, "done");
- }
-
- auth.load(SKIP_DIR);
+ echo -n skip: making skip pseudo-devices
+ rm -f $SKIP_KEYMGR_NODE
+-mknod $SKIP_KEYMGR_NODE c $3 $SKIP_KEYMGRD_MINOR
++mknod $SKIP_KEYMGR_NODE c $1 $SKIP_KEYMGRD_MINOR
+ i=1
+ while [ $i -ne $SKIP_MAX_OPENS ]; do
+ rm -f $SKIP_ACL_NODE$i
+- mknod $SKIP_ACL_NODE$i c $3 $i
++ mknod $SKIP_ACL_NODE$i c $1 $i
+ i=`expr $i + 1`
+ echo -n "."
+ done
diff --git a/security/skip/files/patch-bl b/security/skip/files/patch-bl
index 65b4f91396e4..36c0024ad23c 100644
--- a/security/skip/files/patch-bl
+++ b/security/skip/files/patch-bl
@@ -1,11 +1,293 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_keymgrsubr.C skipsrc-1.0/skip/keymgrd/skip_keymgrsubr.C
---- skipsrc-1.0.orig/skip/keymgrd/skip_keymgrsubr.C Fri Oct 25 13:12:49 1996
-+++ skipsrc-1.0/skip/keymgrd/skip_keymgrsubr.C Tue Nov 25 19:30:19 1997
-@@ -59,7 +59,6 @@
- #include "SkipCert.h"
- #include "X509skip.h"
- #include "HashCert.h"
--#include "malloc.h"
- #include "utils.h"
- #include "Sig.h"
- #include "skip_log.h"
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_es.c work.new/skip/freebsd/skip_es.c
+--- skipsrc-1.0.orig/skip/freebsd/skip_es.c Fri Oct 25 13:12:42 1996
++++ work.new/skip/freebsd/skip_es.c Tue Mar 9 20:40:23 1999
+@@ -81,6 +81,11 @@
+ static unsigned short skip_pktid;
+ static skip_softc_t skip_softc[SKIP_MAX_OPENS];
+
++static struct callout_handle
++ skip_timeout_handle = CALLOUT_HANDLE_INITIALIZER(&skip_timeout_handle);
++
++MALLOC_DEFINE(M_SKIP, "skip", "SKIP control structures and buffers");
++
+ /*
+ * statistics
+ */
+@@ -116,11 +121,13 @@
+ static int skip_ifoutput(struct ifnet *, struct mbuf *,
+ struct sockaddr *, struct rtentry *rtp);
+ static int skip_ifinput(struct mbuf *, int);
+-static void skip_inittimers();
+-static void skip_uninittimers();
+-static void skip_timer();
++static void skip_inittimers(void);
++static void skip_uninittimers(void);
++static void skip_timer(void *);
+ static int skip_add_interface(char *);
+ static int skip_del_interface(char *);
++static void skip_ifwakeup(skip_softc_t *);
++static int skip_bufextend(struct mbuf *, int);
+
+ static void skip_encrypt_done(void *, struct mbuf *, struct mbuf *,
+ void *, skip_arg_t *);
+@@ -136,14 +143,14 @@
+ /*
+ * From Crypt/MAC system...
+ */
+-extern int skip_es_bypass_init();
+-extern void skip_es_bypass_uninit();
+-extern void skip_key_initstore();
+-extern void skip_key_uninitstore();
+-extern void skip_key_initcryptors();
+-extern void skip_key_uninitcryptors();
+-extern void skip_mac_init();
+-extern void skip_mac_uninit();
++extern int skip_es_bypass_init(void);
++extern void skip_es_bypass_uninit(void);
++extern void skip_key_initstore(void);
++extern void skip_key_uninitstore(void);
++extern void skip_key_initcryptors(void);
++extern void skip_key_uninitcryptors(void);
++extern void skip_mac_init(void);
++extern void skip_mac_uninit(void);
+ extern int skip_fmt_kmgr(union skip_messages *, skip_keycb_t *);
+
+ extern struct cdevsw skipdevsw;
+@@ -157,7 +164,7 @@
+ * Returns: 0 on success, errno otherwise.
+ */
+ int
+-skip_init()
++skip_init(void)
+ {
+ register int s, rc;
+ register struct protosw *pr;
+@@ -252,7 +259,10 @@
+ for (pr = inetdomain.dom_protosw;
+ pr < inetdomain.dom_protoswNPROTOSW; pr++) {
+
+- pr->pr_input = skip_ifinput;
++ if (pr->pr_protocol == IPPROTO_DIVERT)
++ continue;
++ pr->pr_input =
++ (void (*)(struct mbuf *, int)) skip_ifinput;
+ }
+ splx(s);
+ }
+@@ -266,7 +276,7 @@
+ * Returns: 0 on success, errno otherwise.
+ */
+ int
+-skip_uninit()
++skip_uninit(void)
+ {
+ register int s;
+ if (skip_busy || skip_keys_stats.skip_encrypt_keys_active
+@@ -422,27 +432,30 @@
+ * Returns: 0 if no data available, 1 otherwise
+ */
+ int
+-skip_ifselect(dev, rw, p)
++skip_ifpoll(dev, events, p)
+ dev_t dev;
+- int rw;
++ int events;
+ struct proc *p;
+ {
+ register skip_softc_t *sp = &skip_softc[minor(dev)];
+ register int s;
++ int revents = 0;
+
+- if (rw == FWRITE) {
+- return (1);
+- }
++ /* Check readable */
+ s = splimp();
+- if (sp->q.ifq_len > 0) {
+- splx(s);
+- return (1);
++ if (events & (POLLIN | POLLRDNORM)) {
++ if (sp->q.ifq_len > 0)
++ revents |= (events & (POLLIN | POLLRDNORM));
++ else
++ selrecord(p, &sp->sp_si);
+ }
+
+- selrecord(p, &sp->sp_si);
++ /* Always writable */
++ if (events & (POLLOUT | POLLWRNORM))
++ revents |= (events & (POLLOUT | POLLWRNORM));
+
+ splx(s);
+- return(0);
++ return(revents);
+ }
+
+ /* skip_ifread()
+@@ -786,9 +799,9 @@
+ * Returns: None
+ */
+ static void
+-skip_inittimers()
++skip_inittimers(void)
+ {
+- timeout(skip_timer, NULL, skip_key_tick * hz);
++ skip_timeout_handle = timeout(skip_timer, NULL, skip_key_tick * hz);
+ }
+
+ /* skip_uninittimers()
+@@ -798,9 +811,10 @@
+ * Returns: None
+ */
+ static void
+-skip_uninittimers()
++skip_uninittimers(void)
+ {
+- untimeout(skip_timer, NULL);
++ untimeout(skip_timer, NULL, skip_timeout_handle);
++ callout_handle_init(&skip_timeout_handle);
+ }
+
+ /* skip_timer()
+@@ -812,14 +826,13 @@
+ */
+ /*ARGSUSED*/
+ static void
+-skip_timer(arg)
+- caddr_t arg;
++skip_timer(void *arg)
+ {
+ /*
+ * run through the key store
+ */
+ skip_key_iterate(skip_key_check, NULL);
+- timeout(skip_timer, NULL, skip_key_tick * hz);
++ skip_timeout_handle = timeout(skip_timer, NULL, skip_key_tick * hz);
+ }
+
+ #ifdef notdef
+@@ -846,6 +859,7 @@
+ }
+ #endif
+
++#ifdef notdef
+ void
+ skip_dump_buf(char *what, unsigned char *p, int len)
+ {
+@@ -857,7 +871,9 @@
+ }
+ printf("].\n");
+ }
++#endif
+
++#ifdef notdef
+ void
+ skip_dump_ip(struct ip *ip)
+ {
+@@ -878,6 +894,7 @@
+ ip->ip_ttl, ip->ip_p, ntohs(ip->ip_sum));
+
+ }
++#endif
+
+ /*
+ * SKIP Ioctl and Interface management routines
+@@ -1107,7 +1124,7 @@
+ int
+ skip_ifioctl(dev, cmd, data, fflag, p)
+ dev_t dev;
+- int cmd;
++ u_long cmd;
+ caddr_t data;
+ int fflag;
+ struct proc *p;
+@@ -1390,7 +1407,6 @@
+ skip_es_t *skip_if;
+ int iphlen, hdrlen = 0;
+ struct mbuf *decryptbuf = NULL;
+- extern u_char ip_protox[];
+ skip_param_t params;
+ skip_hdr_t skip_hdr;
+ skip_es_hash_t *entry, **acl;
+@@ -1718,7 +1734,7 @@
+ */
+ decryptbuf->m_data += iphlen;
+
+- SKIP_DEBUG2("skip_ifinput: decryptbuf m_len=%d m_data=%d\n",
++ SKIP_DEBUG2("skip_ifinput: decryptbuf m_len=%d m_data=%p\n",
+ decryptbuf->m_len, decryptbuf->m_data);
+
+ }
+@@ -1745,7 +1761,7 @@
+ ip->ip_id = ntohs(ip->ip_id);
+ ip->ip_off = ntohs(ip->ip_off);
+ pass:
+- m->m_flags &= ~ M_EOR;
++ m->m_flags &= ~ M_PROTO1;
+ (*inetsw_default[ip_protox[ip->ip_p]].pr_input)(m, hlen);
+ return (0);
+ }
+@@ -1910,6 +1926,13 @@
+ */
+ IPADDRCOPY(&params.tunnel_addr, &newip->ip_dst);
+
++ /*
++ * insert different source address if specified
++ */
++
++ if(params.source != 0)
++ (&newip->ip_src)->s_addr = params.source;
++
+ encryptbuf->m_len += sizeof (struct ip);
+
+ /*
+@@ -2005,7 +2028,7 @@
+ if (params.kp_alg) {
+ newip->ip_p = SKIP_NEXT_ESP;
+ } else {
+- newip->ip_p = IPPROTO_ENCAP;
++ newip->ip_p = IPPROTO_IPIP;
+ }
+ }
+ skip_if->stats.skip_if_raw_out++;
+@@ -2028,6 +2051,13 @@
+ * insert tunnel address as destination
+ */
+ IPADDRCOPY(&params.tunnel_addr, &newip->ip_dst);
++
++ /*
++ * insert different source address if specified
++ */
++
++ if(params.source != 0)
++ (&newip->ip_src)->s_addr = params.source;
+ }
+
+ if (params.s_nsid == 0) {
+@@ -2097,7 +2127,7 @@
+ register skip_param_t *params = &res->params;
+ register struct ip *ip = mtod(original, struct ip *);
+ int rc, s, iphlen;
+- struct mbuf *outbuf, *new_hdr;
++ struct mbuf *outbuf;
+
+ SKIP_PRINT("skip_decrypt_done", params);
+
+@@ -2125,7 +2155,7 @@
+ */
+ outbuf = (res->modes & SKIP_CRYPT_ON) ? m : original;
+
+- if (res->proto != IPPROTO_ENCAP) {
++ if (res->proto != IPPROTO_IPIP) {
+ /*
+ * transport mode, need to copy original IP header
+ */
+@@ -2195,7 +2225,7 @@
+ /*
+ * tag the start of the header buffer so SKIP can recognise it
+ */
+- outbuf->m_flags |= M_EOR | M_PKTHDR;
++ outbuf->m_flags |= M_PROTO1 | M_PKTHDR;
+
+ s = splimp();
+ if (IF_QFULL(&ipintrq)) {
diff --git a/security/skip/files/patch-bm b/security/skip/files/patch-bm
index 5294d2ababed..7861e848f13f 100644
--- a/security/skip/files/patch-bm
+++ b/security/skip/files/patch-bm
@@ -1,39 +1,43 @@
-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);
- }
+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
+ */
+-#define SKIP_DECRYPTED(m) ((m)->m_flags & M_EOR)
++#define SKIP_DECRYPTED(m) ((m)->m_flags & M_PROTO1)
--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);
-
-- 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);
- }
+ /*
+ * 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 *);
+
+ /*
+ * exported functions
diff --git a/security/skip/files/patch-bn b/security/skip/files/patch-bn
index f69beab98bfa..dfa0aebf8df7 100644
--- a/security/skip/files/patch-bn
+++ b/security/skip/files/patch-bn
@@ -1,12 +1,193 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_log.h skipsrc-1.0/skip/keymgrd/skip_log.h
---- skipsrc-1.0.orig/skip/keymgrd/skip_log.h Fri Oct 25 13:12:51 1996
-+++ skipsrc-1.0/skip/keymgrd/skip_log.h Tue Dec 23 13:33:48 1997
-@@ -45,5 +45,6 @@
- #pragma ident "@(#)skip_log.h 1.3 95/11/17"
-
- void skip_log(int,char*,...);
--#define SKIP_ERROR 1
--#define SKIP_NOTICE 2
-+#define SKIP_ERROR LOG_ERR
-+#define SKIP_NOTICE LOG_NOTICE
-+#define SKIP_INFO LOG_INFO
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_os.h work.new/skip/freebsd/skip_os.h
+--- skipsrc-1.0.orig/skip/freebsd/skip_os.h Fri Oct 25 13:12:43 1996
++++ work.new/skip/freebsd/skip_os.h Tue Mar 9 19:16:28 1999
+@@ -54,7 +54,6 @@
+ #ifndef KERNEL
+ #include <stdio.h>
+ #include <string.h>
+-#include <strings.h>
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+@@ -69,6 +68,12 @@
+ #include <dirent.h>
+ #endif
+
++#include <osreldate.h>
++
++#ifdef KERNEL
++#include <sys/cdefs.h>
++#endif
++
+ #include <sys/types.h>
+ #include <sys/errno.h>
+ #include <sys/time.h>
+@@ -77,16 +82,19 @@
+ #include <sys/malloc.h>
+ #include <sys/stat.h>
+ #include <sys/socket.h>
++#include <sys/socketvar.h>
+ #include <sys/syslog.h>
+ #include <sys/param.h>
+ #include <sys/uio.h>
+ #include <sys/file.h>
+ #include <sys/sockio.h>
+ #include <sys/wait.h>
++#include <sys/fcntl.h>
+
+ #ifndef __cplusplus
+ #include <machine/cpu.h>
+ #include <net/if.h>
++#include <net/if_var.h>
+ #include <netinet/in_systm.h>
+ #endif
+ #include <netinet/in.h>
+@@ -94,8 +102,9 @@
+ #include <netinet/ip.h>
+ #include <netinet/udp.h>
+ #include <netinet/in_var.h>
+-#include <arpa/inet.h>
++#include <netinet/ip_var.h>
+ #endif
++#include <arpa/inet.h>
+
+ /*
+ * Basic required types and constants
+@@ -116,6 +125,7 @@
+ #include <sys/sysent.h>
+ #include <sys/exec.h>
+ #include <sys/lkm.h>
++#include <sys/sysproto.h>
+ #include <sys/protosw.h>
+ #include <net/route.h>
+ #include <sys/kernel.h>
+@@ -123,19 +133,34 @@
+ #include <net/netisr.h>
+ #include <sys/proc.h>
+ #include <sys/device.h>
++#include <sys/libkern.h>
++#include <sys/module.h>
++#include <sys/malloc.h>
++#include <sys/poll.h>
+
+ #define PANIC(s) panic(s)
+
+ /*
++ * SKIP malloc type
++ */
++MALLOC_DECLARE(M_SKIP);
++
++/*
+ * 4.x memory management macros
+ */
+-#define SYSMEM_ALLOC(size) malloc((u_long)size, M_PCB, M_NOWAIT)
+-#define SYSMEM_FREE(m, n) free(m, M_PCB)
+-#define BCOPY(s, d, n) bcopy((caddr_t) s, (caddr_t) d, n)
+-#define BZERO(s, n) bzero((caddr_t) s, n)
+-#define BCMP(s, d, n) bcmp((caddr_t) s, (caddr_t) d, n)
++#define SYSMEM_ALLOC(size) malloc((u_long)size, M_SKIP, M_NOWAIT)
++#define SYSMEM_FREE(m, n) free(m, M_SKIP)
+ #define STATIC static
+
++/*
++ * The kernel doesn't have memcpy() or memcmp(), but gcc will inline them
++ */
++#ifdef KERNEL
++extern int memcmp(const void *, const void *, size_t);
++#endif
++#define BCOPY(s, d, n) memcpy((caddr_t) (d), (caddr_t) (s), n)
++#define BCMP(s, d, n) memcmp((caddr_t) (d), (caddr_t) (s), n)
++#define BZERO(s, n) bzero((caddr_t) (s), n)
+
+ #define ALIGNED(x) (((unsigned int)(x)&(skip_alignment - 1)) == 0)
+
+@@ -182,7 +207,7 @@
+ /*
+ * 4.x timing defines
+ */
+-#define SKIP_ES_CURRENTTIME (time.tv_sec)
++#define SKIP_ES_CURRENTTIME ((long)time_second)
+ #define SKIP_ES_DELTATIME(then) (SKIP_ES_CURRENTTIME - then)
+
+ /*
+@@ -204,27 +229,6 @@
+ len = IPHLEN(ip); \
+ }
+
+-/*
+- * ANSI prototypes for system routines
+- */
+-extern int splimp();
+-extern int splnet();
+-extern void splx(int);
+-extern void m_freem(struct mbuf *);
+-extern void panic(const char *, ...);
+-extern int tsleep(void *, int, char *, int);
+-extern void wakeup(void *);
+-extern int uiomove(caddr_t, int, struct uio *);
+-extern int copyin(void *, void *, u_int );
+-extern int copyout(void *, void *, u_int);
+-extern int mclget(struct mbuf *);
+-extern int m_cpytoc(struct mbuf *, int, int, caddr_t);
+-
+-extern void log(int, const char *, ...);
+-
+-extern char *strncpy(char *, const char *, size_t);
+-
+-extern void printf(const char *, ...);
+ #else /* KERNEL */
+
+ /*
+@@ -251,37 +255,12 @@
+ #endif
+ #define STATIC
+
+-/*
+- * ANSI prototypes for C library routines and syscalls
+- */
+-extern int gethostname(char *, int);
+-extern int fprintf(FILE *, const char *, ...);
+-extern int fflush(FILE *);
+-extern int fgetc(FILE *);
+-extern int fseek(FILE *, long, int);
+-extern size_t fread(void *, size_t, size_t, FILE *);
+-extern int fclose(FILE *);
+-extern int socket(int, int, int);
+-extern int ioctl(int, int, ...);
+-extern int pclose(FILE *);
+-/*extern int getrlimit(int, struct rlimit *); */
+-extern void perror(const char *);
+-extern time_t time(time_t *);
+-extern int getopt(int, char * const *, const char *);
+-extern int sscanf(const char *, const char *, ...);
+-
+ #endif /* KERNEL */
+
+-/* XXX Bad IPPROTO_ENCAP define ? */
+-#ifdef IPPROTO_ENCAP
+-#undef IPPROTO_ENCAP
+-#endif
+-#define IPPROTO_ENCAP 4
+-
+ /* SKIP specific */
+
+-#define SKIP_DIR "/etc/skip/"
+-#define SKIP_BIN "/usr/skip/bin"
++#define SKIP_DIR "@@PREFIX@@/etc/skip/"
++#define SKIP_BIN "@@PREFIX@@/bin"
+ #define KEYMGR "/dev/skip_key"
+
+ /*
+@@ -306,12 +285,6 @@
+ /* General purpose */
+
+ typedef unsigned char byte;
+-
+-#if 0
+-extern void bcopy(void *, void *, int);
+-extern void bzero(void *, int);
+-extern int bcmp(void *, void *, int);
+-#endif
+
+ #define SKIP_IFCMP(if1, if2) strcmp(if1, if2)
+
diff --git a/security/skip/files/patch-bo b/security/skip/files/patch-bo
index a102b4ca993e..f2f0a6ba48a0 100644
--- a/security/skip/files/patch-bo
+++ b/security/skip/files/patch-bo
@@ -1,21 +1,114 @@
-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);
-
+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);
++
diff --git a/security/skip/files/patch-bp b/security/skip/files/patch-bp
index 15a20691971f..a49079adfed1 100644
--- a/security/skip/files/patch-bp
+++ b/security/skip/files/patch-bp
@@ -1,12 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skipca.C skipsrc-1.0/skip/keymgrd/skipca.C
---- skipsrc-1.0.orig/skip/keymgrd/skipca.C Fri Oct 25 13:12:53 1996
-+++ skipsrc-1.0/skip/keymgrd/skipca.C Fri Dec 5 15:26:53 1997
-@@ -307,7 +307,7 @@
- }
- if (overwrite) {
- int ret;
-- sprintf(buf,"/usr/bin/rm -rf %s", CA_PATH);
-+ sprintf(buf,"/bin/rm -rf %s", CA_PATH);
- ret = system(buf);
- if (ret) {
- fprintf(stderr,"Unable to Clean old directory %s \n",
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/include/skip_conf.h work.new/skip/include/skip_conf.h
+--- skipsrc-1.0.orig/skip/include/skip_conf.h Fri Oct 25 13:12:44 1996
++++ work.new/skip/include/skip_conf.h Mon Mar 8 21:33:38 1999
+@@ -58,7 +58,7 @@
+ #define SKIP_CERTSBASE SKIP_DIR"certdb"
+ #define SKIP_SECRET_CACHE SKIP_DIR"secret_cache"
+ #define SKIP_RAW_FILE SKIP_DIR"raw_keys"
+-#define SKIP_PID SKIP_DIR"skipd.pid"
++#define SKIP_PID "/var/run/skipd.pid"
+
+ /*
+ * Key manager Crypt algorithms supported
diff --git a/security/skip/files/patch-bq b/security/skip/files/patch-bq
index 1b31054145b2..0703103c8e21 100644
--- a/security/skip/files/patch-bq
+++ b/security/skip/files/patch-bq
@@ -1,76 +1,42 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skipd.C skipsrc-1.0/skip/keymgrd/skipd.C
---- skipsrc-1.0.orig/skip/keymgrd/skipd.C Fri Oct 25 13:12:54 1996
-+++ skipsrc-1.0/skip/keymgrd/skipd.C Thu Dec 4 18:25:47 1997
-@@ -48,6 +48,7 @@
- * System includes
- */
- #include <skip_os.h>
-+#include <err.h>
-
- /*
- * SKIP includes
-@@ -84,8 +85,9 @@
- {
- int c;
- int errflag = 0;
-+ int noFork = 0;
-
-- while ((c = getopt(argc, argv, "vV?")) != EOF) {
-+ while ((c = getopt(argc, argv, "nvV?")) != EOF) {
- switch(c) {
- case 'v':
- verbose = 1;
-@@ -95,6 +97,9 @@
- verbose = 2;
- break;
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/include/skip_key.h work.new/skip/include/skip_key.h
+--- skipsrc-1.0.orig/skip/include/skip_key.h Fri Oct 25 13:12:44 1996
++++ work.new/skip/include/skip_key.h Tue Mar 9 20:24:01 1999
+@@ -209,24 +209,22 @@
+ void *, skip_arg_t *)
+ );
+ #endif
+-void skip_close();
++void skip_close(void *sd);
+ int skip_encrypt(void *, SKIP_BUF_T *, SKIP_BUF_T *,
+ skip_param_t *, void *);
+ int skip_decrypt(void *, SKIP_BUF_T *, SKIP_BUF_T *,
+ skip_hdr_t *hdr, int, void *);
+ int skip_key_check(skip_keycb_t *, void *);
+-void skip_key_iterate(int (*)(), void *);
++void skip_key_iterate(int (*)(skip_keycb_t *, void *), void *);
+ int skip_hdr_encode(skip_hdr_t *, unsigned char *);
+ int skip_iv_encode(skip_hdr_t *, unsigned char *);
+ void skip_hdr_init(skip_keycb_t *);
-+ case 'n':
-+ noFork = 1;
-+ break;
- case '?':
- default:
- errflag++;
-@@ -106,34 +111,18 @@
- exit(1);
- }
+-void skip_key_tellkm(enum skip_msgs, skip_keycb_t *);
+-void skip_key_fromkm(union skip_messages *, unsigned int);
+ void skip_update_encrypt_key(struct Encrypted_key_rsp *);
+ void skip_update_decrypt_key(struct Decrypted_key_rsp *);
-+ if (!noFork)
- {
-- extern FILE *skip_log_fp;
--
-- skip_log_fp = fopen("/var/log/skipd.log", "w+");
-+ extern int skip_log_syslog;
-
-- // if open fails, skip_log will default to stdout/stderr
-+ /* output to syslog */
-+ openlog("skipd", 0, LOG_DAEMON);
-+ skip_log_syslog = 1;
-+
-+ /* become a background daemon */
-+ if (daemon(0, 0))
-+ err(1, "daemon");
- }
--
--
--// put ourselves into the background
--
-- switch (fork()) {
-- case -1:
-- skip_log(SKIP_ERROR, "fork failed");
-- exit(1);
--
-- case 0:
-- break;
--
-- default:
-- exit(0);
-- }
--
-- setsid();
+-void skip_local_keyid_init();
+-void skip_local_keyid_uninit();
++void skip_local_keyid_init(void);
++void skip_local_keyid_uninit(void);
+ void skip_set_local_keyid(unsigned char , skip_key_var_t *);
+ int skip_check_keyid(unsigned char , skip_key_var_t *, boolean_t);
+ int skip_get_default_keyid(unsigned char, unsigned char *);
+@@ -254,8 +252,8 @@
+ * function prototypes
+ */
+ void skip_key_fromkm(union skip_messages *, unsigned int);
++void skip_key_tellkm(enum skip_msgs, skip_keycb_t *);
+ #endif
-
-- freopen("/dev/null", "r", stdin);
-- freopen("/dev/null", "w", stdout);
-- freopen("/dev/null", "w", stderr);
- skip_init();
- skipd_loop();
+ /*
+ * external variables
diff --git a/security/skip/files/patch-br b/security/skip/files/patch-br
index 0f52890ca702..0eda3d87970e 100644
--- a/security/skip/files/patch-br
+++ b/security/skip/files/patch-br
@@ -1,13 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skiplocal.C skipsrc-1.0/skip/keymgrd/skiplocal.C
---- skipsrc-1.0.orig/skip/keymgrd/skiplocal.C Fri Oct 25 13:12:55 1996
-+++ skipsrc-1.0/skip/keymgrd/skiplocal.C Sat Dec 20 11:26:35 1997
-@@ -88,8 +88,7 @@
-
- void
- usage(char *s){
-- fprintf(stderr, "%s [add|export|extract|list|keygen|rm"
-- , s);
-+ fprintf(stderr, "%s [add|export|extract|list|keygen|rm]\n", s);
- exit(1);
- }
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/include/skip_types.h work.new/skip/include/skip_types.h
+--- skipsrc-1.0.orig/skip/include/skip_types.h Fri Oct 25 13:12:45 1996
++++ work.new/skip/include/skip_types.h Mon Mar 8 21:33:38 1999
+@@ -142,6 +142,7 @@
+ unsigned char flags; /* ACL info for this system */
+ struct in_addr mask; /* network/host mask */
+ struct in_addr tunnel_addr; /* tunneling address */
++ unsigned long source; /* source address */
+ } skip_param_t;
+ /*
diff --git a/security/skip/files/patch-bs b/security/skip/files/patch-bs
index 5aa638eb1f0b..dffe535a2b54 100644
--- a/security/skip/files/patch-bs
+++ b/security/skip/files/patch-bs
@@ -1,13 +1,24 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/t_mem.c skipsrc-1.0/skip/keymgrd/t_mem.c
---- skipsrc-1.0.orig/skip/keymgrd/t_mem.c Fri Oct 25 13:12:55 1996
-+++ skipsrc-1.0/skip/keymgrd/t_mem.c Tue Nov 25 19:31:01 1997
-@@ -45,8 +45,7 @@
- #pragma ident "@(#)t_mem.c 1.2 95/11/23 Sun Microsystems"
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/cdp_queue.C work.new/skip/keymgrd/cdp_queue.C
+--- skipsrc-1.0.orig/skip/keymgrd/cdp_queue.C Fri Oct 25 13:12:47 1996
++++ work.new/skip/keymgrd/cdp_queue.C Mon Mar 8 21:33:38 1999
+@@ -91,17 +91,17 @@
- #include "global.h"
--#include <memory.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <string.h>
+ switch (kind) {
+ case RESOLVER_PING:
+- skip_log(SKIP_NOTICE, "add_cdp_resolver(@) (bilateral)");
++ skip_log(SKIP_INFO, "add_cdp_resolver(@) (bilateral)");
+ break;
- void T_memset(POINTER s, int c, unsigned int n )
+ case RESOLVER_TUNNEL:
+- skip_log(SKIP_NOTICE, "add_cdp_resolver(=) (tunnel)");
++ skip_log(SKIP_INFO, "add_cdp_resolver(=) (tunnel)");
+ break;
+
+ case RESOLVER_HOST:
+ if (parse_ip_address(&r.server, arg))
+ return;
+- skip_log(SKIP_NOTICE, "add_cdp_resolver(%s)", arg);
++ skip_log(SKIP_INFO, "add_cdp_resolver(%s)", arg);
+ break;
+
+ default:
diff --git a/security/skip/files/patch-bt b/security/skip/files/patch-bt
index 8fe4122a27ac..5e6d78fc77fb 100644
--- a/security/skip/files/patch-bt
+++ b/security/skip/files/patch-bt
@@ -1,27 +1,24 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/install_skip_keys.1m skipsrc-1.0/skip/man/install_skip_keys.1m
---- skipsrc-1.0.orig/skip/man/install_skip_keys.1m Fri Oct 25 13:12:56 1996
-+++ skipsrc-1.0/skip/man/install_skip_keys.1m Wed Nov 26 20:03:59 1997
-@@ -41,20 +41,13 @@
- .RE
- .P
- .SH FILES
--.SS Solaris 1.x systems:
- .P
--/etc/skip/certdb.dir
-+@@PREFIX@@/etc/skip/certdb.dir
- .br
--/etc/skip/localid/..
-+@@PREFIX@@/etc/skip/localid/..
- .br
--/etc/skip/CAs/...
-+@@PREFIX@@/etc/skip/CAs/...
- .br
--.P
--.SS Solaris 2.x systems:
--.P
--/etc/opt/SUNWicg/skip/certdb
--/etc/opt/SUNWicg/skip/localid/...
--/etc/opt/SUNWicg/skip/CAs/...
- .P
- .SH NOTES
- Currently the name of the Certificate is hard coded into the code. We
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_init.C work.new/skip/keymgrd/skip_init.C
+--- skipsrc-1.0.orig/skip/keymgrd/skip_init.C Fri Oct 25 13:12:49 1996
++++ work.new/skip/keymgrd/skip_init.C Mon Mar 8 21:33:38 1999
+@@ -81,7 +81,7 @@
+ return;
+ }
+
+- skip_log(SKIP_NOTICE, "local name nsid=%d mkid=%s",
++ skip_log(SKIP_INFO, "local name nsid=%d mkid=%s",
+ nsid, keyid.get_info_str());
+ }
+
+@@ -135,9 +135,9 @@
+ {
+ // Let the random number generator kick off its entropy gathering
+
+- skip_log(SKIP_NOTICE, "Initializing random number generator...");
++ skip_log(SKIP_INFO, "Initializing random number generator...");
+ Bstream dummy = get_random_bytes(1);
+- skip_log(SKIP_NOTICE, "done");
++ skip_log(SKIP_INFO, "done");
+ }
+
+ auth.load(SKIP_DIR);
diff --git a/security/skip/files/patch-bu b/security/skip/files/patch-bu
index 8e412fc982cc..f9de5e7fac29 100644
--- a/security/skip/files/patch-bu
+++ b/security/skip/files/patch-bu
@@ -1,14 +1,11 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/raw_keys.4 skipsrc-1.0/skip/man/raw_keys.4
---- skipsrc-1.0.orig/skip/man/raw_keys.4 Fri Oct 25 13:12:56 1996
-+++ skipsrc-1.0/skip/man/raw_keys.4 Wed Nov 26 20:04:19 1997
-@@ -42,9 +42,4 @@
- link.
- .SH FILES
- .P
--.SH Solaris 2.x systems:
--/etc/opt/SUNWicg/skip/raw_keys
--.P
--.SH Other systems:
--.P
--/etc/skip/raw_keys
-+@@PREFIX@@/etc/skip/raw_keys
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_keymgrsubr.C work.new/skip/keymgrd/skip_keymgrsubr.C
+--- skipsrc-1.0.orig/skip/keymgrd/skip_keymgrsubr.C Fri Oct 25 13:12:49 1996
++++ work.new/skip/keymgrd/skip_keymgrsubr.C Mon Mar 8 21:33:38 1999
+@@ -59,7 +59,6 @@
+ #include "SkipCert.h"
+ #include "X509skip.h"
+ #include "HashCert.h"
+-#include "malloc.h"
+ #include "utils.h"
+ #include "Sig.h"
+ #include "skip_log.h"
diff --git a/security/skip/files/patch-bv b/security/skip/files/patch-bv
index 42d8dc5238cb..92b7bdc28136 100644
--- a/security/skip/files/patch-bv
+++ b/security/skip/files/patch-bv
@@ -1,21 +1,39 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skip_certd.1m skipsrc-1.0/skip/man/skip_certd.1m
---- skipsrc-1.0.orig/skip/man/skip_certd.1m Fri Oct 25 13:12:56 1996
-+++ skipsrc-1.0/skip/man/skip_certd.1m Wed Nov 26 20:04:40 1997
-@@ -14,15 +14,10 @@
- .SH FILES
- .br
- /tmp/skip_certd.log
--.SS Solaris 1.x systems:
- .P
--/etc/skip/certs.dir
-+@@PREFIX@@/etc/skip/certs.dir
- .br
--/etc/skip/certs.pag
-+@@PREFIX@@/etc/skip/certs.pag
- .P
--.SS Solaris 2.x systems:
--.P
--/etc/opt/SUNWicg/skip/certs.dir
--/etc/opt/SUNWicg/skip/certs.pag
- .SH SEE ALSO
- caping(1)
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_log.C work.new/skip/keymgrd/skip_log.C
+--- skipsrc-1.0.orig/skip/keymgrd/skip_log.C Fri Oct 25 13:12:50 1996
++++ work.new/skip/keymgrd/skip_log.C Mon Mar 8 21:33:38 1999
+@@ -60,7 +60,7 @@
+ strcpy(outbuf,buf);
+ }
+
+-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);
+
+- 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);
+ }
++
diff --git a/security/skip/files/patch-bw b/security/skip/files/patch-bw
index 3161f4609937..df1b6338642a 100644
--- a/security/skip/files/patch-bw
+++ b/security/skip/files/patch-bw
@@ -1,14 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skip_conf.1m skipsrc-1.0/skip/man/skip_conf.1m
---- skipsrc-1.0.orig/skip/man/skip_conf.1m Fri Oct 25 13:12:56 1996
-+++ skipsrc-1.0/skip/man/skip_conf.1m Wed Nov 26 20:08:31 1997
-@@ -28,9 +28,4 @@
- and remove any max_certdb_size lines from \fIskipd.conf\fP.
- .SH FILES
- .P
--.SH Solaris 2.x systems:
--/etc/opt/SUNWicg/skip/skipd.conf
--.P
--.SH Other systems:
--.P
--/etc/skip/skipd.conf
-+@@PREFIX@@/etc/skip/skipd.conf
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_log.h work.new/skip/keymgrd/skip_log.h
+--- skipsrc-1.0.orig/skip/keymgrd/skip_log.h Fri Oct 25 13:12:51 1996
++++ work.new/skip/keymgrd/skip_log.h Mon Mar 8 21:33:38 1999
+@@ -45,5 +45,6 @@
+ #pragma ident "@(#)skip_log.h 1.3 95/11/17"
+
+ void skip_log(int,char*,...);
+-#define SKIP_ERROR 1
+-#define SKIP_NOTICE 2
++#define SKIP_ERROR LOG_ERR
++#define SKIP_NOTICE LOG_NOTICE
++#define SKIP_INFO LOG_INFO
diff --git a/security/skip/files/patch-bx b/security/skip/files/patch-bx
index d9b923ca0723..95d228ac0fa3 100644
--- a/security/skip/files/patch-bx
+++ b/security/skip/files/patch-bx
@@ -1,20 +1,21 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipca.1m skipsrc-1.0/skip/man/skipca.1m
---- skipsrc-1.0.orig/skip/man/skipca.1m Fri Oct 25 13:12:57 1996
-+++ skipsrc-1.0/skip/man/skipca.1m Wed Nov 26 20:10:01 1997
-@@ -81,14 +81,10 @@
- .SH FILES
- .SS Solaris 1.x systems:
- .P
--/etc/skip/CAs
-+@@PREFIX@@/etc/skip/CAs
- .br
--.SS Solaris 2.x systems:
--.P
--/etc/opt/SUNWicg/skip/CAs
--.P
- .SH SEE ALSO
- .BR skipdb(1m)
--.BR skiplocala(1m)
-+.BR skiplocal(1m)
- .BR skipd(1m)
-
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skip_msgs.C work.new/skip/keymgrd/skip_msgs.C
+--- skipsrc-1.0.orig/skip/keymgrd/skip_msgs.C Fri Oct 25 13:12:51 1996
++++ work.new/skip/keymgrd/skip_msgs.C Mon Mar 8 21:33:38 1999
+@@ -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);
+
diff --git a/security/skip/files/patch-by b/security/skip/files/patch-by
index b03d7ff0a712..626f94ee5dcd 100644
--- a/security/skip/files/patch-by
+++ b/security/skip/files/patch-by
@@ -1,24 +1,12 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipd.1m skipsrc-1.0/skip/man/skipd.1m
---- skipsrc-1.0.orig/skip/man/skipd.1m Fri Oct 25 13:12:57 1996
-+++ skipsrc-1.0/skip/man/skipd.1m Wed Nov 26 20:10:11 1997
-@@ -62,17 +62,9 @@
- skipd.conf(4)
- .P
- .SH FILES
--.SH Solaris 2.x systems:
--/etc/opt/SUNWicg/skip/skipd.conf
--.br
--/etc/opt/SUNWicg/skip/CAs/
--.br
--/etc/opt/SUNWicg/skip/localid/
--.P
--.SH Other systems:
- .P
--/etc/skip/skipd.conf
-+@@PREFIX@@/etc/skip/skipd.conf
- .br
--/etc/skip/CAs/
-+@@PREFIX@@/etc/skip/CAs/
- .br
--/etc/skip/localid/
-+@@PREFIX@@/etc/skip/localid/
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skipca.C work.new/skip/keymgrd/skipca.C
+--- skipsrc-1.0.orig/skip/keymgrd/skipca.C Fri Oct 25 13:12:53 1996
++++ work.new/skip/keymgrd/skipca.C Mon Mar 8 21:33:38 1999
+@@ -307,7 +307,7 @@
+ }
+ if (overwrite) {
+ int ret;
+- sprintf(buf,"/usr/bin/rm -rf %s", CA_PATH);
++ sprintf(buf,"/bin/rm -rf %s", CA_PATH);
+ ret = system(buf);
+ if (ret) {
+ fprintf(stderr,"Unable to Clean old directory %s \n",
diff --git a/security/skip/files/patch-bz b/security/skip/files/patch-bz
index 33f2b30799e5..8636e69adc25 100644
--- a/security/skip/files/patch-bz
+++ b/security/skip/files/patch-bz
@@ -1,14 +1,76 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipd.conf.4 skipsrc-1.0/skip/man/skipd.conf.4
---- skipsrc-1.0.orig/skip/man/skipd.conf.4 Fri Oct 25 13:12:57 1996
-+++ skipsrc-1.0/skip/man/skipd.conf.4 Wed Nov 26 20:10:30 1997
-@@ -85,9 +85,4 @@
- \fIskipd.conf\fP options may be set with the \fIskip_conf\fP command.
- .SH FILES
- .P
--.SH Solaris 2.x systems:
--/etc/opt/SUNWicg/skip/skipd.conf
--.P
--.SH Other systems:
--.P
--/etc/skip/skipd.conf
-+@@PREFIX@@/etc/skip/skipd.conf
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skipd.C work.new/skip/keymgrd/skipd.C
+--- skipsrc-1.0.orig/skip/keymgrd/skipd.C Fri Oct 25 13:12:54 1996
++++ work.new/skip/keymgrd/skipd.C Mon Mar 8 21:33:38 1999
+@@ -48,6 +48,7 @@
+ * System includes
+ */
+ #include <skip_os.h>
++#include <err.h>
+
+ /*
+ * SKIP includes
+@@ -84,8 +85,9 @@
+ {
+ int c;
+ int errflag = 0;
++ int noFork = 0;
+
+- while ((c = getopt(argc, argv, "vV?")) != EOF) {
++ while ((c = getopt(argc, argv, "nvV?")) != EOF) {
+ switch(c) {
+ case 'v':
+ verbose = 1;
+@@ -95,6 +97,9 @@
+ verbose = 2;
+ break;
+
++ case 'n':
++ noFork = 1;
++ break;
+ case '?':
+ default:
+ errflag++;
+@@ -106,34 +111,18 @@
+ exit(1);
+ }
+
++ if (!noFork)
+ {
+- extern FILE *skip_log_fp;
+-
+- skip_log_fp = fopen("/var/log/skipd.log", "w+");
++ extern int skip_log_syslog;
+
+- // if open fails, skip_log will default to stdout/stderr
++ /* output to syslog */
++ openlog("skipd", 0, LOG_DAEMON);
++ skip_log_syslog = 1;
++
++ /* become a background daemon */
++ if (daemon(0, 0))
++ err(1, "daemon");
+ }
+-
+-
+-// put ourselves into the background
+-
+- switch (fork()) {
+- case -1:
+- skip_log(SKIP_ERROR, "fork failed");
+- exit(1);
+-
+- case 0:
+- break;
+-
+- default:
+- exit(0);
+- }
+-
+- setsid();
+-
+- freopen("/dev/null", "r", stdin);
+- freopen("/dev/null", "w", stdout);
+- freopen("/dev/null", "w", stderr);
+
+ skip_init();
+ skipd_loop();
diff --git a/security/skip/files/patch-ca b/security/skip/files/patch-ca
index 7f318d1deb51..89bf28fe41b1 100644
--- a/security/skip/files/patch-ca
+++ b/security/skip/files/patch-ca
@@ -1,19 +1,13 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipd_restart.1m skipsrc-1.0/skip/man/skipd_restart.1m
---- skipsrc-1.0.orig/skip/man/skipd_restart.1m Fri Oct 25 13:12:57 1996
-+++ skipsrc-1.0/skip/man/skipd_restart.1m Wed Nov 26 20:11:08 1997
-@@ -9,13 +9,6 @@
- You must be root to run this command.
- .SH FILES
- .P
--.SH Solaris 2.x systems:
--/etc/opt/SUNWicg/skip/skipd.pid
-+/var/run/skipd.pid
- .br
--/opt/SUNWicg/bin/skipd
--.P
--.SH Other systems:
--.P
--/etc/skip/skipd.pid
--.br
--/usr/skip/bin/skipd
-+@@PREFIX@@/bin/skipd
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skiplocal.C work.new/skip/keymgrd/skiplocal.C
+--- skipsrc-1.0.orig/skip/keymgrd/skiplocal.C Fri Oct 25 13:12:55 1996
++++ work.new/skip/keymgrd/skiplocal.C Mon Mar 8 21:33:38 1999
+@@ -88,8 +88,7 @@
+
+ void
+ usage(char *s){
+- fprintf(stderr, "%s [add|export|extract|list|keygen|rm"
+- , s);
++ fprintf(stderr, "%s [add|export|extract|list|keygen|rm]\n", s);
+ exit(1);
+ }
+
diff --git a/security/skip/files/patch-cb b/security/skip/files/patch-cb
index 2879bc41947d..9e7c4771141e 100644
--- a/security/skip/files/patch-cb
+++ b/security/skip/files/patch-cb
@@ -1,18 +1,13 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipdb.1m skipsrc-1.0/skip/man/skipdb.1m
---- skipsrc-1.0.orig/skip/man/skipdb.1m Fri Oct 25 13:12:57 1996
-+++ skipsrc-1.0/skip/man/skipdb.1m Wed Nov 26 20:11:24 1997
-@@ -79,13 +79,9 @@
- skipdb will always return 0 on Success and non-zero on error. An appropriate
- error message will be written to standard error.
- .SH FILES
--.SS Solaris 1.x systems:
- .P
--/etc/skip/certdb
-+@@PREFIX@@/etc/skip/certdb
- .br
--.SS Solaris 2.x systems:
--.P
--/etc/opt/SUNWicg/skip/certdb
- .P
- .SH SEE ALSO
- .BR skiplocal(1m)
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/t_mem.c work.new/skip/keymgrd/t_mem.c
+--- skipsrc-1.0.orig/skip/keymgrd/t_mem.c Fri Oct 25 13:12:55 1996
++++ work.new/skip/keymgrd/t_mem.c Mon Mar 8 21:33:38 1999
+@@ -45,8 +45,7 @@
+ #pragma ident "@(#)t_mem.c 1.2 95/11/23 Sun Microsystems"
+
+ #include "global.h"
+-#include <memory.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <string.h>
+
+ void T_memset(POINTER s, int c, unsigned int n )
diff --git a/security/skip/files/patch-cc b/security/skip/files/patch-cc
index c379ab3f002b..9c3a6cfd9a24 100644
--- a/security/skip/files/patch-cc
+++ b/security/skip/files/patch-cc
@@ -1,17 +1,27 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipif.1m skipsrc-1.0/skip/man/skipif.1m
---- skipsrc-1.0.orig/skip/man/skipif.1m Fri Oct 25 13:12:58 1996
-+++ skipsrc-1.0/skip/man/skipif.1m Wed Nov 26 20:11:45 1997
-@@ -104,12 +104,8 @@
- skipif will advise so.
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/install_skip_keys.1m work.new/skip/man/install_skip_keys.1m
+--- skipsrc-1.0.orig/skip/man/install_skip_keys.1m Fri Oct 25 13:12:56 1996
++++ work.new/skip/man/install_skip_keys.1m Mon Mar 8 21:33:39 1999
+@@ -41,20 +41,13 @@
+ .RE
+ .P
.SH FILES
+-.SS Solaris 1.x systems:
+ .P
+-/etc/skip/certdb.dir
++@@PREFIX@@/etc/skip/certdb.dir
+ .br
+-/etc/skip/localid/..
++@@PREFIX@@/etc/skip/localid/..
.br
+-/etc/skip/CAs/...
++@@PREFIX@@/etc/skip/CAs/...
+ .br
+-.P
-.SS Solaris 2.x systems:
- .P
--/etc/opt/SUNWicg/skip/acl.<interface>
--.SS Other systems:
-.P
--/etc/skip/acl.<interface>
-+@@PREFIX@@/etc/skip/acl.<interface>
+-/etc/opt/SUNWicg/skip/certdb
+-/etc/opt/SUNWicg/skip/localid/...
+-/etc/opt/SUNWicg/skip/CAs/...
.P
- .SH SEE ALSO
- skiphost(1M), skipstat(1M), skiptool(1M), ifconfig(1M)
+ .SH NOTES
+ Currently the name of the Certificate is hard coded into the code. We
diff --git a/security/skip/files/patch-cd b/security/skip/files/patch-cd
index 3643a7316719..0a127397084f 100644
--- a/security/skip/files/patch-cd
+++ b/security/skip/files/patch-cd
@@ -1,18 +1,14 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skiplocal.1m skipsrc-1.0/skip/man/skiplocal.1m
---- skipsrc-1.0.orig/skip/man/skiplocal.1m Fri Oct 25 13:12:58 1996
-+++ skipsrc-1.0/skip/man/skiplocal.1m Wed Nov 26 20:11:53 1997
-@@ -171,13 +171,9 @@
- \fBskipd_restart\fP in order for the changes to take effect.
- .P
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/raw_keys.4 work.new/skip/man/raw_keys.4
+--- skipsrc-1.0.orig/skip/man/raw_keys.4 Fri Oct 25 13:12:56 1996
++++ work.new/skip/man/raw_keys.4 Mon Mar 8 21:33:39 1999
+@@ -42,9 +42,4 @@
+ link.
.SH FILES
--.SS Solaris 1.x systems:
.P
--/etc/skip/localids
-+@@PREFIX@@/etc/skip/localids
- .br
--.SS Solaris 2.x systems:
+-.SH Solaris 2.x systems:
+-/etc/opt/SUNWicg/skip/raw_keys
-.P
--/etc/opt/SUNWicg/skip/localids
- .P
- .SH BUGS
- skiplocal export does not work well for communicating with multiple keys.
+-.SH Other systems:
+-.P
+-/etc/skip/raw_keys
++@@PREFIX@@/etc/skip/raw_keys
diff --git a/security/skip/files/patch-ce b/security/skip/files/patch-ce
index 31fadd547ff2..27867ce5c659 100644
--- a/security/skip/files/patch-ce
+++ b/security/skip/files/patch-ce
@@ -1,92 +1,21 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/lib/skip_freebsd.c skipsrc-1.0/skip/tools/lib/skip_freebsd.c
---- skipsrc-1.0.orig/skip/tools/lib/skip_freebsd.c Fri Oct 25 13:13:02 1996
-+++ skipsrc-1.0/skip/tools/lib/skip_freebsd.c Fri Dec 5 17:33:01 1997
-@@ -235,7 +235,7 @@
- char *
- skip_default_if()
- {
--#define SKIP_DEFAULT_IF "eth0" /* 3com 3c589 */
-+#define SKIP_DEFAULT_IF "ed1"
- static char devname[MAXPATHLEN];
- char cbuf[sizeof(struct ifreq) * 16];
- struct ifconf ifc;
-@@ -244,6 +244,7 @@
- struct sockaddr_in *sa;
- char hostname[MAXHOSTNAMELEN];
- int s, n;
-+ int goodness = 0;
-
- strcpy(devname, SKIP_DEFAULT_IF);
-
-@@ -253,11 +254,13 @@
-
- hp = _skip_gethostbyname(hostname);
-
-+#if 0
- if (hp == NULL) {
- return(devname);
- }
-+#endif
-
-- if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
-+ if ((s = socket(PF_INET, SOCK_RAW, 0)) < 0) {
- return (devname);
- }
-
-@@ -276,33 +279,37 @@
- * just in case the primary can't be found.
- *
- */
-- end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
-- while (ifr < end) {
-+ for (end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len),
-+ ifr = ifc.ifc_req;
-+ ifr < end;
-+ ifr = (struct ifreq *)
-+ ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len))
-+ {
-+ int newgoodness = 0;
-
- strcpy(ifflags.ifr_name, ifr->ifr_name);
- if (ioctl(s, SIOCGIFFLAGS, (char *) &ifflags) < 0) {
-- /*goto out;*/
-+ continue;
- }
- if ((ifflags.ifr_flags & (IFF_LOOPBACK|IFF_UP|IFF_RUNNING)) ==
- (IFF_UP|IFF_RUNNING)) {
-- /*
-- * note the interface name just in case
-- */
-- strcpy(devname, ifr->ifr_name);
-- /*
-- * but try to find an exact match
-- */
-- sa = (struct sockaddr_in *) &ifr->ifr_addr;
-- if (memcmp(hp->h_addr_list[0], (void *) &sa->sin_addr,
-- hp->h_length) == 0) {
-- break;
-+ /* try to find an exact match */
-+ if (hp && ifr->ifr_addr.sa_family == AF_INET) {
-+ sa = (struct sockaddr_in *) &ifr->ifr_addr;
-+ if (memcmp(hp->h_addr_list[0],
-+ (void *) &sa->sin_addr, hp->h_length) == 0)
-+ break;
-+ }
-+ /* try to prefer ethernet interfaces */
-+ if (ifflags.ifr_flags & IFF_BROADCAST)
-+ newgoodness += 1;
-+ if (!(ifflags.ifr_flags & IFF_POINTOPOINT))
-+ newgoodness += 1;
-+ if (newgoodness > goodness) {
-+ strcpy(devname, ifr->ifr_name);
-+ goodness = newgoodness;
- }
- }
-- if(ifr->ifr_addr.sa_len) /* Dohw! */
-- ifr = (struct ifreq *) ((caddr_t) ifr +
-- ifr->ifr_addr.sa_len -
-- sizeof(struct sockaddr));
-- ifr++;
- }
- out:
- (void) close(s);
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skip_certd.1m work.new/skip/man/skip_certd.1m
+--- skipsrc-1.0.orig/skip/man/skip_certd.1m Fri Oct 25 13:12:56 1996
++++ work.new/skip/man/skip_certd.1m Mon Mar 8 21:33:39 1999
+@@ -14,15 +14,10 @@
+ .SH FILES
+ .br
+ /tmp/skip_certd.log
+-.SS Solaris 1.x systems:
+ .P
+-/etc/skip/certs.dir
++@@PREFIX@@/etc/skip/certs.dir
+ .br
+-/etc/skip/certs.pag
++@@PREFIX@@/etc/skip/certs.pag
+ .P
+-.SS Solaris 2.x systems:
+-.P
+-/etc/opt/SUNWicg/skip/certs.dir
+-/etc/opt/SUNWicg/skip/certs.pag
+ .SH SEE ALSO
+ caping(1)
diff --git a/security/skip/files/patch-cf b/security/skip/files/patch-cf
index 7c0ce157aef5..12928d01a2cc 100644
--- a/security/skip/files/patch-cf
+++ b/security/skip/files/patch-cf
@@ -1,19 +1,14 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/Makefile skipsrc-1.0/skip/tools/skiptool/Makefile
---- skipsrc-1.0.orig/skip/tools/skiptool/Makefile Fri Oct 25 13:13:05 1996
-+++ skipsrc-1.0/skip/tools/skiptool/Makefile Tue Nov 25 18:08:50 1997
-@@ -97,11 +97,15 @@
-
- # Compiler flags.
-
-+PREFIX?= /usr/local
-+
- DYNAMIC_PATH = $(DYNAMIC_$(OSNAME))
- CFLAGS += $(U_DEBUG) $(OS) -DSKIP_RELEASE="\"$(SKIP_RELEASE)\""
- SKIPINC_DIR = -I../lib -I$(COMM_INC) -I$(DRVDIR)
- CPPFLAGS += -I$(WIN_HOME)/include -DMAIN $(SKIPINC_DIR)
- CPPFLAGS += -I$(WIN_HOME)/include/pixrect
-+CPPFLAGS += -I${PREFIX}/include
-+CPPFLAGS += -I${PREFIX}/include/pixrect
- LDFLAGS += -L$(WIN_HOME)/lib $(DYNAMIC_PATH)
- LDLIBS += ../lib/$(SKIP_LIB) $(OS_LIB) -lxview -lolgx -lX11
-
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skip_conf.1m work.new/skip/man/skip_conf.1m
+--- skipsrc-1.0.orig/skip/man/skip_conf.1m Fri Oct 25 13:12:56 1996
++++ work.new/skip/man/skip_conf.1m Mon Mar 8 21:33:39 1999
+@@ -28,9 +28,4 @@
+ and remove any max_certdb_size lines from \fIskipd.conf\fP.
+ .SH FILES
+ .P
+-.SH Solaris 2.x systems:
+-/etc/opt/SUNWicg/skip/skipd.conf
+-.P
+-.SH Other systems:
+-.P
+-/etc/skip/skipd.conf
++@@PREFIX@@/etc/skip/skipd.conf
diff --git a/security/skip/files/patch-cg b/security/skip/files/patch-cg
index 192329de324c..61f07bb5e38c 100644
--- a/security/skip/files/patch-cg
+++ b/security/skip/files/patch-cg
@@ -1,12 +1,20 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/es_glue.c skipsrc-1.0/skip/tools/skiptool/es_glue.c
---- skipsrc-1.0.orig/skip/tools/skiptool/es_glue.c Fri Oct 25 13:13:05 1996
-+++ skipsrc-1.0/skip/tools/skiptool/es_glue.c Tue Nov 25 18:53:43 1997
-@@ -1948,7 +1948,7 @@
- void
- stats(int which)
- {
-- char *opt, *t, s[STRSZ], *argv[12];
-+ char *opt = NULL, *t = NULL, s[STRSZ], *argv[12];
- char ifstats[STRSZ], *optarg = NULL;
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipca.1m work.new/skip/man/skipca.1m
+--- skipsrc-1.0.orig/skip/man/skipca.1m Fri Oct 25 13:12:57 1996
++++ work.new/skip/man/skipca.1m Mon Mar 8 21:33:39 1999
+@@ -81,14 +81,10 @@
+ .SH FILES
+ .SS Solaris 1.x systems:
+ .P
+-/etc/skip/CAs
++@@PREFIX@@/etc/skip/CAs
+ .br
+-.SS Solaris 2.x systems:
+-.P
+-/etc/opt/SUNWicg/skip/CAs
+-.P
+ .SH SEE ALSO
+ .BR skipdb(1m)
+-.BR skiplocala(1m)
++.BR skiplocal(1m)
+ .BR skipd(1m)
- switch (which) {
diff --git a/security/skip/files/patch-ch b/security/skip/files/patch-ch
index 35d109ebe4d1..1053e00ff258 100644
--- a/security/skip/files/patch-ch
+++ b/security/skip/files/patch-ch
@@ -1,17 +1,24 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/es_ras.c skipsrc-1.0/skip/tools/skiptool/es_ras.c
---- skipsrc-1.0.orig/skip/tools/skiptool/es_ras.c Fri Oct 25 13:13:06 1996
-+++ skipsrc-1.0/skip/tools/skiptool/es_ras.c Tue Dec 2 17:05:13 1997
-@@ -92,6 +92,13 @@
- if (stat(path, &st) == 0) {
- return (path);
- }
-+
-+ strcpy(path, SKIP_DIR);
-+ strcat(path, "/");
-+ strcat(path, name);
-+ if (stat(path, &st) == 0) {
-+ return (path);
-+ }
- return (NULL);
- }
-
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipd.1m work.new/skip/man/skipd.1m
+--- skipsrc-1.0.orig/skip/man/skipd.1m Fri Oct 25 13:12:57 1996
++++ work.new/skip/man/skipd.1m Mon Mar 8 21:33:39 1999
+@@ -62,17 +62,9 @@
+ skipd.conf(4)
+ .P
+ .SH FILES
+-.SH Solaris 2.x systems:
+-/etc/opt/SUNWicg/skip/skipd.conf
+-.br
+-/etc/opt/SUNWicg/skip/CAs/
+-.br
+-/etc/opt/SUNWicg/skip/localid/
+-.P
+-.SH Other systems:
+ .P
+-/etc/skip/skipd.conf
++@@PREFIX@@/etc/skip/skipd.conf
+ .br
+-/etc/skip/CAs/
++@@PREFIX@@/etc/skip/CAs/
+ .br
+-/etc/skip/localid/
++@@PREFIX@@/etc/skip/localid/
diff --git a/security/skip/files/patch-ci b/security/skip/files/patch-ci
index c036ead156f1..7823b652ade7 100644
--- a/security/skip/files/patch-ci
+++ b/security/skip/files/patch-ci
@@ -1,378 +1,14 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/skiptool_stubs.c skipsrc-1.0/skip/tools/skiptool/skiptool_stubs.c
---- skipsrc-1.0.orig/skip/tools/skiptool/skiptool_stubs.c Fri Oct 25 13:13:10 1996
-+++ skipsrc-1.0/skip/tools/skiptool/skiptool_stubs.c Tue Nov 25 19:52:44 1997
-@@ -68,6 +68,10 @@
-
- #include "es_glue.h"
-
-+#ifndef __GNUC__
-+#define __attribute__ (x)
-+#endif
-+
- /*
- * Global object definitions.
- */
-@@ -173,7 +177,7 @@
- Menu_item
- skiptool_menu_item0_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -206,7 +210,7 @@
- void
- skiptool_base_window_access_ctrl_notify_callback(Panel_item item, int value, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -231,7 +235,7 @@
- void
- skiptool_base_window_access_mode_notify_callback(Panel_item item, int value, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -261,7 +265,7 @@
- void
- skiptool_base_window_delete_button_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -280,7 +284,7 @@
- void
- skiptool_key_params_win_key_apply_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_key_params_win_objects *ip = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_key_params_win_objects *ip __attribute__ ((unused)) = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -302,7 +306,7 @@
- void
- skiptool_key_params_win_key_default_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_key_params_win_objects *ip = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_key_params_win_objects *ip __attribute__ ((unused)) = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -322,7 +326,7 @@
- void
- skiptool_required_win_required_add_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_required_win_objects *ip = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_required_win_objects *ip __attribute__ ((unused)) = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -341,7 +345,7 @@
- void
- skiptool_required_win_required_cancel_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_required_win_objects *ip = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_required_win_objects *ip __attribute__ ((unused)) = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -360,7 +364,7 @@
- Menu_item
- skiptool_help_menu_item1_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -405,7 +409,7 @@
- Menu_item
- skiptool_stats_menu_item0_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -438,7 +442,7 @@
- Menu_item
- skiptool_stats_menu_item1_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -471,7 +475,7 @@
- Menu_item
- skiptool_stats_menu_item2_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -504,7 +508,7 @@
- Menu_item
- skiptool_stats_menu_item3_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -537,7 +541,7 @@
- void
- skiptool_hostwin_v2_s_nsid_notify_callback(Panel_item item, int value, Event *event)
- {
-- skiptool_hostwin_v2_objects *ip = (skiptool_hostwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_hostwin_v2_objects *ip __attribute__ ((unused)) = (skiptool_hostwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -572,6 +576,10 @@
-
- case PANEL_LIST_OP_DELETE:
- break;
-+
-+ case PANEL_LIST_OP_DESELECT:
-+ case PANEL_LIST_OP_DBL_CLICK:
-+ break;
- }
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
-@@ -601,6 +609,10 @@
-
- case PANEL_LIST_OP_DELETE:
- break;
-+
-+ case PANEL_LIST_OP_DESELECT:
-+ case PANEL_LIST_OP_DBL_CLICK:
-+ break;
- }
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -616,7 +628,7 @@
- void
- skiptool_base_window_delete_xbutton_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
-@@ -634,7 +646,7 @@
- void
- skiptool_base_window_to_x_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
-@@ -652,7 +664,7 @@
- void
- skiptool_base_window_to_a_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
-@@ -670,7 +682,7 @@
- Menu_item
- skiptool_stats_menu_item4_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -703,7 +715,7 @@
- Menu_item
- skiptool_stats_menu_item5_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -736,7 +748,7 @@
- Menu_item
- skiptool_menu_item1_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -772,7 +784,7 @@
- Menu_item
- skiptool_menu_item3_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -805,7 +817,7 @@
- Menu_item
- skiptool_menu_item4_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -838,7 +850,7 @@
- Menu_item
- skiptool_version_menu_item0_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -869,7 +881,7 @@
- Menu_item
- skiptool_version_menu_item1_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -900,7 +912,7 @@
- Menu_item
- skiptool_version_menu_item2_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -931,7 +943,7 @@
- Menu_item
- skiptool_version_menu_nom_item0_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -962,7 +974,7 @@
- Menu_item
- skiptool_version_menu_nom_item1_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -993,7 +1005,7 @@
- Menu_item
- skiptool_version_menu_net_item0_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1024,7 +1036,7 @@
- Menu_item
- skiptool_version_menu_net_item1_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1055,7 +1067,7 @@
- Menu_item
- skiptool_version_menu_net_item2_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1086,7 +1098,7 @@
- Menu_item
- skiptool_version_menu_net_item3_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1346,7 +1358,7 @@
- Menu_item
- skiptool_version_menu_item3_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1377,7 +1389,7 @@
- Menu_item
- skiptool_xversion_menu_nom_item0_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1410,7 +1422,7 @@
- Menu_item
- skiptool_xversion_menu_nom_item1_callback(Menu_item item, Menu_generate op)
- {
-- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1443,7 +1455,7 @@
- Menu_item
- skiptool_exc_menu_item0_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1476,7 +1488,7 @@
- Menu_item
- skiptool_exc_menu_item1_callback(Menu_item item, Menu_generate op)
- {
-- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch (op) {
- case MENU_DISPLAY:
-@@ -1842,7 +1854,7 @@
- void
- skiptool_nomwin_v2_skip_mode_notify_callback(Panel_item item, int value, Event *event)
- {
-- skiptool_nomwin_v2_objects *ip = (skiptool_nomwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_nomwin_v2_objects *ip __attribute__ ((unused)) = (skiptool_nomwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-@@ -1910,7 +1922,7 @@
- void
- skiptool_base_window_about_button_notify_callback(Panel_item item, Event *event)
- {
-- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-+ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipd.conf.4 work.new/skip/man/skipd.conf.4
+--- skipsrc-1.0.orig/skip/man/skipd.conf.4 Fri Oct 25 13:12:57 1996
++++ work.new/skip/man/skipd.conf.4 Mon Mar 8 21:33:40 1999
+@@ -85,9 +85,4 @@
+ \fIskipd.conf\fP options may be set with the \fIskip_conf\fP command.
+ .SH FILES
+ .P
+-.SH Solaris 2.x systems:
+-/etc/opt/SUNWicg/skip/skipd.conf
+-.P
+-.SH Other systems:
+-.P
+-/etc/skip/skipd.conf
++@@PREFIX@@/etc/skip/skipd.conf
diff --git a/security/skip/files/patch-cj b/security/skip/files/patch-cj
index 91502b82bb53..4442c55a735a 100644
--- a/security/skip/files/patch-cj
+++ b/security/skip/files/patch-cj
@@ -1,13 +1,19 @@
-
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/include/skip_types.h skipsrc-1.0/skip/include/skip_types.h
---- skipsrc-1.0.orig/skip/include/skip_types.h Fri Oct 25 13:12:45 1996
-+++ skipsrc-1.0/skip/include/skip_types.h Sun Apr 12 15:29:53 1998
-@@ -142,6 +142,7 @@
- unsigned char flags; /* ACL info for this system */
- struct in_addr mask; /* network/host mask */
- struct in_addr tunnel_addr; /* tunneling address */
-+ unsigned long source; /* source address */
- } skip_param_t;
-
- /*
-
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipd_restart.1m work.new/skip/man/skipd_restart.1m
+--- skipsrc-1.0.orig/skip/man/skipd_restart.1m Fri Oct 25 13:12:57 1996
++++ work.new/skip/man/skipd_restart.1m Mon Mar 8 21:33:40 1999
+@@ -9,13 +9,6 @@
+ You must be root to run this command.
+ .SH FILES
+ .P
+-.SH Solaris 2.x systems:
+-/etc/opt/SUNWicg/skip/skipd.pid
++/var/run/skipd.pid
+ .br
+-/opt/SUNWicg/bin/skipd
+-.P
+-.SH Other systems:
+-.P
+-/etc/skip/skipd.pid
+-.br
+-/usr/skip/bin/skipd
++@@PREFIX@@/bin/skipd
diff --git a/security/skip/files/patch-ck b/security/skip/files/patch-ck
index 1a2154430e58..034015c38eaf 100644
--- a/security/skip/files/patch-ck
+++ b/security/skip/files/patch-ck
@@ -1,161 +1,18 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiphost/skiphost.c skipsrc-1.0/skip/tools/skiphost/skiphost.c
---- skipsrc-1.0.orig/skip/tools/skiphost/skiphost.c Fri Oct 25 13:13:03 1996
-+++ skipsrc-1.0/skip/tools/skiphost/skiphost.c Sun Apr 12 15:29:52 1998
-@@ -76,6 +76,7 @@
- static char *skip_version = NULL;
- static char *skip_mode = NULL;
- static char *tunnel = NULL;
-+static char *srcaddr = NULL;
-
- static int opt, opt_cpt;
- static int opt_action, opt_more;
-@@ -89,11 +90,14 @@
- static int opt_prt, opt_sh, opt_sel;
- static int opt_trs, opt_tunnel;
- static int opt_msk, opt_nomadic;
-+static int opt_source;
-
- boolean_t on_boot = B_FALSE;
-
- #define SKIP_HOST_MASK "255.255.255.255"
-
-+struct in_addr source_addr;
-+
- static void usage();
-
- /*
-@@ -218,6 +222,11 @@
- if (params->ip_addr.s_addr != params->tunnel_addr.s_addr) {
- printf(" -A %s", inet_ntoa(params->tunnel_addr));
- }
-+
-+ if(params->source != 0) {
-+ source_addr.s_addr = params->source;
-+ printf(" -f %s", inet_ntoa(source_addr));
-+ }
-
- switch (params->version) {
-
-@@ -376,6 +385,11 @@
- printf(" tunnel=%s", inet_ntoa(params->tunnel_addr));
- }
-
-+ if (params->source != 0) {
-+ source_addr.s_addr = params->source;
-+ printf(" source=%s", inet_ntoa(source_addr));
-+ }
-+
- switch (params->version) {
-
- case SKIP_NONE:
-@@ -907,12 +921,18 @@
- }
- }
-
-+ if(opt_source) {
-+ parms.source = inet_addr(srcaddr);
-+ } else {
-+ parms.source = 0;
-+ }
-+
- /*
- * Check if a cleartext host...
- */
- opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
-- opt_sel += opt_vers + opt_nomadic + opt_tunnel;
-+ opt_sel += opt_vers + opt_nomadic + opt_tunnel + opt_source;
-
- if (!opt_sel) {
- /*
-@@ -1531,6 +1551,7 @@
- "\t\t[-r <receiver NSID>] [-R <receiver key Id>]...\n"
- "\t\t[-s <sender NSID>] [-S <sender key Id>]...\n"
- "\t\t[-v <SKIP version>] [-A <tunnel address>] [-T]\n"
-+ "\t\t[-f <source address>]\n"
- "\t%s [-i <interface>] "
- "-x <hostname|IP address|\"*\"> [-M <mask>]...\n"
- "\t\t[-k <kij algorithm>] [-t <crypt algorithm>]...\n"
-@@ -1592,6 +1613,7 @@
- opt_trs = opt_msk = 0;
- opt_prt = opt_sh = opt_mode = 0;
- opt_nomadic = opt_tunnel = 0;
-+ opt_source = 0;
-
- ifname = skip_default_if();
-
-@@ -1614,7 +1636,7 @@
- */
- optind = 1;
- while ((opt = getopt(argc, argv,
-- "phuPVTa:d:o:x:i:s:r:S:R:k:t:m:c:v:M:A:")) != -1) {
-+ "phuPVTa:d:o:x:i:s:r:S:R:k:t:m:c:v:M:A:f:")) != -1) {
-
- switch (opt) {
-
-@@ -1761,7 +1783,10 @@
- SKIP_ONE(&opt_tunnel);
- tunnel = optarg;
- break;
--
-+ case 'f':
-+ SKIP_ONE(&opt_source);
-+ srcaddr = optarg;
-+ break;
- case 'h':
- default:
- usage();
-@@ -1890,7 +1915,7 @@
- opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
- opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
-- opt_sel += opt_tunnel;
-+ opt_sel += opt_tunnel + opt_source;
-
- if (opt_sel) {
- fprintf(stderr, "%s -u does not take options\n",
-@@ -1912,7 +1937,7 @@
- opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
- opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
-- opt_sel += opt_tunnel;
-+ opt_sel += opt_tunnel + opt_source;
-
- if (opt_sel) {
- fprintf(stderr, "%s -p does not take options\n",
-@@ -1941,7 +1966,7 @@
- opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
- opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
-- opt_sel += opt_tunnel;
-+ opt_sel += opt_tunnel + opt_source;
-
- if (opt_sel) {
- fprintf(stderr, "%s -P does not take options\n",
-@@ -1963,7 +1988,7 @@
- opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
- opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
-- opt_sel += opt_tunnel;
-+ opt_sel += opt_tunnel + opt_source;
-
- if (opt_sel) {
- fprintf(stderr, "%s -V does not take options\n",
-@@ -1985,7 +2010,7 @@
- opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
- opt_sel += opt_vers + opt_trs + opt_msk;
-- opt_sel += opt_tunnel;
-+ opt_sel += opt_tunnel + opt_source;
-
- if (opt_sel) {
- usage();
-@@ -2018,7 +2043,7 @@
- */
- opt_sel = opt_s_nsid + opt_s_keyid;
- opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
-- opt_sel += opt_mode + opt_trs + opt_tunnel;
-+ opt_sel += opt_mode + opt_trs + opt_tunnel + opt_source;
-
- if (opt_sel) {
- usage();
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipdb.1m work.new/skip/man/skipdb.1m
+--- skipsrc-1.0.orig/skip/man/skipdb.1m Fri Oct 25 13:12:57 1996
++++ work.new/skip/man/skipdb.1m Mon Mar 8 21:33:40 1999
+@@ -79,13 +79,9 @@
+ skipdb will always return 0 on Success and non-zero on error. An appropriate
+ error message will be written to standard error.
+ .SH FILES
+-.SS Solaris 1.x systems:
+ .P
+-/etc/skip/certdb
++@@PREFIX@@/etc/skip/certdb
+ .br
+-.SS Solaris 2.x systems:
+-.P
+-/etc/opt/SUNWicg/skip/certdb
+ .P
+ .SH SEE ALSO
+ .BR skiplocal(1m)
diff --git a/security/skip/files/patch-cl b/security/skip/files/patch-cl
index 1b0679a5a0d1..afb5853292ff 100644
--- a/security/skip/files/patch-cl
+++ b/security/skip/files/patch-cl
@@ -1,13 +1,39 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_if.h skipsrc-1.0/skip/freebsd/skip_if.h
---- skipsrc-1.0.orig/skip/freebsd/skip_if.h Fri Oct 25 20:12:43 1996
-+++ skipsrc-1.0/skip/freebsd/skip_if.h Mon Nov 16 22:55:25 1998
-@@ -104,7 +104,7 @@
- /*
- * returns TRUE if SKIP has processed this buffer
- */
--#define SKIP_DECRYPTED(m) ((m)->m_flags & M_EOR)
-+#define SKIP_DECRYPTED(m) ((m)->m_flags & M_PROTO1)
-
- /*
- * Macro to retrieve an ifnet
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_os.h skipsrc-1.0/skip/freebsd/skip_os.h
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skiphost.1m work.new/skip/man/skiphost.1m
+--- skipsrc-1.0.orig/skip/man/skiphost.1m Fri Oct 25 13:12:57 1996
++++ work.new/skip/man/skiphost.1m Mon Mar 8 21:33:38 1999
+@@ -42,6 +42,8 @@
+ .BI \-s " sender NSID " \-S " sender key ID"...
+ .if n .ti +8n
+ .BI \-v " SKIP version " \-A " tunnel address " \-T
++.if n .ti +8n
++.BI \-f " source IP address "
+ ]
+ .if n .ti +5n
+ [
+@@ -53,9 +55,13 @@
+ .if n .ti +8n
+ .BI \-r " receiver NSID " \-R " receiver key ID"...
+ .if n .ti +8n
++.BI \-f " source IP address "
++.if n .ti +8n
+ .BI \-s " sender NSID " \-S " sender key ID"...
+ .if n .ti +8n
+ .BI \-v " SKIP version " \-A " tunnel address " \-T
++.if n .ti +8n
++.BI \-f " source IP address "
+ ]
+ .SH DESCRIPTION
+ .B
+@@ -185,6 +191,12 @@
+ address in outgoing packets with the supplied value.
+ This permits hiding of network topology.
+ By default, the tunnel address is set to the destination address.
++.TP
++.BI \-f " source IP address"
++This option is used in tunneling mode to replace the source IP
++address in outgoing packets with the supplied value.
++This permits hiding of network topology.
++By default, the source address is not changed when the packet is encrypted.
+ .TP
+ .BI \-T
+ Encrypt or authenticate only the data part of the IP packet. By default,
diff --git a/security/skip/files/patch-cm b/security/skip/files/patch-cm
index 04a847bb6d01..fac6a91655fc 100644
--- a/security/skip/files/patch-cm
+++ b/security/skip/files/patch-cm
@@ -1,12 +1,17 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/hash/hash.h skipsrc-1.0/libdb/hash/hash.h
---- skipsrc-1.0.orig/libdb/hash/hash.h Fri Oct 25 13:12:21 1996
-+++ skipsrc-1.0/libdb/hash/hash.h Sun Nov 22 21:20:56 1998
-@@ -103,7 +103,7 @@
- BUFHEAD *cpage; /* Current page */
- int cbucket; /* Current bucket */
- int cndx; /* Index of next item on cpage */
-- int errno; /* Error Number -- for DBM
-+ int errnum; /* Error Number -- for DBM
- * compatability */
- int new_file; /* Indicates if fd is backing store
- * or no */
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skipif.1m work.new/skip/man/skipif.1m
+--- skipsrc-1.0.orig/skip/man/skipif.1m Fri Oct 25 13:12:58 1996
++++ work.new/skip/man/skipif.1m Mon Mar 8 21:33:40 1999
+@@ -104,12 +104,8 @@
+ skipif will advise so.
+ .SH FILES
+ .br
+-.SS Solaris 2.x systems:
+ .P
+-/etc/opt/SUNWicg/skip/acl.<interface>
+-.SS Other systems:
+-.P
+-/etc/skip/acl.<interface>
++@@PREFIX@@/etc/skip/acl.<interface>
+ .P
+ .SH SEE ALSO
+ skiphost(1M), skipstat(1M), skiptool(1M), ifconfig(1M)
diff --git a/security/skip/files/patch-cn b/security/skip/files/patch-cn
index 3c62dd2b4560..4c2b107677a8 100644
--- a/security/skip/files/patch-cn
+++ b/security/skip/files/patch-cn
@@ -1,58 +1,18 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/hash/hash.c skipsrc-1.0/libdb/hash/hash.c
---- skipsrc-1.0.orig/libdb/hash/hash.c Fri Oct 25 13:12:20 1996
-+++ skipsrc-1.0/libdb/hash/hash.c Sun Nov 22 21:21:29 1998
-@@ -505,7 +505,7 @@
- else
- if (wsize != sizeof(HASHHDR)) {
- errno = EFTYPE;
-- hashp->errno = errno;
-+ hashp->errnum = errno;
- return (-1);
- }
- for (i = 0; i < NCACHED; i++)
-@@ -536,7 +536,7 @@
-
- hashp = (HTAB *)dbp->internal;
- if (flag) {
-- hashp->errno = errno = EINVAL;
-+ hashp->errnum = errno = EINVAL;
- return (ERROR);
- }
- return (hash_access(hashp, HASH_GET, (DBT *)key, data));
-@@ -553,11 +553,11 @@
-
- hashp = (HTAB *)dbp->internal;
- if (flag && flag != R_NOOVERWRITE) {
-- hashp->errno = errno = EINVAL;
-+ hashp->errnum = errno = EINVAL;
- return (ERROR);
- }
- if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
-- hashp->errno = errno = EPERM;
-+ hashp->errnum = errno = EPERM;
- return (ERROR);
- }
- return (hash_access(hashp, flag == R_NOOVERWRITE ?
-@@ -574,11 +574,11 @@
-
- hashp = (HTAB *)dbp->internal;
- if (flag && flag != R_CURSOR) {
-- hashp->errno = errno = EINVAL;
-+ hashp->errnum = errno = EINVAL;
- return (ERROR);
- }
- if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
-- hashp->errno = errno = EPERM;
-+ hashp->errnum = errno = EPERM;
- return (ERROR);
- }
- return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
-@@ -729,7 +729,7 @@
-
- hashp = (HTAB *)dbp->internal;
- if (flag && flag != R_FIRST && flag != R_NEXT) {
-- hashp->errno = errno = EINVAL;
-+ hashp->errnum = errno = EINVAL;
- return (ERROR);
- }
- #ifdef HASH_STATISTICS
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skiplocal.1m work.new/skip/man/skiplocal.1m
+--- skipsrc-1.0.orig/skip/man/skiplocal.1m Fri Oct 25 13:12:58 1996
++++ work.new/skip/man/skiplocal.1m Mon Mar 8 21:33:40 1999
+@@ -171,13 +171,9 @@
+ \fBskipd_restart\fP in order for the changes to take effect.
+ .P
+ .SH FILES
+-.SS Solaris 1.x systems:
+ .P
+-/etc/skip/localids
++@@PREFIX@@/etc/skip/localids
+ .br
+-.SS Solaris 2.x systems:
+-.P
+-/etc/opt/SUNWicg/skip/localids
+ .P
+ .SH BUGS
+ skiplocal export does not work well for communicating with multiple keys.
diff --git a/security/skip/files/patch-co b/security/skip/files/patch-co
index bd7e4fc81be0..f82d4dae0ae9 100644
--- a/security/skip/files/patch-co
+++ b/security/skip/files/patch-co
@@ -1,21 +1,92 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/libdb/hash/ndbm.c skipsrc-1.0/libdb/hash/ndbm.c
---- skipsrc-1.0.orig/libdb/hash/ndbm.c Fri Oct 25 13:12:22 1996
-+++ skipsrc-1.0/libdb/hash/ndbm.c Sun Nov 22 21:32:01 1998
-@@ -180,7 +180,7 @@
- HTAB *hp;
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/lib/skip_freebsd.c work.new/skip/tools/lib/skip_freebsd.c
+--- skipsrc-1.0.orig/skip/tools/lib/skip_freebsd.c Fri Oct 25 13:13:02 1996
++++ work.new/skip/tools/lib/skip_freebsd.c Mon Mar 8 21:33:38 1999
+@@ -235,7 +235,7 @@
+ char *
+ skip_default_if()
+ {
+-#define SKIP_DEFAULT_IF "eth0" /* 3com 3c589 */
++#define SKIP_DEFAULT_IF "ed1"
+ static char devname[MAXPATHLEN];
+ char cbuf[sizeof(struct ifreq) * 16];
+ struct ifconf ifc;
+@@ -244,6 +244,7 @@
+ struct sockaddr_in *sa;
+ char hostname[MAXHOSTNAMELEN];
+ int s, n;
++ int goodness = 0;
- hp = (HTAB *)db->internal;
-- return (hp->errno);
-+ return (hp->errnum);
- }
+ strcpy(devname, SKIP_DEFAULT_IF);
- extern int
-@@ -190,7 +190,7 @@
- HTAB *hp;
+@@ -253,11 +254,13 @@
- hp = (HTAB *)db->internal;
-- hp->errno = 0;
-+ hp->errnum = 0;
- return (0);
- }
+ hp = _skip_gethostbyname(hostname);
++#if 0
+ if (hp == NULL) {
+ return(devname);
+ }
++#endif
+
+- if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
++ if ((s = socket(PF_INET, SOCK_RAW, 0)) < 0) {
+ return (devname);
+ }
+
+@@ -276,33 +279,37 @@
+ * just in case the primary can't be found.
+ *
+ */
+- end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
+- while (ifr < end) {
++ for (end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len),
++ ifr = ifc.ifc_req;
++ ifr < end;
++ ifr = (struct ifreq *)
++ ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len))
++ {
++ int newgoodness = 0;
+
+ strcpy(ifflags.ifr_name, ifr->ifr_name);
+ if (ioctl(s, SIOCGIFFLAGS, (char *) &ifflags) < 0) {
+- /*goto out;*/
++ continue;
+ }
+ if ((ifflags.ifr_flags & (IFF_LOOPBACK|IFF_UP|IFF_RUNNING)) ==
+ (IFF_UP|IFF_RUNNING)) {
+- /*
+- * note the interface name just in case
+- */
+- strcpy(devname, ifr->ifr_name);
+- /*
+- * but try to find an exact match
+- */
+- sa = (struct sockaddr_in *) &ifr->ifr_addr;
+- if (memcmp(hp->h_addr_list[0], (void *) &sa->sin_addr,
+- hp->h_length) == 0) {
+- break;
++ /* try to find an exact match */
++ if (hp && ifr->ifr_addr.sa_family == AF_INET) {
++ sa = (struct sockaddr_in *) &ifr->ifr_addr;
++ if (memcmp(hp->h_addr_list[0],
++ (void *) &sa->sin_addr, hp->h_length) == 0)
++ break;
++ }
++ /* try to prefer ethernet interfaces */
++ if (ifflags.ifr_flags & IFF_BROADCAST)
++ newgoodness += 1;
++ if (!(ifflags.ifr_flags & IFF_POINTOPOINT))
++ newgoodness += 1;
++ if (newgoodness > goodness) {
++ strcpy(devname, ifr->ifr_name);
++ goodness = newgoodness;
+ }
+ }
+- if(ifr->ifr_addr.sa_len) /* Dohw! */
+- ifr = (struct ifreq *) ((caddr_t) ifr +
+- ifr->ifr_addr.sa_len -
+- sizeof(struct sockaddr));
+- ifr++;
+ }
+ out:
+ (void) close(s);
diff --git a/security/skip/files/patch-cp b/security/skip/files/patch-cp
index 2335399a19ad..aa9dc8fe5974 100644
--- a/security/skip/files/patch-cp
+++ b/security/skip/files/patch-cp
@@ -1,12 +1,161 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/bnlib/Makefile.in skipsrc-1.0/bnlib/Makefile.in
---- skipsrc-1.0.orig/bnlib/Makefile.in Fri Oct 25 13:11:20 1996
-+++ skipsrc-1.0/bnlib/Makefile.in Sun Nov 22 21:46:35 1998
-@@ -61,7 +61,7 @@
- # code compiled with another cc, which doesn't know about -lgcc.
-
- lbn%.o: $(srcdir)/lbn%.c $(HDRS) config.h
-- $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ @GCCMAGIC1@ $< @GCCMAGIC2@
-+ $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ -c $<
-
- # Saying that every .o file depends on every header is overkill, but
- # it will suffice.
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiphost/skiphost.c work.new/skip/tools/skiphost/skiphost.c
+--- skipsrc-1.0.orig/skip/tools/skiphost/skiphost.c Fri Oct 25 13:13:03 1996
++++ work.new/skip/tools/skiphost/skiphost.c Mon Mar 8 21:33:39 1999
+@@ -76,6 +76,7 @@
+ static char *skip_version = NULL;
+ static char *skip_mode = NULL;
+ static char *tunnel = NULL;
++static char *srcaddr = NULL;
+
+ static int opt, opt_cpt;
+ static int opt_action, opt_more;
+@@ -89,11 +90,14 @@
+ static int opt_prt, opt_sh, opt_sel;
+ static int opt_trs, opt_tunnel;
+ static int opt_msk, opt_nomadic;
++static int opt_source;
+
+ boolean_t on_boot = B_FALSE;
+
+ #define SKIP_HOST_MASK "255.255.255.255"
+
++struct in_addr source_addr;
++
+ static void usage();
+
+ /*
+@@ -218,6 +222,11 @@
+ if (params->ip_addr.s_addr != params->tunnel_addr.s_addr) {
+ printf(" -A %s", inet_ntoa(params->tunnel_addr));
+ }
++
++ if(params->source != 0) {
++ source_addr.s_addr = params->source;
++ printf(" -f %s", inet_ntoa(source_addr));
++ }
+
+ switch (params->version) {
+
+@@ -376,6 +385,11 @@
+ printf(" tunnel=%s", inet_ntoa(params->tunnel_addr));
+ }
+
++ if (params->source != 0) {
++ source_addr.s_addr = params->source;
++ printf(" source=%s", inet_ntoa(source_addr));
++ }
++
+ switch (params->version) {
+
+ case SKIP_NONE:
+@@ -907,12 +921,18 @@
+ }
+ }
+
++ if(opt_source) {
++ parms.source = inet_addr(srcaddr);
++ } else {
++ parms.source = 0;
++ }
++
+ /*
+ * Check if a cleartext host...
+ */
+ opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+- opt_sel += opt_vers + opt_nomadic + opt_tunnel;
++ opt_sel += opt_vers + opt_nomadic + opt_tunnel + opt_source;
+
+ if (!opt_sel) {
+ /*
+@@ -1531,6 +1551,7 @@
+ "\t\t[-r <receiver NSID>] [-R <receiver key Id>]...\n"
+ "\t\t[-s <sender NSID>] [-S <sender key Id>]...\n"
+ "\t\t[-v <SKIP version>] [-A <tunnel address>] [-T]\n"
++ "\t\t[-f <source address>]\n"
+ "\t%s [-i <interface>] "
+ "-x <hostname|IP address|\"*\"> [-M <mask>]...\n"
+ "\t\t[-k <kij algorithm>] [-t <crypt algorithm>]...\n"
+@@ -1592,6 +1613,7 @@
+ opt_trs = opt_msk = 0;
+ opt_prt = opt_sh = opt_mode = 0;
+ opt_nomadic = opt_tunnel = 0;
++ opt_source = 0;
+
+ ifname = skip_default_if();
+
+@@ -1614,7 +1636,7 @@
+ */
+ optind = 1;
+ while ((opt = getopt(argc, argv,
+- "phuPVTa:d:o:x:i:s:r:S:R:k:t:m:c:v:M:A:")) != -1) {
++ "phuPVTa:d:o:x:i:s:r:S:R:k:t:m:c:v:M:A:f:")) != -1) {
+
+ switch (opt) {
+
+@@ -1761,7 +1783,10 @@
+ SKIP_ONE(&opt_tunnel);
+ tunnel = optarg;
+ break;
+-
++ case 'f':
++ SKIP_ONE(&opt_source);
++ srcaddr = optarg;
++ break;
+ case 'h':
+ default:
+ usage();
+@@ -1890,7 +1915,7 @@
+ opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+ opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
+- opt_sel += opt_tunnel;
++ opt_sel += opt_tunnel + opt_source;
+
+ if (opt_sel) {
+ fprintf(stderr, "%s -u does not take options\n",
+@@ -1912,7 +1937,7 @@
+ opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+ opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
+- opt_sel += opt_tunnel;
++ opt_sel += opt_tunnel + opt_source;
+
+ if (opt_sel) {
+ fprintf(stderr, "%s -p does not take options\n",
+@@ -1941,7 +1966,7 @@
+ opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+ opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
+- opt_sel += opt_tunnel;
++ opt_sel += opt_tunnel + opt_source;
+
+ if (opt_sel) {
+ fprintf(stderr, "%s -P does not take options\n",
+@@ -1963,7 +1988,7 @@
+ opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+ opt_sel += opt_mode + opt_vers + opt_trs + opt_msk;
+- opt_sel += opt_tunnel;
++ opt_sel += opt_tunnel + opt_source;
+
+ if (opt_sel) {
+ fprintf(stderr, "%s -V does not take options\n",
+@@ -1985,7 +2010,7 @@
+ opt_sel = opt_r_nsid + opt_s_nsid + opt_r_keyid + opt_s_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+ opt_sel += opt_vers + opt_trs + opt_msk;
+- opt_sel += opt_tunnel;
++ opt_sel += opt_tunnel + opt_source;
+
+ if (opt_sel) {
+ usage();
+@@ -2018,7 +2043,7 @@
+ */
+ opt_sel = opt_s_nsid + opt_s_keyid;
+ opt_sel += opt_kij + opt_crypt + opt_mac + opt_comp;
+- opt_sel += opt_mode + opt_trs + opt_tunnel;
++ opt_sel += opt_mode + opt_trs + opt_tunnel + opt_source;
+
+ if (opt_sel) {
+ usage();
diff --git a/security/skip/files/patch-cq b/security/skip/files/patch-cq
index b6c7fb9cc2b0..7ef80ce0a98a 100644
--- a/security/skip/files/patch-cq
+++ b/security/skip/files/patch-cq
@@ -1,39 +1,19 @@
-diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/man/skiphost.1m skipsrc-1.0/skip/man/skiphost.1m
---- skipsrc-1.0.orig/skip/man/skiphost.1m Fri Oct 25 13:12:57 1996
-+++ skipsrc-1.0/skip/man/skiphost.1m Thu Dec 10 19:31:54 1998
-@@ -42,6 +42,8 @@
- .BI \-s " sender NSID " \-S " sender key ID"...
- .if n .ti +8n
- .BI \-v " SKIP version " \-A " tunnel address " \-T
-+.if n .ti +8n
-+.BI \-f " source IP address "
- ]
- .if n .ti +5n
- [
-@@ -53,9 +55,13 @@
- .if n .ti +8n
- .BI \-r " receiver NSID " \-R " receiver key ID"...
- .if n .ti +8n
-+.BI \-f " source IP address "
-+.if n .ti +8n
- .BI \-s " sender NSID " \-S " sender key ID"...
- .if n .ti +8n
- .BI \-v " SKIP version " \-A " tunnel address " \-T
-+.if n .ti +8n
-+.BI \-f " source IP address "
- ]
- .SH DESCRIPTION
- .B
-@@ -185,6 +191,12 @@
- address in outgoing packets with the supplied value.
- This permits hiding of network topology.
- By default, the tunnel address is set to the destination address.
-+.TP
-+.BI \-f " source IP address"
-+This option is used in tunneling mode to replace the source IP
-+address in outgoing packets with the supplied value.
-+This permits hiding of network topology.
-+By default, the source address is not changed when the packet is encrypted.
- .TP
- .BI \-T
- Encrypt or authenticate only the data part of the IP packet. By default,
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/Makefile work.new/skip/tools/skiptool/Makefile
+--- skipsrc-1.0.orig/skip/tools/skiptool/Makefile Fri Oct 25 13:13:05 1996
++++ work.new/skip/tools/skiptool/Makefile Mon Mar 8 21:33:40 1999
+@@ -97,11 +97,15 @@
+
+ # Compiler flags.
+
++PREFIX?= @@PREFIX@@
++
+ DYNAMIC_PATH = $(DYNAMIC_$(OSNAME))
+ CFLAGS += $(U_DEBUG) $(OS) -DSKIP_RELEASE="\"$(SKIP_RELEASE)\""
+ SKIPINC_DIR = -I../lib -I$(COMM_INC) -I$(DRVDIR)
+ CPPFLAGS += -I$(WIN_HOME)/include -DMAIN $(SKIPINC_DIR)
+ CPPFLAGS += -I$(WIN_HOME)/include/pixrect
++CPPFLAGS += -I${PREFIX}/include
++CPPFLAGS += -I${PREFIX}/include/pixrect
+ LDFLAGS += -L$(WIN_HOME)/lib $(DYNAMIC_PATH)
+ LDLIBS += ../lib/$(SKIP_LIB) $(OS_LIB) -lxview -lolgx -lX11
+
diff --git a/security/skip/files/patch-cr b/security/skip/files/patch-cr
new file mode 100644
index 000000000000..670871b8d617
--- /dev/null
+++ b/security/skip/files/patch-cr
@@ -0,0 +1,12 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/es_glue.c work.new/skip/tools/skiptool/es_glue.c
+--- skipsrc-1.0.orig/skip/tools/skiptool/es_glue.c Fri Oct 25 13:13:05 1996
++++ work.new/skip/tools/skiptool/es_glue.c Mon Mar 8 21:33:39 1999
+@@ -1948,7 +1948,7 @@
+ void
+ stats(int which)
+ {
+- char *opt, *t, s[STRSZ], *argv[12];
++ char *opt = NULL, *t = NULL, s[STRSZ], *argv[12];
+ char ifstats[STRSZ], *optarg = NULL;
+
+ switch (which) {
diff --git a/security/skip/files/patch-cs b/security/skip/files/patch-cs
new file mode 100644
index 000000000000..51ed887cd852
--- /dev/null
+++ b/security/skip/files/patch-cs
@@ -0,0 +1,17 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/es_ras.c work.new/skip/tools/skiptool/es_ras.c
+--- skipsrc-1.0.orig/skip/tools/skiptool/es_ras.c Fri Oct 25 13:13:06 1996
++++ work.new/skip/tools/skiptool/es_ras.c Mon Mar 8 21:33:39 1999
+@@ -92,6 +92,13 @@
+ if (stat(path, &st) == 0) {
+ return (path);
+ }
++
++ strcpy(path, SKIP_DIR);
++ strcat(path, "/");
++ strcat(path, name);
++ if (stat(path, &st) == 0) {
++ return (path);
++ }
+ return (NULL);
+ }
+
diff --git a/security/skip/files/patch-ct b/security/skip/files/patch-ct
new file mode 100644
index 000000000000..3cd88e45c605
--- /dev/null
+++ b/security/skip/files/patch-ct
@@ -0,0 +1,378 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/tools/skiptool/skiptool_stubs.c work.new/skip/tools/skiptool/skiptool_stubs.c
+--- skipsrc-1.0.orig/skip/tools/skiptool/skiptool_stubs.c Fri Oct 25 13:13:10 1996
++++ work.new/skip/tools/skiptool/skiptool_stubs.c Mon Mar 8 21:33:39 1999
+@@ -68,6 +68,10 @@
+
+ #include "es_glue.h"
+
++#ifndef __GNUC__
++#define __attribute__ (x)
++#endif
++
+ /*
+ * Global object definitions.
+ */
+@@ -173,7 +177,7 @@
+ Menu_item
+ skiptool_menu_item0_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -206,7 +210,7 @@
+ void
+ skiptool_base_window_access_ctrl_notify_callback(Panel_item item, int value, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -231,7 +235,7 @@
+ void
+ skiptool_base_window_access_mode_notify_callback(Panel_item item, int value, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -261,7 +265,7 @@
+ void
+ skiptool_base_window_delete_button_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -280,7 +284,7 @@
+ void
+ skiptool_key_params_win_key_apply_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_key_params_win_objects *ip = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_key_params_win_objects *ip __attribute__ ((unused)) = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -302,7 +306,7 @@
+ void
+ skiptool_key_params_win_key_default_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_key_params_win_objects *ip = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_key_params_win_objects *ip __attribute__ ((unused)) = (skiptool_key_params_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -322,7 +326,7 @@
+ void
+ skiptool_required_win_required_add_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_required_win_objects *ip = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_required_win_objects *ip __attribute__ ((unused)) = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -341,7 +345,7 @@
+ void
+ skiptool_required_win_required_cancel_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_required_win_objects *ip = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_required_win_objects *ip __attribute__ ((unused)) = (skiptool_required_win_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -360,7 +364,7 @@
+ Menu_item
+ skiptool_help_menu_item1_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -405,7 +409,7 @@
+ Menu_item
+ skiptool_stats_menu_item0_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -438,7 +442,7 @@
+ Menu_item
+ skiptool_stats_menu_item1_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -471,7 +475,7 @@
+ Menu_item
+ skiptool_stats_menu_item2_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -504,7 +508,7 @@
+ Menu_item
+ skiptool_stats_menu_item3_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -537,7 +541,7 @@
+ void
+ skiptool_hostwin_v2_s_nsid_notify_callback(Panel_item item, int value, Event *event)
+ {
+- skiptool_hostwin_v2_objects *ip = (skiptool_hostwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_hostwin_v2_objects *ip __attribute__ ((unused)) = (skiptool_hostwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -572,6 +576,10 @@
+
+ case PANEL_LIST_OP_DELETE:
+ break;
++
++ case PANEL_LIST_OP_DESELECT:
++ case PANEL_LIST_OP_DBL_CLICK:
++ break;
+ }
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+
+@@ -601,6 +609,10 @@
+
+ case PANEL_LIST_OP_DELETE:
+ break;
++
++ case PANEL_LIST_OP_DESELECT:
++ case PANEL_LIST_OP_DBL_CLICK:
++ break;
+ }
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -616,7 +628,7 @@
+ void
+ skiptool_base_window_delete_xbutton_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+
+@@ -634,7 +646,7 @@
+ void
+ skiptool_base_window_to_x_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+
+@@ -652,7 +664,7 @@
+ void
+ skiptool_base_window_to_a_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+
+@@ -670,7 +682,7 @@
+ Menu_item
+ skiptool_stats_menu_item4_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -703,7 +715,7 @@
+ Menu_item
+ skiptool_stats_menu_item5_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -736,7 +748,7 @@
+ Menu_item
+ skiptool_menu_item1_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -772,7 +784,7 @@
+ Menu_item
+ skiptool_menu_item3_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -805,7 +817,7 @@
+ Menu_item
+ skiptool_menu_item4_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -838,7 +850,7 @@
+ Menu_item
+ skiptool_version_menu_item0_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -869,7 +881,7 @@
+ Menu_item
+ skiptool_version_menu_item1_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -900,7 +912,7 @@
+ Menu_item
+ skiptool_version_menu_item2_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -931,7 +943,7 @@
+ Menu_item
+ skiptool_version_menu_nom_item0_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -962,7 +974,7 @@
+ Menu_item
+ skiptool_version_menu_nom_item1_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -993,7 +1005,7 @@
+ Menu_item
+ skiptool_version_menu_net_item0_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1024,7 +1036,7 @@
+ Menu_item
+ skiptool_version_menu_net_item1_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1055,7 +1067,7 @@
+ Menu_item
+ skiptool_version_menu_net_item2_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1086,7 +1098,7 @@
+ Menu_item
+ skiptool_version_menu_net_item3_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1346,7 +1358,7 @@
+ Menu_item
+ skiptool_version_menu_item3_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1377,7 +1389,7 @@
+ Menu_item
+ skiptool_xversion_menu_nom_item0_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1410,7 +1422,7 @@
+ Menu_item
+ skiptool_xversion_menu_nom_item1_callback(Menu_item item, Menu_generate op)
+ {
+- Xv_opaque ip = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
++ Xv_opaque ip __attribute__ ((unused)) = (Xv_opaque) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1443,7 +1455,7 @@
+ Menu_item
+ skiptool_exc_menu_item0_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1476,7 +1488,7 @@
+ Menu_item
+ skiptool_exc_menu_item1_callback(Menu_item item, Menu_generate op)
+ {
+- skiptool_base_window_objects * ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects * ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ switch (op) {
+ case MENU_DISPLAY:
+@@ -1842,7 +1854,7 @@
+ void
+ skiptool_nomwin_v2_skip_mode_notify_callback(Panel_item item, int value, Event *event)
+ {
+- skiptool_nomwin_v2_objects *ip = (skiptool_nomwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_nomwin_v2_objects *ip __attribute__ ((unused)) = (skiptool_nomwin_v2_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+@@ -1910,7 +1922,7 @@
+ void
+ skiptool_base_window_about_button_notify_callback(Panel_item item, Event *event)
+ {
+- skiptool_base_window_objects *ip = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
++ skiptool_base_window_objects *ip __attribute__ ((unused)) = (skiptool_base_window_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
+
+ /* gxv_start_connections DO NOT EDIT THIS SECTION */
+
diff --git a/security/skip/files/skip.mtree b/security/skip/files/skip.mtree
index 8d3c0377fad6..463428e14f62 100644
--- a/security/skip/files/skip.mtree
+++ b/security/skip/files/skip.mtree
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: skip.mtree,v 1.2 1999/03/10 19:50:31 julian Exp $
/set type=dir uname=root gname=wheel mode=0755
.
@@ -8,7 +8,7 @@
..
lib
..
- lkm
+ modules
..
etc
rc.d
diff --git a/security/skip/pkg-plist b/security/skip/pkg-plist
index ce61d518da2d..af7a545e706f 100644
--- a/security/skip/pkg-plist
+++ b/security/skip/pkg-plist
@@ -41,4 +41,5 @@ share/doc/skip/usersguide.txt
share/doc/skip/usersguide.ps
share/doc/skip/usersguide.html
share/doc/skip/inet-95.ps
-lkm/skip.o
+modules/skip.ko
+@dirrm share/doc/skip
diff --git a/security/skip/scripts/pre-install b/security/skip/scripts/pre-install
index dac838f8ed37..07bf7fc277b7 100644
--- a/security/skip/scripts/pre-install
+++ b/security/skip/scripts/pre-install
@@ -16,10 +16,10 @@ Report ()
install_lkm_files ()
{
- LKM_FILES="drv/skip.o"
+ LKM_FILES="drv/skip.ko"
- Report "Installing kernel module in ${PREFIX}/lkm"
- ${BSD_INSTALL_DATA} ${LKM_FILES} ${PREFIX}/lkm
+ Report "Installing kernel KLD module in ${PREFIX}/modules"
+ ${BSD_INSTALL_DATA} ${LKM_FILES} ${PREFIX}/modules
}
install_etc_files ()