c89, thanks microsoft...

This commit is contained in:
Paul Kehrer 2014-02-20 22:50:12 -06:00
parent ea7416a993
commit 3d487a6f46

View file

@ -177,15 +177,16 @@ static RAND_METHOD osrandom_rand = {
/* Returns 1 if successfully added, 2 if engine has previously been added,
and 0 for error. */
int Cryptography_add_osrandom_engine(void) {
ENGINE *osrandom_engine = ENGINE_by_id(Cryptography_osrandom_engine_id);
if (osrandom_engine != NULL) {
ENGINE_free(osrandom_engine);
ENGINE *e;
e = ENGINE_by_id(Cryptography_osrandom_engine_id);
if (e != NULL) {
ENGINE_free(e);
return 2;
} else {
ERR_clear_error();
}
ENGINE *e = ENGINE_new();
e = ENGINE_new();
if (e == NULL) {
return 0;
}