ZotBins Core
Loading...
Searching...
No Matches
Credentials.hpp
1#ifndef CREDENTIALS_HPP
2#define CREDENTIALS_HPP
3
4#ifdef HAS_AWS_CREDENTIALS
5// These are generated by CMakeLists.txt
6// https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/build-system.html#embedding-binary-data
7// AWS root CA certificate
8extern const uint8_t AWS_CA_CRT[] asm("_binary_ca_crt_start");
9// Device-local certificate
10extern const uint8_t AWS_CLIENT_CRT[] asm("_binary_client_crt_start");
11// Device-local private key
12extern const uint8_t AWS_CLIENT_KEY[] asm("_binary_client_key_start");
13// URL of AWS endpoint
14extern const uint8_t AWS_URL[] asm("_binary_aws_url_start");
15#else
16const uint8_t AWS_CA_CRT[] = "";
17// Device-local certificate
18const uint8_t AWS_CLIENT_CRT[] = "";
19// Device-local private key
20const uint8_t AWS_CLIENT_KEY[] = "";
21// URL of AWS endpoint
22const uint8_t AWS_URL[] = "";
23#endif /* HAS_AWS_CREDENTIALS */
24
25#endif