Function esp_idf_svc::sys::esp_crt_bundle_set
source ยท pub unsafe extern "C" fn esp_crt_bundle_set(
x509_bundle: *const u8,
bundle_size: usize,
) -> i32
Expand description
@brief Set the default certificate bundle used for verification
Overrides the default certificate bundle only in case of successful initialization. In most use cases the bundle should be set through menuconfig. The bundle needs to be sorted by subject name since binary search is used to find certificates.
@param[in] x509_bundle A pointer to the certificate bundle.
@param[in] bundle_size Size of the certificate bundle in bytes.
@return - ESP_OK if adding certificates was successful. - Other if an error occured or an action must be taken by the calling process.