changeset 1825:7a0068effc65

Add a comment about sending initial auth request
author Matt Johnston <matt@ucc.asn.au>
date Mon, 11 Oct 2021 15:12:22 +0800
parents 209711833f15
children eaa2d7240a5d
files cli-session.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cli-session.c	Wed Mar 31 23:31:26 2021 +0800
+++ b/cli-session.c	Mon Oct 11 15:12:22 2021 +0800
@@ -245,6 +245,9 @@
 			/* We've got the transport layer sorted, we now need to request
 			 * userauth */
 			send_msg_service_request(SSH_SERVICE_USERAUTH);
+			/* We aren't using any "implicit server authentication" methods,
+			so don't need to wait for a response for SSH_SERVICE_USERAUTH
+			before sending the auth messages (rfc4253 10) */
 			cli_auth_getmethods();
 			cli_ses.state = USERAUTH_REQ_SENT;
 			TRACE(("leave cli_sessionloop: sent userauth methods req"))