Don't return NULL as an integer.

This commit is contained in:
fvdl 2003-10-21 03:03:39 +00:00
parent 0526a13bc6
commit 73d47a4f07
2 changed files with 5 additions and 5 deletions

View File

@ -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 @@ eay_rsa_verify(src, sig, pubkey)
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 @@ eay_3des_weakkey(key)
vchar_t *key;
{
if (key->l < 24)
return NULL;
return 0;
#ifdef USE_NEW_DES_API
return (DES_is_weak_key((void *)key->v) ||

View File

@ -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 @@ quick_i1prep(iph2, msg)
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;