summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ipsp.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1997-11-04 09:11:18 +0000
committerNiels Provos <provos@cvs.openbsd.org>1997-11-04 09:11:18 +0000
commit99655e667eb6f6f401a446b7c40091b28014ae9b (patch)
tree5874363a52f49f43149aa8792a34d9f0bef8e63b /sys/netinet/ip_ipsp.h
parentb5f0a5904ec6fadc4a3b9c6135c788a2fc280740 (diff)
make it easier to add additional transforms. add blowfish and cast
encryption. some more info for kernfs/ipsec.
Diffstat (limited to 'sys/netinet/ip_ipsp.h')
-rw-r--r--sys/netinet/ip_ipsp.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h
index db931990557..c1c2be2256d 100644
--- a/sys/netinet/ip_ipsp.h
+++ b/sys/netinet/ip_ipsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.h,v 1.14 1997/07/27 23:30:37 niklas Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.15 1997/11/04 09:11:17 provos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
@@ -9,7 +9,11 @@
* Ported to OpenBSD and NetBSD, with additional transforms, in December 1996,
* by Angelos D. Keromytis, kermit@forthnet.gr.
*
- * Copyright (C) 1995, 1996, 1997 by John Ioannidis and Angelos D. Keromytis.
+ * Additional transforms and features in 1997 by Angelos D. Keromytis and
+ * Niels Provos.
+ *
+ * Copyright (C) 1995, 1996, 1997 by John Ioannidis, Angelos D. Keromytis
+ * and Niels Provos.
*
* Permission to use, copy, and modify this software without fee
* is hereby granted, provided that this entire notice is included in
@@ -99,6 +103,8 @@ struct tdb /* tunnel descriptor block */
u_int8_t tdb_sproto; /* IPsec protocol */
u_int16_t tdb_satype; /* Alignment */
u_int32_t tdb_epoch; /* Used by the kernfs interface */
+ u_int8_t *tdb_confname; /* Used by the kernfs interface */
+ u_int8_t *tdb_authname; /* Used by the kernfs interface */
};
#define TDB_HASHMOD 257
@@ -128,6 +134,8 @@ struct xformsw
/* Supported encryption algorithms */
#define ALG_ENC_DES 1
#define ALG_ENC_3DES 2
+#define ALG_ENC_BLF 3
+#define ALG_ENC_CAST 4
#define XFT_AUTH 0x0001
#define XFT_CONF 0x0100