cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
Loading...
Searching...
No Matches
https_post.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-3.0-or-later
3 * Copyright (c) 2026 Cryptnox SA
4 */
5
15
16#ifndef HTTPS_POST_H
17#define HTTPS_POST_H
18
19#include <stdbool.h>
20#include <stddef.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
45bool https_post_json(const char *url, const char *body,
46 char *resp_buf, size_t resp_buf_size,
47 const char *user, const char *pass, const char *ca_pem);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* HTTPS_POST_H */
bool https_post_json(const char *url, const char *body, char *resp_buf, size_t resp_buf_size, const char *user, const char *pass, const char *ca_pem)
POST a JSON body over HTTPS and read the response.