Commit Graph

613 Commits

Author SHA1 Message Date
terrafrost
141e0c8c74 Merge branch '3.0' 2024-05-29 09:23:07 -05:00
Robert
6fc9a98d42 Reorganize get_binary_packet to fetch entire payload before decrypt processing, buffering for graceful handling across timeouts.
Remove skip filter parameter from method signatures, now technically defunct as all requests through get_binary_packet incorporate the same timeout during blocking IO calls.
Introduce InvalidPacketLength exception and employ to detect OpenSSL 0.9.8e flaw at higher logical level than binary packet processing.
Removing case logic in binary packet filtering for channel message types, made extraneous by use of get_channel_packet, and possibly leading to discarded data packets.
Reset connection properties during disconnect. Rework callers of reset_connection to use disconnect_helper.
Bugfix for no encyrption algorithms negotiated with server.
2024-05-28 11:23:48 -04:00
terrafrost
4cdcb74b8c CS adjustments 2024-05-25 15:20:57 -05:00
terrafrost
c24e2e38b5 SFTP: CS adjustment 2024-05-17 18:58:08 -05:00
terrafrost
8214bd6079 Merge branch '3.0' 2024-05-17 18:57:03 -05:00
terrafrost
227cf21bbc Merge branch '2.0' into 3.0 2024-05-17 18:56:19 -05:00
terrafrost
1fc0ad14f9 Merge branch '1.0' into 2.0 2024-05-17 18:40:54 -05:00
terrafrost
023f5c00be CS adjustment 2024-05-17 18:40:42 -05:00
terrafrost
afda7ebf95 Merge branch '1.0' into 2.0 2024-05-17 17:01:33 -05:00
terrafrost
28211e5a49 SFTP: try without path canonicalization if initial realpath() fails
on re-examining the "fix" for #1796 it would appear that commit
f189b9a is insufficient.
2024-05-17 16:58:11 -05:00
Ayesh Karunaratne
6931c96422
[PHP 8.4] Fixes for implicit nullability deprecation
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.

See:
 - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types)
 - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)
2024-03-16 02:33:11 +07:00
terrafrost
f5a6d02217 Merge branch '3.0' 2024-02-26 07:55:13 -06:00
terrafrost
792314e851 SSH2: openChannel -> open_channel
makes openChannel snake case like close_channel already is. this is
not a BC break as openChannel is protected
2024-02-26 07:52:24 -06:00
terrafrost
4427f40112 Merge branch '3.0' 2024-02-07 22:44:27 -06:00
terrafrost
8f3a66547a Merge branch '2.0' into 3.0 2024-02-07 22:43:03 -06:00
terrafrost
34ab00b27d Merge branch '1.0' into 2.0 2024-02-07 22:42:46 -06:00
terrafrost
a69364def9 SSH2/SFTP: tweak docblock comments for getLastError() / etc 2024-02-07 22:42:24 -06:00
terrafrost
5833f00bb5 Merge branch '3.0' 2024-01-24 07:40:56 -06:00
terrafrost
6b34da463c SFTP: size() isn't a method.. 2024-01-12 15:44:58 -06:00
terrafrost
48e3b3c264 Merge branch '3.0' 2024-01-12 11:00:02 -06:00
terrafrost
978a5d9dc0 SFTP: fix possible E_NOTICE with put() 2024-01-12 10:58:38 -06:00
terrafrost
bae3b79ae0 Merge branch '3.0' 2023-12-08 21:38:55 -06:00
terrafrost
0548866d42 Merge branch '2.0' into 3.0 2023-12-08 21:38:40 -06:00
terrafrost
5a903ae520 Merge branch '1.0' into 2.0 2023-12-08 18:58:54 -06:00
terrafrost
404f86fb61 SFTP: ping() didn't work for SFTP connections 2023-12-08 18:58:32 -06:00
terrafrost
c160a020db Merge branch '3.0' 2023-08-28 08:51:17 -05:00
terrafrost
aeac69b846 Merge branch '2.0' into 3.0 2023-08-28 08:51:10 -05:00
terrafrost
bc62673fdd Merge branch '1.0' into 2.0 2023-08-28 08:51:02 -05:00
terrafrost
320c43a4a0 SFTP: fix issue with get() downloading to files / streams
the code that's being removed has its origins in 65193d9a25. in that commit the packet length is set outside of the while loop. this would continue to be the case until https://github.com/phpseclib/phpseclib/pull/945.
2023-08-28 08:47:30 -05:00
terrafrost
278f8e5f5a Merge branch '1.0' into 2.0 2023-08-24 20:21:13 -05:00
terrafrost
0f23be3188 SFTP: fix SFTPv2 errors when logging errors 2023-08-24 20:20:47 -05:00
terrafrost
2d33d7b0dc Merge branch '3.0' 2023-07-02 11:56:58 -05:00
terrafrost
3334a3243c Merge branch '2.0' into 3.0 2023-07-02 11:55:51 -05:00
terrafrost
09f19cb92a Merge branch '1.0' into 2.0 2023-07-02 11:55:40 -05:00
terrafrost
de09e8e817 SFTP: RESUME_START didn't work as described 2023-07-02 11:48:07 -05:00
terrafrost
65693db644 Merge branch '3.0' 2023-07-02 11:29:03 -05:00
terrafrost
9341e090c5 Merge branch '2.0' into 3.0 2023-07-02 11:18:17 -05:00
terrafrost
6aa6a5241f SFTP: CS adjustments 2023-07-02 10:46:34 -05:00
terrafrost
411d09cb7a Merge branch '1.0' into 2.0 2023-07-02 10:45:46 -05:00
terrafrost
df3dab7d3f SFTP: make it so SFTP::RESUME also sets offset of local file 2023-07-02 10:45:25 -05:00
terrafrost
6833fc79a6 Merge branch '3.0' 2023-06-04 16:39:59 -05:00
terrafrost
4f113bc96c SFTP: CS adjustment 2023-06-04 16:39:44 -05:00
terrafrost
dff24146af CS adjustment 2023-06-04 16:33:58 -05:00
terrafrost
ff26e22563 CS adjustments 2023-06-04 11:26:34 -05:00
terrafrost
501c96c48c Merge branch '3.0' 2023-06-04 10:51:36 -05:00
terrafrost
b8f8f0b7db SFTP: add optional $recursive parameter to filesize() 2023-06-04 10:50:26 -05:00
terrafrost
1b1c073d1e Merge branch '3.0' 2023-05-18 08:24:02 -05:00
thomascorthals
c71c217fd5 SFTP typehint fixes 2023-05-15 11:15:49 +02:00
terrafrost
b25206e92b
Merge pull request #1904 from terrafrost/3.0-openchannel
(3.0 branch) SSH/SFTP: create new openChannel() method to eliminate dupe code
2023-05-10 04:38:51 -05:00
terrafrost
e6f86e1770 Merge branch '3.0-openchannel' into master-openchannel 2023-05-07 11:35:24 -05:00