mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
SSH2: replace \RuntimeException with UnsupportedAlgorithmException
This commit is contained in:
parent
b66b5dc6b2
commit
b39334b81d
@ -3730,7 +3730,7 @@ class SSH2
|
|||||||
$cmf = ord($payload[0]);
|
$cmf = ord($payload[0]);
|
||||||
$cm = $cmf & 0x0F;
|
$cm = $cmf & 0x0F;
|
||||||
if ($cm != 8) { // deflate
|
if ($cm != 8) { // deflate
|
||||||
throw new \RuntimeException("Only CM = 8 ('deflate') is supported ($cm)");
|
throw new UnsupportedAlgorithmException("Only CM = 8 ('deflate') is supported ($cm)");
|
||||||
}
|
}
|
||||||
$cinfo = ($cmf & 0xF0) >> 4;
|
$cinfo = ($cmf & 0xF0) >> 4;
|
||||||
if ($cinfo > 7) {
|
if ($cinfo > 7) {
|
||||||
|
Loading…
Reference in New Issue
Block a user