Skip to content

Inconsistent data type for the length in functions send_ssl_data and get_ssl_receive vs read and write functions. #30

@ittacco

Description

@ittacco

The data type for the length is inconsistent and leads to malfunctions in case of write or read operation of blocks larger than 64K since size_t in ESP32 is 32 bits unsigned int.

int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, uint16_t len);
int get_ssl_receive(sslclient_context *ssl_client, uint8_t *data, int length);

size_t write(const uint8_t *buf, size_t size);
int read(uint8_t *buf, size_t size);

It should be fixed
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, size_t length);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions