|
ESP SDK C API
|
Entities/Objects | |
| typedef struct EspCredentials | EspCredentials |
| enum ESP_CREDENTIALS_T |
Functions | |
| ESPAPICALL struct EspCredentials * | esp_credentials_create (ESP_CREDENTIALS_T type, struct EspError *error) |
| ESPAPICALL int32_t | esp_credentials_set_user (EspCredentials *credentials, const char *user, EspError *error) |
| ESPAPICALL int32_t | esp_credentials_set_password (EspCredentials *credentials, const char *password, EspError *error) |
| ESPAPICALL int32_t | esp_credentials_set_keyfile (EspCredentials *credentials, const char *keyfile, EspError *error) |
| ESPAPICALL int32_t | esp_credentials_encrypt_fields (EspCredentials *credentials, const int32_t encrypt, EspError *error) |
| ESPAPICALL int32_t | esp_credentials_free (EspCredentials *credentials, EspError *error) |
| ESPAPICALL struct EspCredentials* esp_credentials_create | ( | ESP_CREDENTIALS_T | type, |
| struct EspError * | error | ||
| ) | [read] |
Creates an EspCredentials object
| type | Type of credentials to create |
| ESPAPICALL int32_t esp_credentials_encrypt_fields | ( | EspCredentials * | credentials, |
| const int32_t | encrypt, | ||
| EspError * | error | ||
| ) |
Whether to encrypt fields in the authentication message for non SSL connections. For SSL connections this setting is ignored
| credentials | EspCredentials object to set the value for |
| encrypt | nonzero field values should be encrypted |
| ESPAPICALL int32_t esp_credentials_free | ( | EspCredentials * | credentials, |
| EspError * | error | ||
| ) |
Frees an EspCredentials object previously created with esp_credentials_create()
| credentials | EspCredentials to free |
| ESPAPICALL int32_t esp_credentials_set_keyfile | ( | EspCredentials * | credentials, |
| const char * | keyfile, | ||
| EspError * | error | ||
| ) |
Set the name of the file that contains a PEM encoded unencrypted private key. Currently only RSA keys are supported. The file is not read until authentication takes place, at which time an error may be generated.
| credentials | An ESP_CREDENTIALS_SERVER_RSA type EspCredentials object |
| keyfile | name of the file containing the private key to use |
| ESPAPICALL int32_t esp_credentials_set_password | ( | EspCredentials * | credentials, |
| const char * | password, | ||
| EspError * | error | ||
| ) |
Sets the password field for authentications that require it.
| credentials | An ESP_CREDENTIALS_USER_PASSWORD type EspCredentials object |
| password | password, shared secret, to set |
| ESPAPICALL int32_t esp_credentials_set_user | ( | EspCredentials * | credentials, |
| const char * | user, | ||
| EspError * | error | ||
| ) |
Sets the user or alias of the authentication scheme if one is required
| user | User name or alias |
1.7.5