Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/kame/racoon validate certs correctly. sync with...



details:   https://anonhg.NetBSD.org/src/rev/05ec413cdb8b
branches:  trunk
changeset: 513635:05ec413cdb8b
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Aug 06 08:17:40 2001 +0000

description:
validate certs correctly.  sync with kame

diffstat:

 crypto/dist/kame/racoon/oakley.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9a2921e97005 -r 05ec413cdb8b crypto/dist/kame/racoon/oakley.c
--- a/crypto/dist/kame/racoon/oakley.c  Mon Aug 06 07:59:39 2001 +0000
+++ b/crypto/dist/kame/racoon/oakley.c  Mon Aug 06 08:17:40 2001 +0000
@@ -1,4 +1,4 @@
-/*     $KAME: oakley.c,v 1.86 2001/07/17 05:02:50 sakane Exp $ */
+/*     $KAME: oakley.c,v 1.87 2001/08/06 08:13:43 sakane Exp $ */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1283,7 +1283,8 @@
                }
 
                /* compare ID payload and certificate name */
-               if (iph1->rmconf->verify_cert && oakley_check_certid(iph1))
+               if (iph1->rmconf->verify_cert &&
+                   (error = oakley_check_certid(iph1)) != 0)
                        return error;
 
                /* verify certificate */



Home | Main Index | Thread Index | Old Index