@@ -44,8 +44,9 @@ using namespace chip::app::Clusters::DoorLock;
44
44
using namespace chip ::app::Clusters::DoorLock::Attributes;
45
45
using chip::Protocols::InteractionModel::Status;
46
46
47
- static constexpr uint8_t DOOR_LOCK_SCHEDULE_MAX_HOUR = 23 ;
48
- static constexpr uint8_t DOOR_LOCK_SCHEDULE_MAX_MINUTE = 59 ;
47
+ static constexpr uint8_t DOOR_LOCK_SCHEDULE_MAX_HOUR = 23 ;
48
+ static constexpr uint8_t DOOR_LOCK_SCHEDULE_MAX_MINUTE = 59 ;
49
+ static constexpr uint8_t DOOR_LOCK_ALIRO_CREDENTIAL_SIZE = 65 ;
49
50
50
51
static constexpr uint32_t DOOR_LOCK_MAX_LOCK_TIMEOUT_SEC = MAX_INT32U_VALUE / MILLISECOND_TICKS_PER_SECOND;
51
52
@@ -1556,6 +1557,11 @@ DlStatus DoorLockServer::credentialLengthWithinRange(chip::EndpointId endpointId
1556
1557
case CredentialTypeEnum::kFace :
1557
1558
statusMin = statusMax = emberAfPluginDoorLockGetFaceCredentialLengthConstraints (endpointId, minLen, maxLen);
1558
1559
break ;
1560
+ case CredentialTypeEnum::kAliroCredentialIssuerKey :
1561
+ case CredentialTypeEnum::kAliroEvictableEndpointKey :
1562
+ case CredentialTypeEnum::kAliroNonEvictableEndpointKey :
1563
+ minLen = maxLen = DOOR_LOCK_ALIRO_CREDENTIAL_SIZE;
1564
+ break ;
1559
1565
default :
1560
1566
return DlStatus::kFailure ;
1561
1567
}
@@ -2555,6 +2561,10 @@ bool DoorLockServer::credentialTypeSupported(chip::EndpointId endpointId, Creden
2555
2561
return SupportsFingers (endpointId);
2556
2562
case CredentialTypeEnum::kFace :
2557
2563
return SupportsFace (endpointId);
2564
+ case CredentialTypeEnum::kAliroEvictableEndpointKey :
2565
+ case CredentialTypeEnum::kAliroCredentialIssuerKey :
2566
+ case CredentialTypeEnum::kAliroNonEvictableEndpointKey :
2567
+ return SupportsAliroProvisioning (endpointId);
2558
2568
default :
2559
2569
return false ;
2560
2570
}
0 commit comments