master
h 18 lines 645 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef ACLK_OTP_H
4 #define ACLK_OTP_H
5
6 #include "database/rrd.h"
7
8 #include "https_client.h"
9 #include "aclk_util.h"
10
11 #if OPENSSL_VERSION_NUMBER >= OPENSSL_VERSION_300
12 https_client_resp_t aclk_get_mqtt_otp(EVP_PKEY *p_key, char **mqtt_id, char **mqtt_usr, char **mqtt_pass, url_t *target, bool *fallback_ipv4);
13 #else
14 https_client_resp_t aclk_get_mqtt_otp(RSA *p_key, char **mqtt_id, char **mqtt_usr, char **mqtt_pass, url_t *target, bool *fallback_ipv4);
15 #endif
16 https_client_resp_t aclk_get_env(aclk_env_t *env, const char *aclk_hostname, int aclk_port, bool *fallback_ipv4);
17
18 #endif /* ACLK_OTP_H */