From 57435e24015c30ae306151d0f5e0fb0fcf320934 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 28 Nov 2024 17:18:13 -0600 Subject: [PATCH] SSH2: add bytesUntilKeyReexchange() method --- phpseclib/Net/SSH2.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 40066c5b..1dae490e 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -5663,4 +5663,12 @@ class Net_SSH2 { $this->smartMFA = false; } + + /** + * How many bytes until the next key re-exchange? + */ + function bytesUntilKeyReexchange($bytes) + { + $this->doKeyReexchangeAfterXBytes = $bytes; + } }