Submit CSR to server

This commit is contained in:
2024-08-23 23:06:14 +02:00
parent 3b7e2f9a0c
commit d890b23670
4 changed files with 130 additions and 7 deletions

View File

@ -11,10 +11,19 @@ extern "C"
{
#endif
enum method
{
MethodGET = 0,
MethodPOST
};
typedef struct
{
const char *url;
char *root_ca;
const char *body;
const char *content_type;
enum method method;
} http_request_opts;
/**
@ -25,6 +34,13 @@ extern "C"
*/
char *http_client_exec(const http_request_opts *opts);
/**
* Escape URI string
*
* See protocol_example_utils.c of esp32-idf
*/
size_t http_client_escape_uri(unsigned char *dst, const unsigned char *src, size_t size);
#ifdef __cplusplus
}
#endif