Source-Changes-HG archive

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

[src/netbsd-1-6]: src/crypto/dist/kame/racoon Pull up revision 1.6 (requested...



details:   https://anonhg.NetBSD.org/src/rev/ce15ae1a77e9
branches:  netbsd-1-6
changeset: 530322:ce15ae1a77e9
user:      grant <grant%NetBSD.org@localhost>
date:      Mon Jun 16 21:51:09 2003 +0000

description:
Pull up revision 1.6 (requested by itojun in ticket #1270):

fix "round up to 8" code.  from kame

diffstat:

 crypto/dist/kame/racoon/crypto_openssl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 2c23fb56f88a -r ce15ae1a77e9 crypto/dist/kame/racoon/crypto_openssl.c
--- a/crypto/dist/kame/racoon/crypto_openssl.c  Mon Jun 16 21:49:51 2003 +0000
+++ b/crypto/dist/kame/racoon/crypto_openssl.c  Mon Jun 16 21:51:09 2003 +0000
@@ -1171,7 +1171,7 @@
                return 448;
        if (len < 40 || len > 448)
                return -1;
-       return len + 7 / 8;
+       return (len + 7) / 8;
 }
 
 #ifdef HAVE_OPENSSL_RC5_H
@@ -1236,7 +1236,7 @@
                return 128;
        if (len < 40 || len > 2040)
                return -1;
-       return len + 7 / 8;
+       return (len + 7) / 8;
 }
 #endif
 
@@ -1378,7 +1378,7 @@
                return 128;
        if (len < 40 || len > 128)
                return -1;
-       return len + 7 / 8;
+       return (len + 7) / 8;
 }
 
 /*



Home | Main Index | Thread Index | Old Index