Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cope with old kame headers

  • Loading branch information...
commit 498091a9bdbd6d97d146a9406d6706a01f17f412 1 parent 0e92276
itojun authored
Showing with 24 additions and 1 deletion.
  1. +24 −1 kame/kame/racoon/pfkey.c
View
25 kame/kame/racoon/pfkey.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-/* YIPS @(#)$Id: pfkey.c,v 1.63 2000/07/15 16:08:01 itojun Exp $ */
+/* YIPS @(#)$Id: pfkey.c,v 1.64 2000/07/16 01:07:12 itojun Exp $ */
#define _PFKEY_C_
@@ -132,6 +132,29 @@ static int addnewsp __P((caddr_t *));
static const char *sadbsecas2str __P((struct sockaddr *, struct sockaddr *,
int, u_int32_t, int));
+/* cope with old kame headers - ugly */
+#ifndef SADB_X_AALG_MD5
+#define SADB_X_AALG_MD5 SADB_AALG_MD5
+#endif
+#ifndef SADB_X_AALG_SHA
+#define SADB_X_AALG_SHA SADB_AALG_SHA
+#endif
+#ifndef SADB_X_AALG_NULL
+#define SADB_X_AALG_NULL SADB_AALG_NULL
+#endif
+
+#ifndef SADB_X_EALG_BLOWFISHCBC
+#define SADB_X_EALG_BLOWFISHCBC SADB_EALG_BLOWFISHCBC
+#endif
+#ifndef SADB_X_EALG_CAST128CBC
+#define SADB_X_EALG_CAST128CBC SADB_EALG_CAST128CBC
+#endif
+#ifndef SADB_X_EALG_RC5CBC
+#ifdef SADB_EALG_RC5CBC
+#define SADB_X_EALG_RC5CBC SADB_EALG_RC5CBC
+#endif
+#endif
+
/*
* PF_KEY packet handler
* 0: success

0 comments on commit 498091a

Please sign in to comment.
Something went wrong with that request. Please try again.