Skip to content

Commit 8f48438

Browse files
committed
Fix engine module path detection
1 parent 5ac11e9 commit 8f48438

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

osslsigncode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4290,11 +4290,11 @@ static int engine_load(GLOBAL_OPTIONS *options)
42904290
const char *id = options->p11engine ? options->p11engine : "pkcs11";
42914291
ENGINE *engine;
42924292

4293-
if (strchr(id, '.')) {
4294-
/* Treat strings with a dot as paths to dynamic engine modules */
4293+
if (strpbrk(id, "/\\") || id[0] == '.') {
4294+
/* Treat as a path to a dynamic engine module */
42954295
engine = engine_dynamic(id);
42964296
} else {
4297-
/* Treat strings without a dot as engine IDs */
4297+
/* Treat as an engine ID */
42984298
engine = ENGINE_by_id(id);
42994299
if (!engine)
43004300
fprintf(stderr, "Failed to find and load '%s' engine\n", id);

0 commit comments

Comments
 (0)