aboutsummaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-12-29 13:47:31 +0000
committerWerner Koch <[email protected]>1998-12-29 13:47:31 +0000
commit6e08b235cb73d3c8e83218a94f9a2d356f2709ac (patch)
treec5a0a706b32d530cb661a62ec9439109bce5a75c /cipher
parentSee ChangeLog: Wed Dec 23 17:12:24 CET 1998 Werner Koch (diff)
downloadgnupg-6e08b235cb73d3c8e83218a94f9a2d356f2709ac.tar.gz
gnupg-6e08b235cb73d3c8e83218a94f9a2d356f2709ac.zip
See ChangeLog: Tue Dec 29 14:41:47 CET 1998 Werner Koch
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/dynload.c4
-rw-r--r--cipher/random.c6
-rw-r--r--cipher/rndunix.c2
4 files changed, 14 insertions, 3 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 20abfc7be..edce2b07e 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+Tue Dec 29 14:41:47 CET 1998 Werner Koch <[email protected]>
+
+ * random.c: add unistd.h for getpid().
+ (RAND_MAX): Fallback value for Sun.
+
Wed Dec 23 17:12:24 CET 1998 Werner Koch <[email protected]>
* md.c (md_copy): Reset debug.
diff --git a/cipher/dynload.c b/cipher/dynload.c
index 220f91600..6b9263e18 100644
--- a/cipher/dynload.c
+++ b/cipher/dynload.c
@@ -126,7 +126,7 @@ register_cipher_extension( const char *mainpgm, const char *fname )
intex = NULL;
for(r = extensions; r; r = r->next ) {
if( !compare_filenames(r->name, el->name) ) {
- log_info("extension '%s' already registered\n", el->name );
+ log_info("extension `%s' already registered\n", el->name );
m_free(el);
return;
}
@@ -162,7 +162,7 @@ register_internal_cipher_extension(
/* check that it is not already registered */
for(r = extensions; r; r = r->next ) {
if( !compare_filenames(r->name, el->name) ) {
- log_info("extension '%s' already registered\n", el->name );
+ log_info("extension `%s' already registered\n", el->name );
m_free(el);
return;
}
diff --git a/cipher/random.c b/cipher/random.c
index d57cd07ce..6f8a20aa1 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -35,6 +35,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <unistd.h>
#ifdef HAVE_GETHRTIME
#include <sys/times.h>
#endif
@@ -53,6 +54,11 @@
#include "dynload.h"
+#ifndef RAND_MAX /* for SunOS */
+ #define RAND_MAX 32767
+#endif
+
+
#if SIZEOF_UNSIGNED_LONG == 8
#define ADD_VALUE 0xa5a5a5a5a5a5a5a5
#elif SIZEOF_UNSIGNED_LONG == 4
diff --git a/cipher/rndunix.c b/cipher/rndunix.c
index a4d3bdb56..a44d0950b 100644
--- a/cipher/rndunix.c
+++ b/cipher/rndunix.c
@@ -560,7 +560,7 @@ start_gatherer( int pipefd )
if( s ) {
dbgfp = (*s=='-' && !s[1])? stdout : fopen(s, "a");
if( !dbgfp )
- g10_log_info("can't open debug file '%s': %s\n",
+ g10_log_info("can't open debug file `%s': %s\n",
s, strerror(errno) );
else
fprintf(dbgfp,"\nSTART RNDUNIX DEBUG pid=%d\n", (int)getpid());