Turn 'num' argument to RAND_file_name into a size_t (rather than an int).
This commit is contained in:
@@ -87,7 +87,7 @@ void RAND_seed(const void *buf,int num);
|
|||||||
void RAND_add(const void *buf,int num,double entropy);
|
void RAND_add(const void *buf,int num,double entropy);
|
||||||
int RAND_load_file(const char *file,long max_bytes);
|
int RAND_load_file(const char *file,long max_bytes);
|
||||||
int RAND_write_file(const char *file);
|
int RAND_write_file(const char *file);
|
||||||
const char *RAND_file_name(char *file,int num);
|
const char *RAND_file_name(char *file,size_t num);
|
||||||
int RAND_status(void);
|
int RAND_status(void);
|
||||||
int RAND_egd(const char *path);
|
int RAND_egd(const char *path);
|
||||||
int RAND_egd_bytes(const char *path,int bytes);
|
int RAND_egd_bytes(const char *path,int bytes);
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ err:
|
|||||||
return (rand_err ? -1 : ret);
|
return (rand_err ? -1 : ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *RAND_file_name(char *buf, int size)
|
const char *RAND_file_name(char *buf, size_t size)
|
||||||
{
|
{
|
||||||
char *s=NULL;
|
char *s=NULL;
|
||||||
char *ret=NULL;
|
char *ret=NULL;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ RAND_load_file, RAND_write_file, RAND_file_name - PRNG seed file
|
|||||||
|
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
|
|
||||||
const char *RAND_file_name(char *buf, int num);
|
const char *RAND_file_name(char *buf, size_t num);
|
||||||
|
|
||||||
int RAND_load_file(const char *filename, long max_bytes);
|
int RAND_load_file(const char *filename, long max_bytes);
|
||||||
|
|
||||||
|
|||||||
@@ -8,17 +8,17 @@ rand - pseudo-random number generator
|
|||||||
|
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
|
|
||||||
int RAND_bytes(unsigned char *buf,int num);
|
int RAND_bytes(unsigned char *buf, int num);
|
||||||
int RAND_pseudo_bytes(unsigned char *buf,int num);
|
int RAND_pseudo_bytes(unsigned char *buf, int num);
|
||||||
|
|
||||||
void RAND_seed(const void *buf,int num);
|
void RAND_seed(const void *buf, int num);
|
||||||
void RAND_add(const void *buf,int num,int entropy);
|
void RAND_add(const void *buf, int num, int entropy);
|
||||||
int RAND_status(void);
|
int RAND_status(void);
|
||||||
void RAND_screen(void);
|
void RAND_screen(void);
|
||||||
|
|
||||||
int RAND_load_file(const char *file,long max_bytes);
|
int RAND_load_file(const char *file, long max_bytes);
|
||||||
int RAND_write_file(const char *file);
|
int RAND_write_file(const char *file);
|
||||||
const char *RAND_file_name(char *file,int num);
|
const char *RAND_file_name(char *file, size_t num);
|
||||||
|
|
||||||
int RAND_egd(const char *path);
|
int RAND_egd(const char *path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user