Tuya Cert Manager include
更多...
#include "tuya_cloud_types.h"
#include "ty_cJSON.h"
浏览源代码.
|
enum | TY_TLS_EVENT_E { TY_TLS_CERT_EXPIRED
} |
|
Tuya Cert Manager include
- 作者
- fangw.nosp@m.eng..nosp@m.hu@tu.nosp@m.ya.c.nosp@m.om
- 版本
- 0.1
- 日期
- 2022-04-08
- 版权所有
- Copyright 2022 Tuya Inc. All Rights Reserved.
◆ CERT_PARSE_CB
typedef OPERATE_RET(* CERT_PARSE_CB) (VOID_T *ctx, UCHAR_T *cert, UINT_T cert_len) |
cert parse cb
- 参数
-
[in] | ctx | contex |
[in] | cert | ca cert |
[in] | cert_len | ca cert len |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_tls_event_cb
typedef VOID(* tuya_tls_event_cb) (TY_TLS_EVENT_E event, VOID *p_args) |
tls event cb
- 参数
-
[in] | event | event id |
[in] | p_args | cb args |
◆ http_iot_dns_get_root_ca()
OPERATE_RET http_iot_dns_get_root_ca |
( |
| ) |
|
◆ httpc_domain_certs_get()
OPERATE_RET httpc_domain_certs_get |
( |
OUT ty_cJSON ** |
result, |
|
|
IN CONST CHAR_T * |
url_msg |
|
) |
| |
cert get accroding one url
- 参数
-
[in] | result | cert result |
[in] | url_msg | url |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_cert_get_tls_event_cb()
get tls event cb
- 返回
- event cb
◆ tuya_cert_manager_deinit()
VOID tuya_cert_manager_deinit |
( |
| ) |
|
cert manager deinit
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_cert_manager_init()
OPERATE_RET tuya_cert_manager_init |
( |
| ) |
|
cert manager init
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_cert_manager_load()
OPERATE_RET tuya_cert_manager_load |
( |
CHAR_T * |
url, |
|
|
CERT_PARSE_CB |
cb, |
|
|
VOID_T * |
p_ctx |
|
) |
| |
cert load
- 参数
-
[in] | url | hostname |
[in] | cb | cert parse cb |
[in] | p_ctx | contex |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_cert_save_to_kv()
VOID tuya_cert_save_to_kv |
( |
ty_cJSON * |
result | ) |
|
◆ tuya_client_cert_get()
get client cert
- 返回
- const client_cert_info_t*
◆ tuya_client_cert_write()
OPERATE_RET tuya_client_cert_write |
( |
IN CONST BYTE_T * |
value, |
|
|
IN CONST UINT_T |
len |
|
) |
| |
root ca write
- 参数
-
[in] | value | CA value |
[in] | len | CA len |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_client_private_key_write()
OPERATE_RET tuya_client_private_key_write |
( |
IN CONST BYTE_T * |
value, |
|
|
IN CONST UINT_T |
len |
|
) |
| |
client private key write
- 参数
-
[in] | value | private key value |
[in] | len | private key len |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_client_psk_get()
get client psk
- 返回
- const client_psk_info_t*
◆ tuya_iot_get_third_cloud_ca()
VOID tuya_iot_get_third_cloud_ca |
( |
CHAR_T * |
p_url | ) |
|
according url get third cloud ca
- 参数
-
- 返回