along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: tincd.c,v 1.10.4.19 2000/10/29 09:19:27 guus Exp $
+ $Id: tincd.c,v 1.10.4.21 2000/10/29 22:55:15 guus Exp $
*/
#include "config.h"
#include <signal.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
+#include <openssl/err.h>
#include <string.h>
#ifdef HAVE_SYS_IOCTL_H
{
RSA *rsa_key;
- fprintf(stderr, _("Seeding the PRNG: please press some keys or move\nthe mouse if this program seems to have halted...\n"));
- RAND_load_file("/dev/random", 1024); /* OpenSSL PRNG state apparently uses 1024 bytes, but it seems pretty sufficient anyway :) */
-
fprintf(stderr, _("Generating %d bits keys:\n"), bits);
rsa_key = RSA_generate_key(bits, 0xFFFF, indicator, NULL);
if(!rsa_key)
make_names();
+ /* Slllluuuuuuurrrrp! */
+
+ RAND_load_file("/dev/urandom", 1024);
+
if(generate_keys)
exit(keygen(generate_keys));
if(detach())
exit(0);
-/* FIXME: wt* is this suppose to do?
- if(security_init())
- return 1;
-*/
+ if(debug_lvl >= DEBUG_ERROR)
+ ERR_load_crypto_strings();
+
for(;;)
{
if(!setup_network_connections())