pkcs15init profile: accept the minimal file-ids difference from GPK profile

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4030 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-02-15 17:47:20 +00:00
parent 22f9b2930e
commit 42d7d22841
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ template_sanity_check(struct state *cur, struct sc_profile *templ)
dlt = fi_id > ffi_id ? fi_id - ffi_id : ffi_id - fi_id;
if (strcmp(ffi->ident, fi->ident)) {
if (dlt > TEMPLATE_FILEID_MIN_DIFF)
if (dlt >= TEMPLATE_FILEID_MIN_DIFF)
continue;
parse_error(cur, "Template insane: file-ids should be substantially different");