From 78949a9bcb4525a3941df3b6a313b3bdef60869b Mon Sep 17 00:00:00 2001 From: sth Date: Fri, 31 Oct 2003 07:48:35 +0000 Subject: [PATCH] Make the PIN for the 'onepin' option look like a user PIN instead of an SO PIN git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1582 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/pkcs15init/pkcs15.profile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/pkcs15init/pkcs15.profile b/src/pkcs15init/pkcs15.profile index 0f16d5d8..55b148fc 100644 --- a/src/pkcs15init/pkcs15.profile +++ b/src/pkcs15init/pkcs15.profile @@ -18,6 +18,11 @@ option default { protected = *=$SOPIN, READ=NONE; unprotected = *=NONE; so-pin-flags = local, initialized, needs-padding, soPin; + so-min-pin-length = 6; + so-pin-attempts = 2; + so-auth-id = FF; + so-puk-attempts = 4; + so-min-puk-length = 6; default-df-size = 256; } } @@ -29,6 +34,11 @@ option onepin { protected = *=$PIN, READ=NONE; unprotected = *=NONE; so-pin-flags = local, initialized, needs-padding; + so-min-pin-length = 4; + so-pin-attempts = 3; + so-auth-id = 1; + so-puk-attempts = 7; + so-min-puk-length = 4; } } @@ -50,14 +60,14 @@ PIN user-puk { attempts = 7; } PIN so-pin { - auth-id = FF; - attempts = 2; - min-length = 6; + auth-id = $so-auth-id; + attempts = $so-pin-attempts; + min-length = $so-min-pin-length; flags = $so-pin-flags; } PIN so-puk { - attempts = 4; - min-length = 6; + attempts = $so-puk-attempts; + min-length = $so-min-puk-length; } filesystem {