Change send_ssl_data to use size_t instead of uint16_t
Fixes: https://github.com/espressif/arduino-esp32/issues/4960
This commit is contained in:
parent
93bcf5f250
commit
a299ddc99e
@ -290,7 +290,7 @@ int data_to_read(sslclient_context *ssl_client)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, uint16_t len)
|
int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, size_t len)
|
||||||
{
|
{
|
||||||
log_v("Writing HTTP request with %d bytes...", len); //for low level debug
|
log_v("Writing HTTP request with %d bytes...", len); //for low level debug
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
@ -32,7 +32,7 @@ void ssl_init(sslclient_context *ssl_client);
|
|||||||
int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t port, int timeout, const char *rootCABuff, const char *cli_cert, const char *cli_key, const char *pskIdent, const char *psKey, bool insecure);
|
int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t port, int timeout, const char *rootCABuff, const char *cli_cert, const char *cli_key, const char *pskIdent, const char *psKey, bool insecure);
|
||||||
void stop_ssl_socket(sslclient_context *ssl_client, const char *rootCABuff, const char *cli_cert, const char *cli_key);
|
void stop_ssl_socket(sslclient_context *ssl_client, const char *rootCABuff, const char *cli_cert, const char *cli_key);
|
||||||
int data_to_read(sslclient_context *ssl_client);
|
int data_to_read(sslclient_context *ssl_client);
|
||||||
int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, uint16_t len);
|
int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, size_t len);
|
||||||
int get_ssl_receive(sslclient_context *ssl_client, uint8_t *data, int length);
|
int get_ssl_receive(sslclient_context *ssl_client, uint8_t *data, int length);
|
||||||
bool verify_ssl_fingerprint(sslclient_context *ssl_client, const char* fp, const char* domain_name);
|
bool verify_ssl_fingerprint(sslclient_context *ssl_client, const char* fp, const char* domain_name);
|
||||||
bool verify_ssl_dn(sslclient_context *ssl_client, const char* domain_name);
|
bool verify_ssl_dn(sslclient_context *ssl_client, const char* domain_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user