aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-01-24 17:54:23 +0000
committerBen Laurie <ben@openssl.org>1999-01-24 17:54:23 +0000
commit41c62a8e568bf1023a01ea123463c71caca668dc (patch)
tree37fdbe8225ed980a92697e3c25f6fd71b498c96a /crypto/rand
parent834eeef995bb3783550d11186f9d649aaacd43ac (diff)
downloadopenssl-41c62a8e568bf1023a01ea123463c71caca668dc.tar.gz
Minor constification.
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/rand.h4
-rw-r--r--crypto/rand/randfile.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h
index f5edcb9a54..34ef90373e 100644
--- a/crypto/rand/rand.h
+++ b/crypto/rand/rand.h
@@ -83,8 +83,8 @@ RAND_METHOD *RAND_SSLeay(void);
void RAND_cleanup(void );
void RAND_bytes( unsigned char *buf,int num);
void RAND_seed( unsigned char *buf,int num);
-int RAND_load_file(char *file,long max_bytes);
-int RAND_write_file(char *file);
+int RAND_load_file(const char *file,long max_bytes);
+int RAND_write_file(const char *file);
char *RAND_file_name(char *file,int num);
#ifdef WINDOWS
void RAND_screen(void);
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index 4b38b2bf64..de7567bc46 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -70,7 +70,7 @@
/* #define RFILE ".rand" - defined in ../../e_os.h */
int RAND_load_file(file,bytes)
-char *file;
+const char *file;
long bytes;
{
MS_STATIC unsigned char buf[BUFSIZE];
@@ -87,7 +87,7 @@ long bytes;
if (i < 0) return(0);
if (bytes <= 0) return(ret);
- in=fopen(file,"br");
+ in=fopen(file,"rb");
if (in == NULL) goto err;
for (;;)
{
@@ -107,7 +107,7 @@ err:
}
int RAND_write_file(file)
-char *file;
+const char *file;
{
unsigned char buf[BUFSIZE];
int i,ret=0;