From 2cd3b8ba099b52a4364b2be22c0ca1118cec3693 Mon Sep 17 00:00:00 2001 From: liuhu Date: Mon, 26 May 2025 17:31:56 +0800 Subject: [PATCH] add pinLength Signed-off-by: liuhu Change-Id: I15481f613c824de39e12bfe38c165daf1b14bc33 --- pin_auth/v3_0/IAllInOneExecutor.idl | 5 +++-- pin_auth/v3_0/PinAuthTypes.idl | 10 +++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pin_auth/v3_0/IAllInOneExecutor.idl b/pin_auth/v3_0/IAllInOneExecutor.idl index f82972d1..d9158f25 100644 --- a/pin_auth/v3_0/IAllInOneExecutor.idl +++ b/pin_auth/v3_0/IAllInOneExecutor.idl @@ -111,16 +111,17 @@ interface IAllInOneExecutor { * @param scheduleId Indicates the schedule ID of enrollment. * @param authSubType Indicates the pin sub type. * @param data Indicates the pin data. + * @param data Indicates the pin length. * @param resultCode Indicates the result code. * * @return Returns 0 if the operation is successful. * @return Returns a non-zero value if the operation fails. * * @since 5.0 - * @version 1.0 + * @version 2.0 */ SetData([in] unsigned long scheduleId, [in] unsigned long authSubType, [in] unsigned char[] data, - [in] int resultCode); + [in] unsigned int pinLength, [in] int resultCode); /** * @brief Enrolls templates. * diff --git a/pin_auth/v3_0/PinAuthTypes.idl b/pin_auth/v3_0/PinAuthTypes.idl index 9e6c44df..2298071e 100644 --- a/pin_auth/v3_0/PinAuthTypes.idl +++ b/pin_auth/v3_0/PinAuthTypes.idl @@ -123,7 +123,7 @@ struct ExecutorInfo { * @brief Enumerates get Property types. * * @since 4.0 - * @version 2.0 + * @version 3.0 */ enum GetPropertyType : int { /**< Indicates that the property to get is auth sub type. */ @@ -133,14 +133,16 @@ enum GetPropertyType : int { /**< Indicates that the property to get is remain attempts. */ REMAIN_ATTEMPTS = 3, /**< Indicates that the property to get is lockout duration after next fail. */ - NEXT_FAIL_LOCKOUT_DURATION = 6 + NEXT_FAIL_LOCKOUT_DURATION = 6, + /**< Indicates that the property to get is credential length. */ + CREDENTIAL_LENGTH = 7 }; /** * @brief Indicates executor property. * * @since 4.0 - * @version 2.0 + * @version 3.0 */ struct Property { /**< Indicates auth sub type. */ @@ -151,6 +153,8 @@ struct Property { int remainAttempts; /**< Indicates next fail lockout duration. */ int nextFailLockoutDuration; + /**< Indicates credential length. */ + unsigned int credentialLength; }; /** -- Gitee