If there are no arguments, use the internal engine.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17476 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -98,10 +98,12 @@ main(int argc, char **argv)
|
||||
argc -= idx;
|
||||
argv += idx;
|
||||
|
||||
if (argc == 0)
|
||||
usage(1);
|
||||
|
||||
engine = ENGINE_by_dso(argv[0], id_flag);
|
||||
if (argc == 0) {
|
||||
ENGINE_load_builtin_engines();
|
||||
engine = ENGINE_by_id("builtin");
|
||||
} else {
|
||||
engine = ENGINE_by_dso(argv[0], id_flag);
|
||||
}
|
||||
if (engine == NULL)
|
||||
errx(1, "ENGINE_by_dso failed");
|
||||
|
||||
|
Reference in New Issue
Block a user