summaryrefslogtreecommitdiffstats
path: root/fips/rand
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-09 17:46:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-09 17:46:31 +0000
commit55e328f58064d7e66e0840bdcb35492824208686 (patch)
tree4a3d841a9d6474c3dbd7179a6b7b75b766038598 /fips/rand
parentf3823ddfcf2add3ebe1176412211d92e9b7df46d (diff)
Add error for health check failure.
Rebuild all FIPS error codes to clean out old obsolete codes.
Diffstat (limited to 'fips/rand')
-rw-r--r--fips/rand/fips_drbg_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fips/rand/fips_drbg_lib.c b/fips/rand/fips_drbg_lib.c
index 92488767ef..60c83240c0 100644
--- a/fips/rand/fips_drbg_lib.c
+++ b/fips/rand/fips_drbg_lib.c
@@ -91,7 +91,7 @@ int FIPS_drbg_init(DRBG_CTX *dctx, int type, unsigned int flags)
DRBG_CTX tctx;
if (!fips_drbg_kat(&tctx, type, flags | DRBG_FLAG_TEST))
{
- /*FIPSerr(FIPS_F_FIPS_DRBG_INIT, FIPS_R_SELFTEST_FAILURE);*/
+ FIPSerr(FIPS_F_FIPS_DRBG_INIT, FIPS_R_SELFTEST_FAILURE);
return 0;
}
}
@@ -426,7 +426,7 @@ int fips_drbg_cprng_test(DRBG_CTX *dctx, const unsigned char *out)
/* Check block is valid: should never happen */
if (dctx->lb_valid == 0)
{
- FIPSerr(FIPS_F_DRBG_CPRNG_TEST, FIPS_R_INTERNAL_ERROR);
+ FIPSerr(FIPS_F_FIPS_DRBG_CPRNG_TEST, FIPS_R_INTERNAL_ERROR);
fips_set_selftest_fail();
return 0;
}
@@ -435,7 +435,7 @@ int fips_drbg_cprng_test(DRBG_CTX *dctx, const unsigned char *out)
/* Check against last block: fail if match */
if (!memcmp(dctx->lb, out, dctx->blocklength))
{
- FIPSerr(FIPS_F_DRBG_CPRNG_TEST, FIPS_R_DRBG_STUCK);
+ FIPSerr(FIPS_F_FIPS_DRBG_CPRNG_TEST, FIPS_R_DRBG_STUCK);
fips_set_selftest_fail();
return 0;
}