Add ocspget

This commit is contained in:
Zhi Guan
2026-06-19 12:14:38 +08:00
parent 47c9fa8e4f
commit 3173fb45f3
9 changed files with 513 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ extern "C" {
int http_parse_uri(const char *uri, char host[128], int *port, char path[256]);
int http_parse_response(char *buf, size_t buflen, uint8_t **content, size_t *contentlen, size_t *left);
int http_get(const char *uri, uint8_t *buf, size_t *contentlen, size_t buflen);
int http_post(const char *uri, const char *content_type,
const uint8_t *req, size_t reqlen,
uint8_t *buf, size_t *contentlen, size_t buflen);
#ifdef __cplusplus