- allow hard-coded config options
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@820 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
3dc71272a5
commit
939d78a72d
|
@ -328,6 +328,10 @@ void process_config_file(struct sc_context *ctx, struct _sc_ctx_options *opts)
|
|||
if (ctx->conf == NULL)
|
||||
return;
|
||||
r = scconf_parse(ctx->conf);
|
||||
#ifdef OPENSC_CONFIG_STRING
|
||||
if (r < 1)
|
||||
r = scconf_parse_string(ctx->conf, OPENSC_CONFIG_STRING);
|
||||
#endif
|
||||
if (r < 1) {
|
||||
scconf_free(ctx->conf);
|
||||
ctx->conf = NULL;
|
||||
|
|
Loading…
Reference in New Issue