mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +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;
|
||||
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;
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user