Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec support camellia-cbc as ESP cipher



details:   https://anonhg.NetBSD.org/src/rev/fdf18ead09d9
branches:  trunk
changeset: 764815:fdf18ead09d9
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu May 05 17:48:29 2011 +0000

description:
support camellia-cbc as ESP cipher

diffstat:

 sys/netipsec/xform_esp.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r dc730b420e1b -r fdf18ead09d9 sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c  Thu May 05 17:46:48 2011 +0000
+++ b/sys/netipsec/xform_esp.c  Thu May 05 17:48:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_esp.c,v 1.31 2011/03/27 21:56:57 spz Exp $       */
+/*     $NetBSD: xform_esp.c,v 1.32 2011/05/05 17:48:29 drochner Exp $  */
 /*     $FreeBSD: src/sys/netipsec/xform_esp.c,v 1.2.2.1 2003/01/24 05:11:36 sam Exp $  */
 /*     $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
 
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.31 2011/03/27 21:56:57 spz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.32 2011/05/05 17:48:29 drochner Exp $");
 
 #include "opt_inet.h"
 #ifdef __FreeBSD__
@@ -128,6 +128,8 @@
                return &enc_xform_cast5;
        case SADB_X_EALG_SKIPJACK:
                return &enc_xform_skipjack;
+       case SADB_X_EALG_CAMELLIACBC:
+               return &enc_xform_camellia;
        case SADB_EALG_NULL:
                return &enc_xform_null;
        }
@@ -1049,6 +1051,7 @@
        MAXIV(enc_xform_blf);           /* SADB_X_EALG_BLOWFISHCBC */
        MAXIV(enc_xform_cast5);         /* SADB_X_EALG_CAST128CBC */
        MAXIV(enc_xform_skipjack);      /* SADB_X_EALG_SKIPJACK */
+       MAXIV(enc_xform_camellia);      /* SADB_X_EALG_CAMELLIACBC */
        MAXIV(enc_xform_null);          /* SADB_EALG_NULL */
 
        xform_register(&esp_xformsw);



Home | Main Index | Thread Index | Old Index