uci: update to the latest version, adds a small optimization to uci commit
[openwrt.git] / package / network / services / openvpn / patches / 120-polarssl-disable-record-splitting.patch
1 --- a/src/openvpn/ssl_polarssl.c
2 +++ b/src/openvpn/ssl_polarssl.c
3 @@ -707,6 +707,11 @@ void key_state_ssl_init(struct key_state
4        if (ssl_ctx->allowed_ciphers)
5         ssl_set_ciphersuites (ks_ssl->ctx, ssl_ctx->allowed_ciphers);
6  
7 +      /* Disable record splitting (breaks current ssl handling) */
8 +#if defined(POLARSSL_SSL_CBC_RECORD_SPLITTING)
9 +      ssl_set_cbc_record_splitting (ks_ssl->ctx, SSL_CBC_RECORD_SPLITTING_DISABLED);
10 +#endif /* POLARSSL_SSL_CBC_RECORD_SPLITTING */
11 +
12        /* Initialise authentication information */
13        if (is_server)
14         ssl_set_dh_param_ctx (ks_ssl->ctx, ssl_ctx->dhm_ctx );