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 Don't return NULL as an integer.



details:   https://anonhg.NetBSD.org/src/rev/e49b331311d8
branches:  trunk
changeset: 553779:e49b331311d8
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 03:03:39 2003 +0000

description:
Don't return NULL as an integer.

diffstat:

 crypto/dist/kame/racoon/crypto_openssl.c |  6 +++---
 crypto/dist/kame/racoon/isakmp_quick.c   |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r 4520a9bb4889 -r e49b331311d8 crypto/dist/kame/racoon/crypto_openssl.c
--- a/crypto/dist/kame/racoon/crypto_openssl.c  Tue Oct 21 03:01:44 2003 +0000
+++ b/crypto/dist/kame/racoon/crypto_openssl.c  Tue Oct 21 03:03:39 2003 +0000
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: crypto_openssl.c,v 1.11 2003/08/26 03:31:51 itojun Exp $");
+__RCSID("$NetBSD: crypto_openssl.c,v 1.12 2003/10/21 03:05:18 fvdl Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -893,7 +893,7 @@
        evp = d2i_PUBKEY(NULL, &bp, pubkey->l);
        if (evp == NULL)
 #ifndef EAYDEBUG
-               return NULL;
+               return 0;
 #endif
 
        len = RSA_size(evp->pkey.rsa);
@@ -1348,7 +1348,7 @@
        vchar_t *key;
 {
        if (key->l < 24)
-               return NULL;
+               return 0;
 
 #ifdef USE_NEW_DES_API
        return (DES_is_weak_key((void *)key->v) ||
diff -r 4520a9bb4889 -r e49b331311d8 crypto/dist/kame/racoon/isakmp_quick.c
--- a/crypto/dist/kame/racoon/isakmp_quick.c    Tue Oct 21 03:01:44 2003 +0000
+++ b/crypto/dist/kame/racoon/isakmp_quick.c    Tue Oct 21 03:03:39 2003 +0000
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: isakmp_quick.c,v 1.6 2003/07/12 09:37:10 itojun Exp $");
+__RCSID("$NetBSD: isakmp_quick.c,v 1.7 2003/10/21 03:03:39 fvdl Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -117,7 +117,7 @@
        iph2->msgid = isakmp_newmsgid2(iph2->ph1);
        iph2->ivm = oakley_newiv2(iph2->ph1, iph2->msgid);
        if (iph2->ivm == NULL)
-               return NULL;
+               return 0;
 
        iph2->status = PHASE2ST_GETSPISENT;
 



Home | Main Index | Thread Index | Old Index