(info): print status of random generator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19857 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1063,6 +1063,10 @@ info(void *opt, int argc, char **argv)
|
||||
if (m != NULL)
|
||||
printf("dh: %s\n", m->name);
|
||||
}
|
||||
{
|
||||
int ret = RAND_status();
|
||||
printf("rand: %s\n", ret == 1 ? "ok" : "not available");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user