Check return codes properly.
[openssl.git] / fips / fips_post.c
index a6d0cfeae674f09242a97e9872722fd210d7264e..392bd5543b2724a90f121d1e5ff32eefd0ca013a 100644 (file)
@@ -172,8 +172,12 @@ int FIPS_selftest(void)
                rv = 0;
        if (!FIPS_selftest_aes())
                rv = 0;
+       if (!FIPS_selftest_aes_ccm())
+               rv = 0;
        if (!FIPS_selftest_aes_gcm())
                rv = 0;
+       if (!FIPS_selftest_aes_xts())
+               rv = 0;
        if (!FIPS_selftest_des())
                rv = 0;
        if (!FIPS_selftest_rsa())
@@ -205,6 +209,7 @@ int fips_pkey_signature_test(int id, EVP_PKEY *pkey,
        int ret = 0;
        unsigned char *sig = NULL;
        unsigned int siglen;
+       __fips_constseg
        static const unsigned char str1[]="12345678901234567890";
        DSA_SIG *dsig = NULL;
        ECDSA_SIG *esig = NULL;