Browse Source

fixed some stuff related to previuos cleanup

master
root 14 years ago
committed by Georg Hopp
parent
commit
17dd31f313
  1. 2
      mod_entropy.c
  2. 3
      mod_entropy_add_entropy.c
  3. 1
      mod_entropy_get_entropy_bits.c

2
mod_entropy.c

@ -42,7 +42,7 @@
#include <time.h>
int add_entropy(unsigned char *, size_t);
int add_entropy(const unsigned char *, size_t);
module AP_MODULE_DECLARE_DATA entropy_module;

3
mod_entropy_add_entropy.c

@ -24,12 +24,13 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <linux/random.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
int get_entropy_bits(unsigned char *, size_t);
int get_entropy_bits(const unsigned char *, size_t);
/**
* fill /dev/random with sha1 from current request

1
mod_entropy_get_entropy_bits.c

@ -20,6 +20,7 @@
*/
#include <math.h>
#include <sys/types.h>
#define min(x, y) ((x)<(y)?(x):(y))

Loading…
Cancel
Save