mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2025-02-21 17:41:46 +00:00
add errcode and access type
Signed-off-by: ailu1 <jinyanhong1@huawei.com>
This commit is contained in:
parent
a62e386194
commit
32aaea8904
@ -398,7 +398,18 @@ enum OH_Huks_ErrCode {
|
||||
OH_HUKS_ERR_CODE_INTERNAL_ERROR = 12000012,
|
||||
/** The authentication credential does not exist. */
|
||||
OH_HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST = 12000013,
|
||||
|
||||
/**
|
||||
* The memory is not sufficient.
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
OH_HUKS_ERR_CODE_INSUFFICIENT_MEMORY = 12000014,
|
||||
/**
|
||||
* Failed to call service.
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
OH_HUKS_ERR_CODE_CALL_SERVICE_FAILED = 12000015,
|
||||
/**
|
||||
* Device password is required but not set.
|
||||
*
|
||||
@ -454,7 +465,13 @@ enum OH_Huks_AuthAccessType {
|
||||
/** The key is invalid after the password is cleared. */
|
||||
OH_HUKS_AUTH_ACCESS_INVALID_CLEAR_PASSWORD = 1 << 0,
|
||||
/** The key is invalid after a new biometric feature is enrolled. */
|
||||
OH_HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL = 1 << 1
|
||||
OH_HUKS_AUTH_ACCESS_INVALID_NEW_BIO_ENROLL = 1 << 1,
|
||||
/**
|
||||
* The key is always valid.
|
||||
*
|
||||
* @since 11
|
||||
*/
|
||||
OH_HUKS_AUTH_ACCESS_ALWAYS_VALID = 1 << 2,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user