Pubkey auth is mostly there for the client. Something strange with

remote hostkey verification though.

--HG--
extra : convert_revision : 8635abe49e499e16d44a8ee79d474dc35257e9cc
This commit is contained in:
Matt Johnston
2004-08-03 17:26:56 +00:00
parent 7a854cb1f8
commit 7cdad3c200
9 changed files with 222 additions and 31 deletions

View File

@@ -31,7 +31,7 @@ void recv_msg_service_accept() {
servicename = buf_getstring(ses.payload, &len);
/* ssh-userauth */
if (cli_ses.state = SERVICE_AUTH_REQ_SENT
if (cli_ses.state == SERVICE_AUTH_REQ_SENT
&& len == SSH_SERVICE_USERAUTH_LEN
&& strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) {
@@ -42,7 +42,7 @@ void recv_msg_service_accept() {
}
/* ssh-connection */
if (cli_ses.state = SERVICE_CONN_REQ_SENT
if (cli_ses.state == SERVICE_CONN_REQ_SENT
&& len == SSH_SERVICE_CONNECTION_LEN
&& strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) {