diff --git a/.travis.yml b/.travis.yml index f6522919..456aaad2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,10 +14,8 @@ addons: before_script: - composer update --dev script: -- "./testing.php" +- "tests/testing.php" before_install: -- openssl aes-256-cbc -K $encrypted_223c5fe08d29_key -iv $encrypted_223c5fe08d29_iv - -in enc.tar.xz.enc -out enc.tar.xz -d - openssl aes-256-cbc -K $encrypted_0b05103af24b_key -iv $encrypted_0b05103af24b_iv -in enc.tar.xz.enc -out enc.tar.xz -d - tar -xJpf enc.tar.xz diff --git a/enc.tar.xz.enc b/enc.tar.xz.enc index 1fd6d019..5cdd6549 100644 Binary files a/enc.tar.xz.enc and b/enc.tar.xz.enc differ diff --git a/src/danog/MadelineProto/RSA.php b/src/danog/MadelineProto/RSA.php index 5545415b..8c3bef60 100644 --- a/src/danog/MadelineProto/RSA.php +++ b/src/danog/MadelineProto/RSA.php @@ -18,6 +18,7 @@ class RSA use \danog\MadelineProto\Tools; public $keydata = []; + public function __construct($rsa_key) { \danog\MadelineProto\Logger::log('Istantiating \phpseclib\Crypt\RSA...', LOGGER::ULTRA_VERBOSE); @@ -47,6 +48,7 @@ class RSA ), -8 ))[0]; + return $this->keydata; }