Reduce header interdependencies, initially in engine.h (the rest of the
changes are the fallout). As this could break source code that doesn't directly include headers for interfaces it uses, changes to recursive includes are covered by the OPENSSL_NO_DEPRECATED symbol. It's better to define this when building and using openssl, and then adapt code where necessary - this is how to stay current. However the mechanism exists for the lethargic.
This commit is contained in:
@@ -71,7 +71,10 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct rand_meth_st
|
||||
/* Already defined in ossl_typ.h */
|
||||
/* typedef struct rand_meth_st RAND_METHOD; */
|
||||
|
||||
struct rand_meth_st
|
||||
{
|
||||
void (*seed)(const void *buf, int num);
|
||||
int (*bytes)(unsigned char *buf, int num);
|
||||
@@ -79,7 +82,7 @@ typedef struct rand_meth_st
|
||||
void (*add)(const void *buf, int num, double entropy);
|
||||
int (*pseudorand)(unsigned char *buf, int num);
|
||||
int (*status)(void);
|
||||
} RAND_METHOD;
|
||||
};
|
||||
|
||||
#ifdef BN_DEBUG
|
||||
extern int rand_predictable;
|
||||
|
||||
Reference in New Issue
Block a user