- 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:
okir 2003-01-03 13:26:58 +00:00
parent 3dc71272a5
commit 939d78a72d
1 changed files with 4 additions and 0 deletions

View File

@ -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;