mirror of
https://github.com/upa/mscp.git
synced 2026-05-22 22:13:34 +08:00
change indent from space to tab
This commit is contained in:
@@ -425,7 +425,7 @@ static void print_progress_bar(double percent, char *suffix)
|
|||||||
struct winsize ws;
|
struct winsize ws;
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* [=======> ] XX.X% SUFFIX
|
* [=======> ] XX.X% SUFFIX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ static int ssh_authenticate(ssh_session ssh, struct ssh_opts *opts)
|
|||||||
int auth_bit_mask;
|
int auth_bit_mask;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* none method */
|
/* none method */
|
||||||
ret = ssh_userauth_none(ssh, NULL);
|
ret = ssh_userauth_none(ssh, NULL);
|
||||||
if (ret == SSH_AUTH_SUCCESS)
|
if (ret == SSH_AUTH_SUCCESS)
|
||||||
return 0;
|
return 0;
|
||||||
@@ -178,12 +178,12 @@ static int ssh_verify_known_hosts(ssh_session session)
|
|||||||
state = ssh_session_is_known_server(session);
|
state = ssh_session_is_known_server(session);
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case SSH_KNOWN_HOSTS_OK:
|
case SSH_KNOWN_HOSTS_OK:
|
||||||
/* OK */
|
/* OK */
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case SSH_KNOWN_HOSTS_CHANGED:
|
case SSH_KNOWN_HOSTS_CHANGED:
|
||||||
fprintf(stderr, "Host key for server changed: it is now:\n");
|
fprintf(stderr, "Host key for server changed: it is now:\n");
|
||||||
//ssh_print_hexa("Public key hash", hash, hlen);
|
//ssh_print_hexa("Public key hash", hash, hlen);
|
||||||
fprintf(stderr, "For security reasons, connection will be stopped\n");
|
fprintf(stderr, "For security reasons, connection will be stopped\n");
|
||||||
ssh_clean_pubkey_hash(&hash);
|
ssh_clean_pubkey_hash(&hash);
|
||||||
|
|
||||||
@@ -201,7 +201,7 @@ static int ssh_verify_known_hosts(ssh_session session)
|
|||||||
fprintf(stderr, "If you accept the host key here, the file will be"
|
fprintf(stderr, "If you accept the host key here, the file will be"
|
||||||
"automatically created.\n");
|
"automatically created.\n");
|
||||||
|
|
||||||
/* FALL THROUGH to SSH_SERVER_NOT_KNOWN behavior */
|
/* FALL THROUGH to SSH_SERVER_NOT_KNOWN behavior */
|
||||||
|
|
||||||
case SSH_KNOWN_HOSTS_UNKNOWN:
|
case SSH_KNOWN_HOSTS_UNKNOWN:
|
||||||
hexa = ssh_get_hexa(hash, hlen);
|
hexa = ssh_get_hexa(hash, hlen);
|
||||||
|
|||||||
Reference in New Issue
Block a user