Skip to content

Allow setting fragment length (GIT8266O-264) #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/openssl/ssl_compat-1.0.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ typedef struct ssl_ctx SSL_CTX;

#define SSL_get_verify_result ssl_get_verify_result
#define SSL_set_fd ssl_set_fd
#define SSL_set_fragment ssl_fragment_length_negotiation

#define SSL_CTX_set_option ssl_ctx_set_option

Expand Down
3 changes: 1 addition & 2 deletions third_party/openssl/mbedtls_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct mbed_ssl
/*******************************************************************************/
/*******************************************************************************/

unsigned int max_content_len;
unsigned int max_content_len = 2048;

/*******************************************************************************/
/*******************************************************************************/
Expand Down Expand Up @@ -104,7 +104,6 @@ LOCAL int mbed_ssl_init(struct mbed_ssl *mbed_ssl, struct ssl_ctx *ssl_ctx)

mbed_ssl->ssl_ctx = ssl_ctx;
SSL_MUTEX_INIT(&ssl_self->mutex);
max_content_len = 2048;

mbedtls_x509_crt_init(&ssl_verify->ca_crt);
mbedtls_x509_crt_init(&ssl_verify->own_crt);
Expand Down