DRBG Warning Fix

1. Some compilers will warn on unused constants. Removed the constant DRBG_ERROR which is unused and causing warnings on a particular build.
2. Renumbered the remaining internal return codes.
pull/1301/head
John Safranek 2018-01-04 12:15:15 -08:00
parent 9315d18901
commit 983aa97f94
1 changed files with 3 additions and 4 deletions

View File

@ -162,10 +162,9 @@ int wc_RNG_GenerateByte(WC_RNG* rng, byte* b)
/* Internal return codes */
#define DRBG_SUCCESS 0
#define DRBG_ERROR 1
#define DRBG_FAILURE 2
#define DRBG_NEED_RESEED 3
#define DRBG_CONT_FAILURE 4
#define DRBG_FAILURE 1
#define DRBG_NEED_RESEED 2
#define DRBG_CONT_FAILURE 3
/* RNG health states */
#define DRBG_NOT_INIT 0