[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNUnet-developers] Missing /dev/*random
From: |
Christian Grothoff |
Subject: |
Re: [GNUnet-developers] Missing /dev/*random |
Date: |
Thu, 20 Feb 2003 17:34:42 -0500 |
User-agent: |
KMail/1.5 |
On Thursday 20 February 2003 04:57 pm, N. Durner wrote:
> Hi,
>
> if /dev/*random is missing (because the devs were created using an old
> MAKEDEV), the GNUnet-log isn't very helpful ("FATAL: could not create
> hostkey").
> The attached patch adds an additional message to hostkey.c, that gives a
> hint what might be wrong and how to solve the problem under Linux.
Well, /dev/random missing may not be the only cause. I've commited a patch
that will query OpenSSL for the actual error.
Index: src/util/hostkey.c
===================================================================
RCS file: /home/cvs/GNUnet/GNUnet/src/util/hostkey.c,v
retrieving revision 1.97
diff -r1.97 hostkey.c
62c62,67
< return RSA_generate_key(HOSTKEY_LEN, 65535, NULL, 0);
---
> HOSTKEY hk = RSA_generate_key(HOSTKEY_LEN, 65535, NULL, 0);
> if (hk == NULL)
> LOG(LOG_ERROR,
> "ERROR: RSA_generate_key failed: %s\n",
> ERR_error_string(ERR_get_error(), NULL));
> return hk;
Thanks for pointing out the problem.
Christian