67 size_t cert_size,
const unsigned char *key,
86 const unsigned char *cert,
void oc_pki_set_security_profile(size_t device, oc_sp_types_t supported_profiles, oc_sp_types_t current_profile, int mfg_credid)
Set the Security Profile.
oc_sp_types_t
defined security profiles
@ OC_SP_BLACK
The Black Security Profile.
@ OC_SP_BASELINE
The Baseline Security Profile.
@ OC_SP_BLUE
The Blue Security Profile.
@ OC_SP_PURPLE
The Purple Security Profile.
int oc_pki_add_mfg_cert(size_t device, const unsigned char *cert, size_t cert_size, const unsigned char *key, size_t key_size)
Add the manufactures PKI identity certificate.
int oc_pki_add_mfg_trust_anchor(size_t device, const unsigned char *cert, size_t cert_size)
Add manufacture trust anchor CA.
int oc_pki_add_mfg_intermediate_cert(size_t device, int credid, const unsigned char *cert, size_t cert_size)
Add an intermediate manufacture CA certificate.
int oc_pki_add_trust_anchor(size_t device, const unsigned char *cert, size_t cert_size)
Add trust anchor CA.