We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829e770 commit 6243890Copy full SHA for 6243890
osslsigncode.c
@@ -4141,9 +4141,11 @@ static ENGINE *engine_dynamic(GLOBAL_OPTIONS *options)
4141
ptr = strrchr(options->p11engine, '/');
4142
if (!ptr) /* no slash -> try backslash */
4143
ptr = strrchr(options->p11engine, '\\');
4144
- if (ptr) /* directory separator found */
+ if (ptr) { /* directory separator found */
4145
ptr++; /* skip it */
4146
- else /* directory separator not found */
+ if (!strncmp(ptr, "lib", 3))
4147
+ ptr += 3; /* skip the "lib" prefix */
4148
+ } else /* directory separator not found */
4149
ptr = options->p11engine;
4150
id = OPENSSL_strdup(ptr);
4151
ptr = strchr(id, '.');
0 commit comments