aclk_otp.h 535 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef ACLK_OTP_H
  3. #define ACLK_OTP_H
  4. #include "daemon/common.h"
  5. #include "https_client.h"
  6. #include "aclk_util.h"
  7. #if OPENSSL_VERSION_NUMBER >= OPENSSL_VERSION_300
  8. int aclk_get_mqtt_otp(EVP_PKEY *p_key, char **mqtt_id, char **mqtt_usr, char **mqtt_pass, url_t *target);
  9. #else
  10. int aclk_get_mqtt_otp(RSA *p_key, char **mqtt_id, char **mqtt_usr, char **mqtt_pass, url_t *target);
  11. #endif
  12. int aclk_get_env(aclk_env_t *env, const char *aclk_hostname, int aclk_port);
  13. #endif /* ACLK_OTP_H */