From f48d85ced9c288a1d23088f415b5b497b2e014e4 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 8 Sep 2018 14:41:28 -0500 Subject: [PATCH] SSH2: setEngine -> setPreferredEngine --- phpseclib/Net/SSH2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index c40cfa7d..e47d0502 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1989,7 +1989,7 @@ class Net_SSH2 if ($this->encrypt) { if ($this->crypto_engine) { - $this->encrypt->setEngine($this->crypto_engine); + $this->encrypt->setPreferredEngine($this->crypto_engine); } $this->encrypt->enableContinuousBuffer(); $this->encrypt->disablePadding(); @@ -2009,7 +2009,7 @@ class Net_SSH2 if ($this->decrypt) { if ($this->crypto_engine) { - $this->decrypt->setEngine($this->crypto_engine); + $this->decrypt->setPreferredEngine($this->crypto_engine); } $this->decrypt->enableContinuousBuffer(); $this->decrypt->disablePadding();