summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuchika Gupta <ruchika.gupta@linaro.org>2021-01-12 12:25:37 +0530
committerJérôme Forissier <jerome@forissier.org>2021-01-15 09:07:09 +0100
commit355d722afcc2f593d3ba9cc09a3298cc39a5724a (patch)
tree3b747a70a8b2a66a84e5371018783992d1a5b937
parent5db0fef4eeaf6517fcb0b5be2735733d9bd55f51 (diff)
ta: pkcs11: Reduce the minimum pin length required
SoftHSM Unit test suite passes a 4 byte pin while initializing pin. Since current implementation restricts the minimum pin length to 10, C_InitPin() fails resulting in the testcases to be aborted. Reduce the minimum pin length requirement inorder to run the SoftHSM test suite. Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
-rw-r--r--ta/pkcs11/src/pkcs11_token.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ta/pkcs11/src/pkcs11_token.h b/ta/pkcs11/src/pkcs11_token.h
index 5cd333c2..3a243127 100644
--- a/ta/pkcs11/src/pkcs11_token.h
+++ b/ta/pkcs11/src/pkcs11_token.h
@@ -40,7 +40,7 @@ struct pkcs11_client;
#define PKCS11_MAX_USERS 2
#define PKCS11_TOKEN_PIN_SIZE_MAX 128
-#define PKCS11_TOKEN_PIN_SIZE_MIN 10
+#define PKCS11_TOKEN_PIN_SIZE_MIN 4
#define PKCS11_TOKEN_SO_PIN_COUNT_MAX 7
#define PKCS11_TOKEN_USER_PIN_COUNT_MAX 7