Trident IoT Z-Wave SDK
Loading...
Searching...
No Matches
cc_user_credential_validation.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Silicon Laboratories Inc. <https://www.silabs.com/>
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
14
15#ifndef CC_USER_CREDENTIAL_VALIDATION_H
16#define CC_USER_CREDENTIAL_VALIDATION_H
17
18#include "CC_UserCredential.h"
19
24
36 const u3c_credential_t * const p_credential,
37 u3c_credential_metadata_t * p_existing_metadata
38 );
39
50
60 const u3c_credential_metadata_t * const p_metadata
61 );
62
71 uint16_t uuid
72 );
73
86 u3c_credential_t * p_credential,
87 RECEIVE_OPTIONS_TYPE_EX * p_rx_options
88 );
89
109
119bool validate_user_name_encoding(const uint8_t * p_name, uint8_t p_name_length, u3c_user_name_encoding p_name_encoding);
120
121#endif /* CC_USER_CREDENTIAL_VALIDATION_H */
Handler and API for Command Class User Credential.
bool validate_associated_uuid(uint16_t uuid)
bool validate_user_name_encoding(const uint8_t *p_name, uint8_t p_name_length, u3c_user_name_encoding p_name_encoding)
bool validate_credential_data(u3c_credential_t *p_credential, RECEIVE_OPTIONS_TYPE_EX *p_rx_options)
bool(* u3c_credential_type_validator_t)(u3c_credential_t *, RECEIVE_OPTIONS_TYPE_EX *)
Definition cc_user_credential_validation.h:23
bool validate_new_credential_metadata(const u3c_credential_metadata_t *const p_metadata)
bool find_existing_credential(const u3c_credential_t *const p_credential, u3c_credential_metadata_t *p_existing_metadata)
bool validate_admin_pin_code(u3c_admin_code_metadata_t *const data)
Validates that credential does not exist in the database, is not a duplicate of the admin code and co...
bool validate_new_credential_data(u3c_credential_t *p_credential, RECEIVE_OPTIONS_TYPE_EX *p_rx_options)
struct _RECEIVE_OPTIONS_TYPE_EX_ RECEIVE_OPTIONS_TYPE_EX
struct u3c_admin_code_metadata_t_ u3c_admin_code_metadata_t
enum u3c_user_name_encoding_ u3c_user_name_encoding
struct u3c_credential_t_ u3c_credential_t
struct u3c_credential_metadata_t_ u3c_credential_metadata_t