[sudo-commits] sudo changeset 12114:7162125ad7b7

Todd C. Miller Todd.Miller at sudo.ws
Mon Jan 20 12:43:31 MST 2020


changeset:	12114:7162125ad7b7 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/7162125ad7b7
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Jan 20 12:42:39 2020 -0700

Log Message:
	Fix handling of SSL_ERROR_WANT_{READ,WRITE} during normal I/O.
	If we get SSL_ERROR_WANT_WRITE during SSL_read(), we need to resume
	the SSL_read(), not call SSL_write() as we were doing.  Likewise
	for SSL_ERROR_WANT_READ received from SSL_write().
	This introduces a flag so we call the proper callback even when
	the I/O direction doesn't match the read/write calls.

diffstat:

 logsrvd/logsrvd.c              |  98 +++++++++++++++++++++++++----------------
 logsrvd/logsrvd.h              |   5 +-
 logsrvd/sendlog.c              |  82 +++++++++++++++++++++++++++--------
 logsrvd/sendlog.h              |   5 +-
 plugins/sudoers/iolog_client.c |  64 +++++++++++++++++++++------
 plugins/sudoers/iolog_plugin.h |  13 ++++-
 6 files changed, 192 insertions(+), 75 deletions(-)


More information about the sudo-commits mailing list