mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 20:42:20 +01:00
wolfSSL_ERR_get_error and wolfSSL_ERR_peek_error_line_data should return the earliest error in the queue (i.e. the error at the front), but prior to this commit, they returned the latest/most recent one instead. In DoAlert, we were adding an error to the queue for all alerts. However, a close_notify isn't really an error. This commit makes it so DoAlert only adds errors to the queue for non-close_notify alerts. In ReceiveData, similarly, we were adding an error to the queue when the peer sent a close_notify, as determined by ssl->error == ZERO_RETURN. Now, we don't add an error in this case.
Before creating any new configure files (.conf) read the CONF_FILES_README.md