Add support for sending SSH_MSG_DEBUG messages #1672
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds files debug.c and debug.h, which provide the function sftp_debug_message for sending a SSH_MSG_DEBUG message back to the client. Not terribly useful, but I've been playing with mod_clamav and wanted a way to report virus detections to SFTP clients and not just FTP. Of course, the client is free to ignore the messages per the RFC, but it's better than nothing.
I copied the files disconnect.c and disconnect.h and then filed off the serial #s, so to speak, which is why the headers are the way they are (dates, copyright), but I freely assign my portion of copyright on them to you in any event.