Home
last modified time | relevance | path

Searched refs:auth_data (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-2.7.6/components/esp_http_client/lib/
Dhttp_auth.c70 char *http_auth_digest(const char *username, const char *password, esp_http_auth_data_t *auth_data) in http_auth_digest() argument
79 auth_data->nonce == NULL || in http_auth_digest()
80 auth_data->uri == NULL || in http_auth_digest()
81 auth_data->realm == NULL) { in http_auth_digest()
94 if (md5_printf(ha1, "%s:%s:%s", username, auth_data->realm, password) <= 0) { in http_auth_digest()
98 ESP_LOGD(TAG, "%s %s %s %s\r\n", "Digest", username, auth_data->realm, password); in http_auth_digest()
99 if (strcasecmp(auth_data->algorithm, "md5-sess") == 0) { in http_auth_digest()
100 if (md5_printf(ha1, "%s:%s:%016llx", ha1, auth_data->nonce, auth_data->cnonce) <= 0) { in http_auth_digest()
104 if (md5_printf(ha2, "%s:%s", auth_data->method, auth_data->uri) <= 0) { in http_auth_digest()
109 if (auth_data->qop && strcasecmp(auth_data->qop, "auth-int") == 0) { in http_auth_digest()
[all …]
/hal_espressif-2.7.6/components/esp_http_client/
Desp_http_client.c103 esp_http_auth_data_t *auth_data; member
479 if (client->auth_data == NULL) { in _clear_auth_data()
483 free(client->auth_data->method); in _clear_auth_data()
484 free(client->auth_data->realm); in _clear_auth_data()
485 free(client->auth_data->algorithm); in _clear_auth_data()
486 free(client->auth_data->qop); in _clear_auth_data()
487 free(client->auth_data->nonce); in _clear_auth_data()
488 free(client->auth_data->opaque); in _clear_auth_data()
489 memset(client->auth_data, 0, sizeof(esp_http_auth_data_t)); in _clear_auth_data()
504 … } else if (client->connection_info.auth_type == HTTP_AUTH_TYPE_DIGEST && client->auth_data) { in esp_http_client_prepare()
[all …]
/hal_espressif-2.7.6/components/esp_http_client/lib/include/
Dhttp_auth.h46 char *http_auth_digest(const char *username, const char *password, esp_http_auth_data_t *auth_data);