mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-02 19:22:47 -05:00
@ -4141,9 +4141,11 @@ static ENGINE *engine_dynamic(GLOBAL_OPTIONS *options)
|
|||||||
ptr = strrchr(options->p11engine, '/');
|
ptr = strrchr(options->p11engine, '/');
|
||||||
if (!ptr) /* no slash -> try backslash */
|
if (!ptr) /* no slash -> try backslash */
|
||||||
ptr = strrchr(options->p11engine, '\\');
|
ptr = strrchr(options->p11engine, '\\');
|
||||||
if (ptr) /* directory separator found */
|
if (ptr) { /* directory separator found */
|
||||||
ptr++; /* skip it */
|
ptr++; /* skip it */
|
||||||
else /* directory separator not found */
|
if (!strncmp(ptr, "lib", 3))
|
||||||
|
ptr += 3; /* skip the "lib" prefix */
|
||||||
|
} else /* directory separator not found */
|
||||||
ptr = options->p11engine;
|
ptr = options->p11engine;
|
||||||
id = OPENSSL_strdup(ptr);
|
id = OPENSSL_strdup(ptr);
|
||||||
ptr = strchr(id, '.');
|
ptr = strchr(id, '.');
|
||||||
|
Reference in New Issue
Block a user