summaryrefslogtreecommitdiff
path: root/bufferevent_mbedtls.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop unused le_ssl_ops::err_is_okAzat Khuzhin2023-05-161-6/+0
| | | | | It is not used anymore since errors are ignored if some progress had been done.
* ssl: do not triger EOF if some data had been successfully readAzat Khuzhin2023-05-141-0/+6
| | | | | | | | Previously in case when evbuffer_reserve_space() returns > 1, but it was able to read only 1 IO vector, it will try to read the next one, got 0 (EOF for mbedTLS or SSL_ERROR_ZERO_RETURN for OpenSSL) and will trigger EOF, while instead, it should trigger EV_READ w/o EOF and only after EOF.
* ssl: rename err_is_ok to handshake_is_ok (internal API)Azat Khuzhin2023-05-141-2/+3
|
* Add helpers and all regress tests are passedDmitry Ilyin2022-10-041-4/+20
|
* Initial Mbed-TLS 3 support to get the GitHub Actions working againWilliam Marlow2022-07-091-1/+8
| | | | | | | | mingw has upgraded to Mbed-TLS 3.1.0, so all the mingw tests that need Mbed-TLS currently don't work. v2: add missing mbedtls/version.h into test/regress_mbedtls.c v3: suppress #warning "Including compat-2.x.h is deprecated" for mbedtls/compat-2.x.h
* Support disabled renegotiation in mbedTLSAzat Khuzhin2021-04-301-0/+5
| | | | | Patch from: @Kurruk007 Fixes: #1161
* Introduce new API for flags of the SSL buffereventAzat Khuzhin2020-10-311-1/+1
| | | | | | | | | | | | | Introduce more generic API (like for evbuffer): - bufferevent_ssl_set_flags() - bufferevent_ssl_clear_flags() - bufferevent_ssl_get_flags() And deprecate existing: - bufferevent_openssl_get_allow_dirty_shutdown() - bufferevent_openssl_set_allow_dirty_shutdown() - bufferevent_mbedtls_get_allow_dirty_shutdown() - bufferevent_mbedtls_set_allow_dirty_shutdown()
* fix: compat mbedtls < 2.4okhowang(王沛文)2020-07-241-1/+1
|
* Fix bufferevent_get_{openssl,mbedtls}_error()Azat Khuzhin2020-07-231-1/+1
| | | | | | | The bufferevent_get_openssl_error() returns unsigned long, so returning -1 on error in unclear. Let's use 0. Fixes: #1028
* Join le_ssl_ops.post_init with le_ssl_ops.initAzat Khuzhin2020-07-221-1/+0
|
* Merge ssl implementations (openssl and mbedtls)okhowang(王沛文)2020-07-221-1126/+223
| | | | | | | | This patch splits common part out to avoid copy-paste from the - bufferevent_openssl.c - bufferevent_mbedtls.c It uses VFS/bufferevent-like approach, i.e. structure of callbacks.
* fix build system and add test and cleanup codeokhowang(王沛文)2020-07-221-100/+15
|
* mbedtls based SSL implementationJesse Fang2020-07-221-0/+1386
prototype is libevent-2.1.11-stable libevent_openssl.c