CS adjustments

This commit is contained in:
terrafrost 2022-02-19 17:19:08 -06:00
parent ea9f6540f3
commit a0d06e5e81
2 changed files with 8 additions and 8 deletions

View File

@ -119,7 +119,7 @@ abstract class PuTTY
$flavour = SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13;
break;
default:
throw new UnsupportedAlgorithmException('Only Argon2i and Argon2id are supported');
throw new UnsupportedAlgorithmException('Only Argon2i and Argon2id are supported');
}
$length = 80; // keylen + ivlen + mac_keylen
@ -181,7 +181,7 @@ abstract class PuTTY
if ($components === false) {
throw new \UnexpectedValueException('Unable to decode public key');
}
$components+= $values;
$components += $values;
$components['comment'] = str_replace(['\\\\', '\"'], ['\\', '"'], $values['comment']);
return $components;

View File

@ -381,13 +381,13 @@ class SFTP extends SSH2
20 => 'NET_SFTP_SYMLINK',
21 => 'NET_SFTP_LINK',
101=> 'NET_SFTP_STATUS',
102=> 'NET_SFTP_HANDLE',
103=> 'NET_SFTP_DATA',
104=> 'NET_SFTP_NAME',
105=> 'NET_SFTP_ATTRS',
101 => 'NET_SFTP_STATUS',
102 => 'NET_SFTP_HANDLE',
103 => 'NET_SFTP_DATA',
104 => 'NET_SFTP_NAME',
105 => 'NET_SFTP_ATTRS',
200=> 'NET_SFTP_EXTENDED'
200 => 'NET_SFTP_EXTENDED'
];
$this->status_codes = [
0 => 'NET_SFTP_STATUS_OK',