mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
c89, thanks microsoft...
This commit is contained in:
parent
ea7416a993
commit
3d487a6f46
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue