hcrypto/test_rand.c: Add w32crypto method
Also make it non-fatal to request a method that is unsupported. This makes it possible to only test methods that we are compiling.
This commit is contained in:
@@ -126,9 +126,13 @@ main(int argc, char **argv)
|
||||
#ifndef NO_RAND_EGD_METHOD
|
||||
else if (strcasecmp(rand_method, "egd") == 0)
|
||||
RAND_set_rand_method(RAND_egd_method());
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
else if (strcasecmp(rand_method, "w32crypto") == 0)
|
||||
RAND_set_rand_method(RAND_w32crypto_method());
|
||||
#endif
|
||||
else
|
||||
errx(1, "unknown method %s", rand_method);
|
||||
errx(0, "unknown method %s", rand_method);
|
||||
}
|
||||
|
||||
if (RAND_file_name(path, sizeof(path)) == NULL)
|
||||
|
Reference in New Issue
Block a user