#define cGREEN "\033[1;32m"
#define cDGREEN "\033[0;32m"
#define cBLUE "\033[1;34m"
+#define cMAGENT "\033[1;35m"
#define cDBLUE "\033[0;34m"
#define cNORM "\033[m"
#define TEST_ASSERT(e) {if ((test = (e))) \
t->iv, t->iv_size, t->acpkm);
}
+ ENGINE_CIPHERS_PTR fn_c;
+ T(fn_c = ENGINE_get_ciphers(eng));
+ const int *nids;
+ int n, k;
+ n = fn_c(eng, NULL, &nids, 0);
+ for (k = 0; k < n; ++k) {
+ for (t = testcases; t->nid; t++)
+ if (t->nid == nids[k])
+ break;
+ if (!t->nid)
+ printf(cMAGENT "Cipher %s is untested!\n" cNORM, OBJ_nid2sn(nids[k]));
+ }
+
ENGINE_finish(eng);
ENGINE_free(eng);
#define cDGREEN "\033[0;32m"
#define cBLUE "\033[1;34m"
#define cDBLUE "\033[0;34m"
+#define cMAGENT "\033[1;35m"
#define cNORM "\033[m"
#define TEST_ASSERT(e) {if ((test = (e))) \
printf(cRED " Test FAILED\n" cNORM); \
ret |= do_synthetic_test(tv);
}
+ ENGINE_DIGESTS_PTR fn_c;
+ T(fn_c = ENGINE_get_digests(eng));
+ const int *nids;
+ int n, k;
+ n = fn_c(eng, NULL, &nids, 0);
+ for (k = 0; k < n; ++k) {
+ for (tv = testvecs; tv->nid; tv++)
+ if (tv->nid == nids[k])
+ break;
+ if (!tv->nid)
+ printf(cMAGENT "Digest %s is untested!\n" cNORM, OBJ_nid2sn(nids[k]));
+ }
+
ENGINE_finish(eng);
ENGINE_free(eng);