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;
|
argc -= idx;
|
||||||
argv += idx;
|
argv += idx;
|
||||||
|
|
||||||
if (argc == 0)
|
if (argc == 0) {
|
||||||
usage(1);
|
ENGINE_load_builtin_engines();
|
||||||
|
engine = ENGINE_by_id("builtin");
|
||||||
engine = ENGINE_by_dso(argv[0], id_flag);
|
} else {
|
||||||
|
engine = ENGINE_by_dso(argv[0], id_flag);
|
||||||
|
}
|
||||||
if (engine == NULL)
|
if (engine == NULL)
|
||||||
errx(1, "ENGINE_by_dso failed");
|
errx(1, "ENGINE_by_dso failed");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user