summaryrefslogtreecommitdiffstats
path: root/fips/rand
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-04 17:03:35 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-04 17:03:35 +0000
commitf4bd65dae3dd2ac810573901d37b847e37820983 (patch)
treee2e6b608843ad60950e156b4dcfe9a76f3552b74 /fips/rand
parentac1ee8e877799cf44b558d445c7c54c7930f5bc3 (diff)
Set error code is additional data callback fails.
Diffstat (limited to 'fips/rand')
-rw-r--r--fips/rand/fips_drbg_rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fips/rand/fips_drbg_rand.c b/fips/rand/fips_drbg_rand.c
index 4e02fd9408..1863026bd5 100644
--- a/fips/rand/fips_drbg_rand.c
+++ b/fips/rand/fips_drbg_rand.c
@@ -65,7 +65,7 @@
/* Mapping of SP800-90 DRBGs to OpenSSL RAND_METHOD */
/* Since we only have one global PRNG used at any time in OpenSSL use a global
- * variable to store contexts.
+ * variable to store context.
*/
static DRBG_CTX ossl_dctx;
@@ -94,7 +94,7 @@ static int fips_drbg_bytes(unsigned char *out, int count)
adinlen = dctx->get_adin(dctx, &adin);
if (adinlen && !adin)
{
- /* ERROR */
+ FIPSerr(FIPS_F_FIPS_DRBG_BYTES, FIPS_R_ERROR_RETRIEVING_ADDITIONAL_INPUT);
goto err;
}
}