Bell/cspot catchup - release

This commit is contained in:
philippe44
2023-07-25 22:28:19 -07:00
parent 4cd210838f
commit 8d4813ceb4
15 changed files with 34 additions and 44 deletions

View File

@@ -9,19 +9,6 @@
namespace bell::X509Bundle {
typedef struct crt_bundle_t {
const uint8_t** crts;
uint16_t num_certs;
size_t x509_crt_bundle_len;
} crt_bundle_t;
static crt_bundle_t s_crt_bundle;
static std::vector<uint8_t> bundleBytes;
static constexpr auto TAG = "X509Bundle";
static constexpr auto CRT_HEADER_OFFSET = 4;
static constexpr auto BUNDLE_HEADER_OFFSET = 2;
int crtCheckCertificate(mbedtls_x509_crt* child, const uint8_t* pub_key_buf,
size_t pub_key_len);
/* This callback is called for every certificate in the chain. If the chain