Set hardcoded default for profile_dir

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3624 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
alonbl 2009-01-16 21:27:46 +00:00
parent cdbd4c1193
commit 2b41afbb3f
2 changed files with 7 additions and 5 deletions

View File

@ -32,8 +32,9 @@ app default {
# PKCS#15 initialization / personalization # PKCS#15 initialization / personalization
# profiles directory for pkcs15-init. # profiles directory for pkcs15-init.
# Default: @pkgdatadir@
profile_dir = @pkgdatadir@; #
# profile_dir = @pkgdatadir@;
# What reader drivers to load at start-up # What reader drivers to load at start-up
# #

View File

@ -300,9 +300,10 @@ sc_profile_load(struct sc_profile *profile, const char *filename)
} }
if (!profile_dir) { if (!profile_dir) {
sc_error(ctx, "you need to set profile_dir in your config file."); profile_dir = SC_PKCS15_PROFILE_DIRECTORY;
return SC_ERROR_FILE_NOT_FOUND; }
}
sc_debug(ctx, "Using profile directory '%s'.", profile_dir);
#ifdef _WIN32 #ifdef _WIN32
snprintf(path, sizeof(path), "%s\\%s.%s", snprintf(path, sizeof(path), "%s\\%s.%s",