BALTECH Docs |
C API for BALTECH SDK
|
Implements the PKI security layer. More...
#include "protocol.h"
Go to the source code of this file.
Functions | |
BRP_LIB brp_protocol | brp_create_pki (int security_level, brp_buf host_cert_chain, size_t host_cert_chain_len, brp_buf dev_ca_cert_chain, size_t dev_ca_cert_chain_len, brp_buf private_key, size_t private_key_len, brp_time session_timeout) |
Creates a new PKI protocol layer. More... | |
BRP_LIB brp_errcode | brp_append_host_certs (brp_protocol protocol, brp_buf host_cert_chain, size_t host_cert_chain_len) |
Adds certificate(s) to the host certificate chain. More... | |
BRP_LIB brp_errcode | brp_append_dev_ca_certs (brp_protocol protocol, brp_buf dev_ca_cert_chain, size_t dev_ca_cert_chain_len) |
Adds certificate(s) to the devices CA certificate chain. More... | |
BRP_LIB brp_errcode | brp_pki_save_session (brp_protocol protocol, brp_buf persistent_buf, size_t peristent_buf_size, size_t *persistent_buf_actlen) |
This command stores the current PKI session state in a persistent storage for being continued later using brp_pki_restore_session(). More... | |
BRP_LIB size_t | brp_pki_get_session_buf_size (brp_protocol protocol) |
Returns the size of the buffer required to store the session state using brp_pki_save_session(). More... | |
BRP_LIB brp_errcode | brp_pki_restore_session (brp_protocol protocol, brp_buf persistent_buf, size_t persistent_buf_size) |
This command reloads the current PKI session that was stored by brp_pki_save_session(). More... | |
BRP_LIB brp_errcode | brp_pki_get_dev_cert (brp_protocol protocol, brp_buf dev_cert_buf, size_t dev_cert_buf_size, size_t *dev_cert_len) |
This command retrieves the certificate of the device which it created a PKI connection to. More... | |
Implements the PKI security layer.
Definition in file pki_protocol.h.