This module contains WINC3400 Host MCU Provisioning implementation.
Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
Functions | |
char * | construct_http_response (int cid, char *req, int16_t req_sz, int16_t *rsp_sz, wifiProvisionParams *provInfo) |
static char * | find_req_name (char *req, char *name) |
uint16_t | get_content_length (char *req) |
static char * | get_resp_page (void) |
static uint16_t | get_tls_cert_value (char *buf, const char *tok, uint8_t *value, unsigned int max_sz, const char *term) |
static unsigned int | get_token_value (const char *buf, const char *tok, uint8_t *value, const uint16_t max_sz, const char term) |
static char * | not_found_html_page (char *req) |
static char * | post_main_page (char *req, wifiProvisionParams *provInfo) |
Variables | |
static uint16_t | content_length = 0 |
static uint16_t | content_recv_sz =0 |
static uint8_t | http_data_pending_flag = 0 |
static char | not_found_html [] |
char * | pHttpData |
char * | pHttpDataNext |
static const char | resp_page_html [] |
char* construct_http_response | ( | int | cid, |
char * | req, | ||
int16_t | req_sz, | ||
int16_t * | rsp_sz, | ||
wifiProvisionParams * | provInfo | ||
) |
Referenced by html_handler().
|
static |
Referenced by construct_http_response().
uint16_t get_content_length | ( | char * | req | ) |
Referenced by construct_http_response().
|
static |
References resp_page_html.
Referenced by construct_http_response(), and post_main_page().
|
static |
References m2m_memcpy().
Referenced by post_main_page().
|
static |
Referenced by get_content_length(), and post_main_page().
|
static |
References not_found_html.
Referenced by construct_http_response().
|
static |
References tstr1xAuthTLSCredentials::au8Certificate, tstr1xAuthTLSCredentials::au8KeyBuff, tstr1xAuthCredentials::au8Passwd, tstrM2MProvisionInfo::au8Password, tstrM2MProvisionInfo::au8SSID, tstr1xAuthTLSCredentials::au8UserName, tstr1xAuthCredentials::au8UserName, base64decode(), CERT_BUFFER_SIZE, CERT_FOOTER, decodeLength(), get_resp_page(), get_tls_cert_value(), get_token_value(), wifiProvisionParams::httpMsChapv2Params, wifiProvisionParams::httpProvParams, wifiProvisionParams::httpTLSParams, KEY_BUFFER_SIZE, KEY_FOOTER, m2m_memset(), M2M_WIFI_SEC_802_1X, modulus, MSCHAPV2, tstrAuth1xTls::pu8Certificate, tstrAuth1xTls::pu8PrivateKey_Exp, tstrAuth1xTls::pu8PrivateKey_Mod, tstrAuth1xTls::pu8UserName, wifiProvisionParams::sec_method, TLS, tlsCredentials, tstrAuth1xTls::u16CertificateLen, tstrAuth1xTls::u16PrivateKeyLen, tstrM2MProvisionInfo::u8SecType, WIFI_PASSPHRASE_LEN, and WIFI_SSID_LEN.
Referenced by construct_http_response().
|
static |
Referenced by construct_http_response().
|
static |
Referenced by construct_http_response().
|
static |
Referenced by construct_http_response().
|
static |
Referenced by not_found_html_page().
char* pHttpData |
Referenced by construct_http_response().
char * pHttpDataNext |
Referenced by construct_http_response().
|
static |
Referenced by get_resp_page().