]>
git.ipfire.org Git - thirdparty/rng-tools.git/blob - rngd.h
2 * rngd.h -- rngd globals
4 * Copyright (C) 2001 Philipp Rumpf
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
26 #include "rng-tools-config.h"
37 MAX_RNG_FAILURES
= 25,
38 RNG_OK_CREDIT
= 1000, /* ~1:1250 false positives */
41 /* Command line arguments and processing */
55 extern struct arguments
*arguments
;
57 /* structures to store rng information */
65 int (*xread
) (void *buf
, size_t size
, struct rng
*ent_src
);
71 /* Background/daemon mode */
72 extern bool am_daemon
; /* True if we went daemon */
78 #define message(priority,fmt,args...) do { \
80 syslog((priority), fmt, ##args); \
82 fprintf(stderr, fmt, ##args); \
83 fprintf(stderr, "\n"); \
87 extern void src_list_add(struct rng
*ent_src
);
88 extern int write_pid_file(const char *pid_fn
);