summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--random/Makefile29
-rw-r--r--random/TODO11
-rw-r--r--random/gnupg-bithelp.h (renamed from gnupg-bithelp.h)0
-rw-r--r--random/gnupg-glue.h (renamed from gnupg-glue.h)0
-rw-r--r--random/gnupg-random.c (renamed from gnupg-random.c)0
-rw-r--r--random/gnupg-random.h (renamed from gnupg-random.h)0
-rw-r--r--random/gnupg-rmd.h (renamed from gnupg-rmd.h)0
-rw-r--r--random/gnupg-rmd160.c (renamed from gnupg-rmd160.c)0
-rw-r--r--random/random.c (renamed from random.c)0
-rw-r--r--random/random.h (renamed from random.h)0
10 files changed, 40 insertions, 0 deletions
diff --git a/random/Makefile b/random/Makefile
new file mode 100644
index 00000000..9b3a95dd
--- /dev/null
+++ b/random/Makefile
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 1994,95,96,97,99,2000,2001 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+dir := random
+makemode := server
+
+CFLAGS += -D__HURD__
+
+target = random
+SRCS = random.c gnupg-random.c gnupg-rmd160.c
+OBJS = $(SRCS:.c=.o) startup_notifyServer.o
+LCLHDRS = gnupg-random.h gnupg-rmd.h gnupg-bithelp.h random.h
+HURDLIBS = trivfs threads ports fshelp ihash shouldbeinlibc
+
+include ../Makeconf
diff --git a/random/TODO b/random/TODO
new file mode 100644
index 00000000..9cc57ab9
--- /dev/null
+++ b/random/TODO
@@ -0,0 +1,11 @@
+* read_poll uses random_poll until the pool is filled. This is ian
+ issue at first initialization, as this requries POOLSIZE good random (level 1 from
+ gather_random) even in level 0 and 1.
+ For now, the code is only applied to level 2. Eventually, readable_pool
+ should be fixed to return 0 if initialization is not done yet and not enough bytes
+ are available. Otherwise it enters an infinite loop.
+
+* Permissions?
+
+* Off by one error in gather_random/io_write? I can only get GATHERBUFSIZE - 1
+ bytes from it.
diff --git a/gnupg-bithelp.h b/random/gnupg-bithelp.h
index 188db168..188db168 100644
--- a/gnupg-bithelp.h
+++ b/random/gnupg-bithelp.h
diff --git a/gnupg-glue.h b/random/gnupg-glue.h
index cbf0a103..cbf0a103 100644
--- a/gnupg-glue.h
+++ b/random/gnupg-glue.h
diff --git a/gnupg-random.c b/random/gnupg-random.c
index 8f308621..8f308621 100644
--- a/gnupg-random.c
+++ b/random/gnupg-random.c
diff --git a/gnupg-random.h b/random/gnupg-random.h
index ee18febc..ee18febc 100644
--- a/gnupg-random.h
+++ b/random/gnupg-random.h
diff --git a/gnupg-rmd.h b/random/gnupg-rmd.h
index 2446fc7d..2446fc7d 100644
--- a/gnupg-rmd.h
+++ b/random/gnupg-rmd.h
diff --git a/gnupg-rmd160.c b/random/gnupg-rmd160.c
index 66107685..66107685 100644
--- a/gnupg-rmd160.c
+++ b/random/gnupg-rmd160.c
diff --git a/random.c b/random/random.c
index 0ae31f5f..0ae31f5f 100644
--- a/random.c
+++ b/random/random.c
diff --git a/random.h b/random/random.h
index a38a4177..a38a4177 100644
--- a/random.h
+++ b/random/random.h