mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
CS adjustments
This commit is contained in:
parent
ea9f6540f3
commit
a0d06e5e81
@ -119,7 +119,7 @@ abstract class PuTTY
|
|||||||
$flavour = SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13;
|
$flavour = SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13;
|
||||||
break;
|
break;
|
||||||
default:
|
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
|
$length = 80; // keylen + ivlen + mac_keylen
|
||||||
@ -181,7 +181,7 @@ abstract class PuTTY
|
|||||||
if ($components === false) {
|
if ($components === false) {
|
||||||
throw new \UnexpectedValueException('Unable to decode public key');
|
throw new \UnexpectedValueException('Unable to decode public key');
|
||||||
}
|
}
|
||||||
$components+= $values;
|
$components += $values;
|
||||||
$components['comment'] = str_replace(['\\\\', '\"'], ['\\', '"'], $values['comment']);
|
$components['comment'] = str_replace(['\\\\', '\"'], ['\\', '"'], $values['comment']);
|
||||||
|
|
||||||
return $components;
|
return $components;
|
||||||
|
@ -381,13 +381,13 @@ class SFTP extends SSH2
|
|||||||
20 => 'NET_SFTP_SYMLINK',
|
20 => 'NET_SFTP_SYMLINK',
|
||||||
21 => 'NET_SFTP_LINK',
|
21 => 'NET_SFTP_LINK',
|
||||||
|
|
||||||
101=> 'NET_SFTP_STATUS',
|
101 => 'NET_SFTP_STATUS',
|
||||||
102=> 'NET_SFTP_HANDLE',
|
102 => 'NET_SFTP_HANDLE',
|
||||||
103=> 'NET_SFTP_DATA',
|
103 => 'NET_SFTP_DATA',
|
||||||
104=> 'NET_SFTP_NAME',
|
104 => 'NET_SFTP_NAME',
|
||||||
105=> 'NET_SFTP_ATTRS',
|
105 => 'NET_SFTP_ATTRS',
|
||||||
|
|
||||||
200=> 'NET_SFTP_EXTENDED'
|
200 => 'NET_SFTP_EXTENDED'
|
||||||
];
|
];
|
||||||
$this->status_codes = [
|
$this->status_codes = [
|
||||||
0 => 'NET_SFTP_STATUS_OK',
|
0 => 'NET_SFTP_STATUS_OK',
|
||||||
|
Loading…
Reference in New Issue
Block a user