Commit Graph

570 Commits

Author SHA1 Message Date
terrafrost 623bb39f1c SFTP: update for 3.0 branch
in 1.0 / 2.0 _get_channel_packet could return false even when the
channel status was NET_SSH2_MSG_CHANNEL_DATA. in 3.0 it can't.
where 1.0 / 2.0 returned false 3.0 now throws exceptions
2022-06-14 05:43:31 -05:00
terrafrost d85417c6ec Merge branch '2.0' into 3.0 2022-06-14 05:42:25 -05:00
terrafrost 413dcb6082 SFTP: update for 2.0 code 2022-06-14 05:32:38 -05:00
terrafrost 1d1d3a4403 Merge branch '1.0' into 2.0 2022-06-14 05:31:09 -05:00
terrafrost 85205bf6d5 SSH2: set channel closure flag elsewhere as well 2022-06-14 05:30:24 -05:00
terrafrost 62c36daa67 Merge branch '3.0' 2022-05-13 15:04:33 -05:00
Filippo Tessarotto 8b13462ee8
SFTP::get can also return true 2022-05-11 11:53:42 +02:00
terrafrost 0446caf2f6 Merge branch '3.0' 2022-05-10 22:14:16 -05:00
terrafrost 43c59198b8 Merge branch '2.0' into 3.0 2022-05-10 22:14:10 -05:00
terrafrost 3286f095d2 Merge branch '1.0' into 2.0 2022-05-10 22:14:04 -05:00
Yan Hu eb71a6da75 Detect if stream metadata has wrapper_type set for SFTP put() method 2022-05-10 22:13:52 -05:00
terrafrost 51f863f289 Merge branch '3.0' 2022-05-06 14:27:24 -05:00
terrafrost 715bb9ff97 SFTP: CS adjustment 2022-05-06 14:26:57 -05:00
terrafrost 571e16af38 Merge branch '2.0' into 3.0 2022-05-06 14:26:30 -05:00
terrafrost 10a011de1d Merge branch '1.0' into 2.0 2022-05-06 14:26:24 -05:00
terrafrost 1dfd1b9cd4 SFTP: try to delete dir even if it can't be opened 2022-05-06 14:19:42 -05:00
terrafrost 21993760ad Merge branch '3.0' 2022-05-04 07:09:00 -05:00
Jack Worman 8855351cbb Remove_@access 2022-05-04 01:35:56 -05:00
terrafrost f57f5debe0 Merge branch '3.0' 2022-04-14 11:50:40 -05:00
terrafrost e700ac7561 SFTP: fix enableDatePreservation bug w.r.t. mtime 2022-04-14 11:48:49 -05:00
terrafrost 3e073a59e0 Merge branch '3.0' 2022-03-15 18:56:04 -05:00
Jack Worman 0a69972571 Clean Up Tests 2022-03-15 18:49:38 -05:00
terrafrost 95aec3267d CS tweaks (Ssh -> SSH, Sftp -> SFTP) 2022-02-27 02:17:25 -06:00
terrafrost 6a6e80ba8f Merge branch '3.0' 2022-02-27 01:40:25 -06:00
Jack Worman 574953061a PSR4 for tests and added fall-through for switches
PSR4 for tests and added fall-through for switches
2022-02-27 01:26:31 -06:00
terrafrost 004aec954f Merge branch '3.0' 2022-02-19 18:08:40 -06:00
terrafrost a0d06e5e81 CS adjustments 2022-02-19 17:19:08 -06:00
Jack Worman ea9f6540f3 PSR12 fixes
PSR12 fixes
2022-02-19 17:06:13 -06:00
terrafrost 86c0007078 SFTP: backport fix from master 2022-02-14 17:42:49 -06:00
Jack Worman b352bd602d Changed casing 2022-02-03 19:09:41 -06:00
Jack Worman fa53c147a5 Aliases PacketType 2022-02-03 12:50:50 -06:00
Jack Worman dcf3528c8d Renamed constants classes 2022-02-03 12:49:50 -06:00
Jack Worman 61f2bc1c06 Remove Dynamic Constants
Remove Dynamic Constants
2022-02-02 19:43:32 -06:00
Jack Worman ef66d9f7dd php-cs-fixer ci
php-cs-fixer ci
2022-02-01 20:29:48 -06:00
Jack Worman e3b71763ae Fixed psalm level 6 errors in phpseclib/Net/ 2022-01-30 01:18:53 -06:00
Jack Worman 7c000843ab Corrected many @return annotations in phpseclib/Net
Corrected many @return annotations in phpseclib/Net
2022-01-23 11:00:41 -06:00
terrafrost ddfb217855 Merge branch '1.0' into 3.0 2022-01-08 19:51:35 -06:00
terrafrost 676b099789 Merge branch '1.0' into 2.0 2022-01-08 19:50:36 -06:00
PetrP 888867e7b6 SFTP: fix chgrp() for version < 4
$uid and $gid were flipped with dbfc762257
2022-01-08 19:50:22 -06:00
terrafrost 014b3a95a1 Merge branch '2.0' into 3.0 2021-11-11 19:51:26 -06:00
terrafrost ecd08ffc52 Merge branch '1.0' into 2.0 2021-11-11 19:51:19 -06:00
terrafrost 40035dc59c SFTP: don't attempt to parse unsupported attributes 2021-11-11 19:50:52 -06:00
terrafrost 17e79d9341 Merge branch '2.0' into 3.0 2021-11-08 06:44:55 -06:00
terrafrost f92a58c83c SFTP: getSupportedVersions() call didn't work 2021-11-08 06:44:36 -06:00
Christopher Davis 24150b26f6 Don't Use Array Unpackage for Status Code -> Error
the `status_codes` property is an array with integer keys and string
values, but the `$error` value in `SFTP::logError` was trying to be unpacked
from an array.

Seems to come from cee3f3cd4a, but even at
that commit the `status_codes` data structure was still an array.

This bug is only present in 3.X, 2.X release didn't unpack here:
a684f12065/phpseclib/Net/SFTP.php (L829)
2021-10-13 19:58:27 -05:00
terrafrost f25f8c0db8 Merge branch '1.0' into 2.0 2021-10-09 08:26:29 -05:00
terrafrost 8d4831ad1f SFTP: CS adjustments 2021-10-09 08:26:11 -05:00
terrafrost a09eb04296
Merge pull request #1695 from terrafrost/sftpv456
add SFTP v4/5/6 support to phpseclib v1
2021-09-28 20:39:18 -05:00
terrafrost defd5d23b1 fix bad merge 2021-09-18 10:35:21 -05:00
terrafrost 0dbbeb39ce Merge branch 'sftpv455-2.0' into sftpv456-3.0 2021-09-16 16:24:11 -05:00
terrafrost 367fede9c0 rm double _precheck from rename() 2021-09-15 20:23:31 -05:00
terrafrost 658cacce9f Merge branch 'sftpv456' into sftpv456-2.0 2021-09-15 20:22:35 -05:00
terrafrost f6ae13a092 fixes for setting atime and mtime 2021-09-15 08:33:31 -05:00
terrafrost d48bdde5c6 update comment 2021-09-14 20:34:30 -05:00
terrafrost a64103a386 attr wasn't defined 2021-09-14 20:33:11 -05:00
terrafrost 4769de45f0 comment is no longer valid 2021-09-14 09:11:53 -05:00
terrafrost bb17b35d3e preferentially use SFTPv3, since that's waaaay more tested than any other version 2021-09-14 09:05:41 -05:00
terrafrost 9ae2b0030d SFTP: update get(), put() and touch() 2021-09-13 09:08:48 -05:00
terrafrost 5fcba4627f update rename 2021-09-11 21:24:43 -05:00
terrafrost 6303fbac9e fix OpenSSH detection 2021-09-09 05:39:20 -05:00
terrafrost ced7dab1d5 update symlink 2021-09-08 09:34:16 -05:00
terrafrost 41b5f7cfe9 tweak version management stuff 2021-08-29 13:11:26 -05:00
terrafrost 42b4ab065b typo 2021-08-29 13:04:32 -05:00
terrafrost 4102bbaccc add precheck in a few more places 2021-08-29 13:02:09 -05:00
terrafrost 19e7737ead fix _precheck 2021-08-29 13:00:21 -05:00
terrafrost c9e4944370 pwd didn't work if called first 2021-08-27 21:57:38 -05:00
terrafrost a25d3a75d3 fix pre-php-5.4 syntax error 2021-08-27 12:40:38 -05:00
terrafrost 69dba39bc9 update chown / chgrp if stmt 2021-08-26 20:18:27 -05:00
terrafrost dbfc762257 update chown and chgrp to wor with sftpv4+ 2021-08-26 18:26:57 -05:00
terrafrost 1f1e2794c7 add attribute reading for sftpv6 2021-08-26 09:23:33 -05:00
terrafrost 1b90375231 Merge branch '2.0' into 3.0 2021-08-24 20:24:50 -05:00
terrafrost f02f0005b4 Merge branch '1.0' into 2.0 2021-08-24 20:22:54 -05:00
terrafrost fc40727cfb SFTP: add disableArbitraryLengthPackets() 2021-08-24 20:22:29 -05:00
terrafrost 9db03e1536 Merge branch '2.0' into 3.0 2021-08-24 20:20:20 -05:00
terrafrost ea4b75f165 Merge branch '0.0' into 2.0 2021-08-24 20:19:18 -05:00
Nick Lassonde 20500123e5 add option to allow arbitrary length packets, for servers like OpenText which sends extremely long directory listings 2021-08-24 20:18:52 -05:00
terrafrost f56158e73f add attribute reading for sftpv5 2021-08-01 23:16:31 -05:00
terrafrost 092bad12c5 add attribute reading for sftpv4 2021-07-31 15:38:21 -05:00
terrafrost 4cb6bcb75e add setPreferredVersion() and other changes 2021-07-31 13:00:52 -05:00
terrafrost a19c6ab7e6 Merge branch '1.0' into 3.0 2021-07-28 21:00:24 -05:00
terrafrost c08afba575 Merge branch '1.0' into 2.0 2021-07-28 20:34:13 -05:00
terrafrost 0ec9d2bdf1 SFTP: CS adjustments 2021-07-28 20:33:52 -05:00
terrafrost b0fe99b792 Merge branch '1.0' into 2.0 2021-07-28 20:01:26 -05:00
Nick Lassonde dab514faff timeout in _get_channel_packet during _init_sftp_connection should be a failure 2021-07-28 20:01:19 -05:00
terrafrost 8186db7533 SFTP: get_channel_packet throws exceptions in 3.0 2021-07-05 08:35:39 -05:00
terrafrost 926d3545a2 Merge branch '2.0' into 3.0 2021-07-05 08:34:36 -05:00
terrafrost 6b0f0b4896 Merge branch '1.0' into 2.0 2021-07-05 08:34:18 -05:00
terrafrost a02526e5e0 SFTP: return false if get_channel_packet returns false 2021-07-05 08:33:42 -05:00
terrafrost bf88ba4382 incremental commit 2021-06-25 11:29:03 -05:00
terrafrost fceb5b47da SFTP: CS adjustments 2021-06-19 11:30:03 -05:00
ahoareau f1c4164687 fix exception thrown because of undefined constant with php7.4 2021-06-16 08:43:35 -05:00
terrafrost b32ffb64b8 Merge branch '2.0' into 3.0 2021-06-15 07:29:03 -05:00
terrafrost d48c13b716 Merge branch '1.0' into 2.0 2021-06-15 07:27:34 -05:00
terrafrost 0673370eda SFTP: don't check SFTP packet size after SFTP initialization 2021-06-15 07:24:34 -05:00
terrafrost d1666cac50 SFTP: CS adjustments 2021-06-02 22:59:11 -05:00
terrafrost 81ffb62c20 Merge branch '2.0' into 3.0-channel-closure 2021-05-11 20:28:46 -05:00
terrafrost 1e36329433 Merge branch '1.0' into 2.0 2021-05-11 20:23:49 -05:00
terrafrost 9c47b0a696 SFTP: reopen channel on channel closure 2021-05-11 20:20:46 -05:00
terrafrost 05828a8759 SFTP: reopen channel on channel closure 2021-05-09 01:07:09 -05:00
terrafrost 4e1093fc22 CS adjustments 2021-04-12 06:17:04 -05:00