myeid: applied patch for MyEID card profile

provided by Tony (Aventra development), thanks.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4777 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-09-27 07:50:14 +00:00
parent 6ebd49397e
commit 517878d102
2 changed files with 19 additions and 19 deletions

View File

@ -80,7 +80,7 @@ filesystem {
DF MF { DF MF {
path = 3F00; path = 3F00;
type = DF; type = DF;
acl = CREATE=$SOPIN,DELETE=NONE; acl = CREATE=$PIN, DELETE=$SOPIN;
# This is the DIR file # This is the DIR file
EF DIR { EF DIR {
@ -92,13 +92,13 @@ filesystem {
DF PKCS15-AppDF { DF PKCS15-AppDF {
type = DF; type = DF;
file-id = 5015; file-id = 5015;
acl = DELETE=NONE, CREATE=$SOPIN; acl = DELETE=$PIN, CREATE=$PIN;
EF PKCS15-ODF { EF PKCS15-ODF {
file-id = 5031; file-id = 5031;
structure = transparent; structure = transparent;
size = $odf-size; size = $odf-size;
acl = READ=NONE, UPDATE=$SOPIN, DELETE=$SOPIN; acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN;
} }
EF PKCS15-TokenInfo { EF PKCS15-TokenInfo {
@ -125,67 +125,67 @@ filesystem {
file-id = 4402; file-id = 4402;
structure = transparent; structure = transparent;
size = $prkdf-size; size = $prkdf-size;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN; acl = *=NEVER, READ=NONE, UPDATE=$PIN, DELETE=$SOPIN;
} }
EF PKCS15-PuKDF { EF PKCS15-PuKDF {
file-id = 4403; file-id = 4403;
structure = transparent; structure = transparent;
size = $pukdf-size; size = $pukdf-size;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN; acl = *=NEVER, READ=NONE, UPDATE=$PIN, DELETE=$SOPIN;
} }
EF PKCS15-CDF { EF PKCS15-CDF {
file-id = 4404; file-id = 4404;
structure = transparent; structure = transparent;
size = $cdf-size; size = $cdf-size;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN; acl = *=NEVER, READ=NONE, UPDATE=$PIN, DELETE=$SOPIN;
} }
EF PKCS15-DODF { EF PKCS15-DODF {
file-id = 4405; file-id = 4405;
structure = transparent; structure = transparent;
size = $dodf-size; size = $dodf-size;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN; acl = *=NEVER, READ=NONE, UPDATE=$PIN, DELETE=$SOPIN;
} }
EF template-private-key { EF template-private-key {
type = internal-ef; type = internal-ef;
file-id = 4B01; file-id = 4B01;
acl = CRYPTO=$PIN, UPDATE=$PIN, DELETE=$SOPIN, GENERATE=$PIN; acl = CRYPTO=$PIN, UPDATE=$PIN, DELETE=$PIN, GENERATE=$PIN;
} }
EF template-public-key { EF template-public-key {
structure = transparent; structure = transparent;
file-id = 5501; file-id = 5501;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN, GENERATE=$PIN; acl = READ=NONE, UPDATE=$PIN, DELETE=$PIN, GENERATE=$PIN;
} }
EF template-certificate { EF template-certificate {
file-id = 4301; file-id = 4301;
structure = transparent; structure = transparent;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN; acl = READ=NONE, UPDATE=$PIN, DELETE=$PIN;
} }
template key-domain { template key-domain {
# This is a dummy entry - pkcs15-init insists that # This is a dummy entry - pkcs15-init insists that
# this is present # this is present
EF private-key { EF private-key {
file-id = 4B00; file-id = 4B01;
type = internal-ef; type = internal-ef;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN, GENERATE=$PIN; acl = READ=NONE, UPDATE=$PIN, DELETE=$PIN, GENERATE=$PIN;
} }
EF public-key { EF public-key {
file-id = 5500; file-id = 5501;
structure = transparent; structure = transparent;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN, GENERATE=$PIN; acl = READ=NONE, UPDATE=$PIN, DELETE=$PIN, GENERATE=$PIN;
} }
# Certificate template # Certificate template
EF certificate { EF certificate {
file-id = 4300; file-id = 4301;
structure = transparent; structure = transparent;
acl = READ=NONE, UPDATE=$PIN, DELETE=$SOPIN; acl = READ=NONE, UPDATE=$PIN, DELETE=$PIN;
} }
} }
} }

View File

@ -31,7 +31,7 @@
#include "pkcs15-init.h" #include "pkcs15-init.h"
#include "profile.h" #include "profile.h"
#define KEEP_AC_NONE_FOR_INIT_APPLET #undef KEEP_AC_NONE_FOR_INIT_APPLET
#define MYEID_MAX_PINS 14 #define MYEID_MAX_PINS 14