Comments (2)
Hi,
We chose to leave these values the same since either wolfSSL (or an application that has registered its own I/O callbacks) already knows if it's inside the Send or Receive callback. Once the callback returns one of these values, wolfSSL handles converting this into the correct error to return to the user.
At the application level, if wolfSSL_read()/write()/connect()/accept() returns SSL_FATAL_ERROR, the user should call wolfSSL_get_error()
, which will return either SSL_ERROR_WANT_READ (2) or SSL_ERROR_WANT_WRITE (3). These are different values, allowing the user to distinguish between the two.
from wolfssl.
Thanks for the explanation: I was seeing the expected behavior but wanted to file an issue just to be sure.
from wolfssl.
Related Issues (20)
- Using DTLS with the example server HOT 5
- srp errors -> 5.6.6-stable-update2-esp32 HOT 5
- [doc] Document that a BIO pair may need 2-pass read to retrieve all bytes due to ring buffer HOT 2
- [Question] is wolfSSL_set_tmp_dh discouraged in wolfSSL(like OpenSSL)? HOT 6
- [Question] Does wolfssl support grpc? HOT 1
- [Bug]: iotsafe_hkdf_extract only works for SHA256_DIGEST HOT 4
- [Bug]: ARMv7a alignment exception in wc_Chacha_Process when compiled with ARMASM HOT 3
- [Bug]: Write-Dup with chaha poly1305 write fails with "error fatal" HOT 4
- [Bug]: [haproxy] blocking when using chroot + wolfssl
- esp32_sha errors -> 5.6.6-stable-update2-esp32 HOT 29
- How to compile chacha_asm.S for Windows x86_64? HOT 12
- [Bug]: Variable size typo in GetCipherSpec() HOT 2
- [Bug]: `make check` fails on OpenBSD 7.4 HOT 5
- [Bug]: ERROR -308: failed to connect to wolfSSL -1 HOT 7
- [Bug]: armv7l build error: wolfcrypt/src/src_libwolfssl_la-sp_int.lo] Error 1 HOT 1
- [Bug]: include/wolfssl/wolfcrypt/sha512.h:141: error: expected specifier-qualifier-list before 'word64' HOT 1
- [Bug]: undefined reference to `__aeabi_read_tp' HOT 5
- [Bug]: DTLS Anti-Replay Mechanism Corner Cases HOT 3
- [Bug]: ClientHello's status_request extension handling issue HOT 10
- [Bug]: ClientHello's handshake version issue HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfssl.