Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
75 | final public function authenticate($resource) |
||
76 | { |
||
77 | if (@ssh2_auth_hostbased_file( |
||
78 | $resource, |
||
79 | $this->username, |
||
80 | $this->hostname, |
||
81 | $this->pubkeyfile, |
||
82 | $this->privkeyfile, |
||
83 | $this->passphrase, |
||
84 | $this->local_username |
||
85 | ) === false) |
||
86 | { |
||
87 | throw new \RuntimeException('Hostbased file authentication failed.'); |
||
88 | } |
||
91 |