Commit Graph

2851 Commits

Author SHA1 Message Date
terrafrost
0e3ef812c3 CS adjustments 2021-05-02 08:37:19 -05:00
terrafrost
f1b0708446 Merge branch '1.0' into 2.0 2021-05-02 08:15:00 -05:00
nickyb
aa8138a330 Support for continue auth methods. 2021-05-02 08:12:24 -05:00
Kyle
0f77cf3a59 Allow string for BigInteger
In real life BigInteger are used to store number too big to be `int` so `string` is actually the natural type to use
2021-04-26 09:07:55 -05:00
terrafrost
7d3b0a2182 X509: tweaks to mapOutExtensions 2021-04-20 16:01:45 -05:00
Kyle
c596078d7a Create tbsCertificate/extensions if missing
Fix #1642
Create tbsCertificate/extensions if missing when extensions values are proceeded
2021-04-20 15:59:46 -05:00
terrafrost
d9615a6fb9 AsymetrticKey: add getComment() method 2021-04-18 22:20:48 -05:00
terrafrost
701881d3de X509: add replace parameter to setExtensionValue 2021-04-18 10:00:26 -05:00
terrafrost
07f728546b X509: apparently list() works differently in 5.6 than in 7.0+ 2021-04-16 09:06:52 -05:00
terrafrost
acc2657511 X509: symmetric array destructuring requires PHP 7.1+ 2021-04-15 21:24:35 -05:00
Bastien Miclo
0dabb0c090 Allow to specify extension value as critical 2021-04-15 21:21:48 -05:00
Kyle
8123521307 Don't filter basicConstraints on unique values
array_unique check values which is not relevant for basicConstraints where `true == "foo"` so prevent to specify any other constraint (like pathlen)
2021-04-15 21:03:08 -05:00
terrafrost
03e9060cbb cipher_name_openssl_ecb shouldn't be static because of AES 2021-04-14 05:24:03 -05:00
terrafrost
5b6024b409 CS adjustment 2021-04-13 08:05:55 -05:00
terrafrost
4e1093fc22 CS adjustments 2021-04-12 06:17:04 -05:00
terrafrost
b7eaee4977 don't load plugins whose filename start with a . 2021-04-09 10:55:50 -05:00
terrafrost
f95b039d08 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-03 18:17:27 -05:00
terrafrost
149b4d2131 RSA: fix for PHP8 2021-04-03 18:16:59 -05:00
terrafrost
74435e1b80 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-03 17:55:22 -05:00
terrafrost
8af4280bde RSA: misc fixes for 'without NULL' PKCS1 signature validation 2021-04-03 17:55:12 -05:00
terrafrost
f61cce9c83 RSA: misc fixes for "without NULL" PKCS1 signature validation 2021-04-03 17:50:28 -05:00
terrafrost
ae15ac69d0 Merge branch 'moosa-2.0' into moosa-3.0 2021-04-03 17:12:38 -05:00
terrafrost
43eeb853f1 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-03 16:47:37 -05:00
terrafrost
4a3e08c273 RSA: tweak to new validation method 2021-04-03 16:33:23 -05:00
terrafrost
9af9d69c19 RSA: support "strict" PKCS1 sigs without NULLs 2021-04-03 16:00:42 -05:00
terrafrost
e02c8452d4 ASN1: fail when encountering unsupported tags 2021-04-03 15:54:27 -05:00
terrafrost
0fc7c81c66 fix bad merge 2021-04-03 13:48:40 -05:00
terrafrost
104a57badd Merge branch 'moosa-2.0' into moosa-3.0 2021-04-03 13:28:23 -05:00
terrafrost
bac775ecd5 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-03 13:19:15 -05:00
terrafrost
8b8cbecb9b ASN1: make sure constructed bit is what it ought to be 2021-04-03 13:15:58 -05:00
terrafrost
42fc46e9a9 RSA: make sure that parameters is null for relaxed PKCS1 signatures 2021-04-03 11:33:49 -05:00
terrafrost
c6a22faf60 Merge branch 'moosa-2.0' into moosa-3.0 2021-04-03 11:11:50 -05:00
terrafrost
5690851a09 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-03 11:10:05 -05:00
terrafrost
a589442a78 ASN1: uncomment out extra validation code 2021-04-03 11:07:25 -05:00
terrafrost
c06f322426 Merge branch 'moosa-2.0' into moosa-3.0 2021-04-02 13:48:20 -05:00
terrafrost
ac00565072 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-02 13:48:07 -05:00
terrafrost
95f597cfb3 ASN1: tweaks to tag decoding 2021-04-02 13:46:14 -05:00
terrafrost
801070db1a Merge branch 'moosa-2.0' into moosa-3.0 2021-04-02 11:09:57 -05:00
terrafrost
6ddc6c0c53 Merge branch 'moosa-1.0' into moosa-2.0 2021-04-02 11:08:36 -05:00
terrafrost
b90c33200e ASN1: don't allow last octet in OID to have MSB set 2021-04-02 11:00:45 -05:00
terrafrost
ed52a587e8 ASN1: CS adjustment 2021-04-02 10:29:04 -05:00
terrafrost
c1ea063c63 Merge branch 'nexans-1.0' into nexans-2.0 2021-03-30 22:44:05 -05:00
terrafrost
2d6705dfbd SSH2: don't close channel on unexpected response to channel request 2021-03-30 22:43:34 -05:00
terrafrost
5cb4e29555 Merge branch 'nexans-2.0' into nexans-3.0 2021-03-30 22:41:43 -05:00
terrafrost
111852d7c0 Merge branch 'nexans-1.0' into nexans-2.0 2021-03-30 22:41:03 -05:00
terrafrost
b18714c248 ... 2021-03-30 22:39:46 -05:00
terrafrost
f0f8d80073 SSH2: use type boolean for want reply instead of character 2021-03-29 08:15:16 -05:00
terrafrost
dfb71b4fc7 Merge branch '2.0' into 3.0 2021-03-27 10:33:46 -05:00
terrafrost
fecdb6b1aa Merge branch '1.0' into 2.0 2021-03-27 10:03:23 -05:00
terrafrost
098cb69039 SSH2: don't close channel on unexpected response to channel request 2021-03-27 10:01:37 -05:00
terrafrost
57b6942962 Merge branch '2.0' into 3.0 2021-03-20 06:30:39 -05:00
terrafrost
6136434139 Merge branch '1.0' into 2.0 2021-03-19 16:59:46 -05:00
terrafrost
e209db78b8 Crypt/Base: use a custom error handler for mcrypt 2021-03-19 16:55:58 -05:00
terrafrost
624f514e88 SSH2: add setTerminal() method 2021-03-16 21:18:56 -05:00
terrafrost
d74340a41c more CS adjustments 2021-03-16 06:55:20 -05:00
terrafrost
cd5e5126ca SFTP: CS adjustment 2021-03-16 06:18:19 -05:00
Ernest Lebedev
906a5fafab Added some PHPDoc fixes according to use cases from the docs (https://phpseclib.com/docs/sftp) to satisfy PHPStan 2021-03-10 07:58:31 -06:00
terrafrost
70bc5d01f0 Merge branch '2.0' into 3.0 2021-03-08 23:04:28 -06:00
terrafrost
cf8d62500b Merge branch '1.0' into 2.0 2021-03-08 23:04:21 -06:00
terrafrost
a45ccbacb7 SFTP: digit only filenames were converted to integers by php 2021-03-08 23:03:38 -06:00
terrafrost
aac5b0a74c Merge branch '1.0' into 2.0 2021-02-26 09:17:52 -06:00
terrafrost
b2b867f032 BigInteger: fix issue with toBits on 32-bit PHP 8 installs 2021-02-26 09:17:05 -06:00
terrafrost
eeabad1ed3 SFTP: mkdir on streams didn't work 2021-02-23 05:14:25 -06:00
terrafrost
8a459caada Merge branch '2.0' into 3.0 2021-02-22 09:06:46 -06:00
terrafrost
22a14fd22f Merge branch '1.0' into 2.0 2021-02-22 09:06:39 -06:00
lightray22
488db53bf7 fix undefined index notice in stream touch() 2021-02-22 08:54:30 -06:00
terrafrost
a8f5d9db55 Merge branch '2.0' into 3.0 2021-02-21 18:57:40 -06:00
terrafrost
67c9cc224b Merge branch '1.0' into 2.0 2021-02-21 18:57:19 -06:00
terrafrost
d20e842a5e SFTP/Stream: make it so you can write past the end of a file 2021-02-21 18:41:28 -06:00
terrafrost
55f23334cd loadPublic -> loadPublicKey; loadPrivate -> loadPrivateKey 2021-02-12 07:48:12 -06:00
terrafrost
052cb7d762 X509: add getCurrentCert method (since $currentCert is now private) 2021-02-10 08:26:58 -06:00
terrafrost
3bddf4d962 PublicKeyLoader: add loadPublic, loadPrivate and loadParameters 2021-02-08 23:44:24 -06:00
terrafrost
a18b86ae26 add mode to all block cipher examples 2021-02-04 01:06:14 -06:00
terrafrost
d096769654 Rijndael: calling setIV() after setBlockLength() can result in err 2021-02-02 20:21:56 -06:00
terrafrost
e9f79655db RSA: use OpenSSL for generating private keys 2021-01-28 09:49:15 -06:00
terrafrost
b49203d5b9 BigInteger: big speedups for when OpenSSL is used 2021-01-26 23:13:40 -06:00
terrafrost
85a844bab1 RSA: CS adjustments 2021-01-26 22:58:45 -06:00
terrafrost
845a2275e8 X509: CS adjustments 2021-01-25 13:02:05 -06:00
terrafrost
bdb6c08c35 misc docblock adjustments 2021-01-25 12:36:02 -06:00
terrafrost
1795b5df6a SSH/Agent: EC keys didn't work with agent 2021-01-25 12:21:14 -06:00
terrafrost
3d4767301c X509: fix niche issue with computeKeyIdentifier 2021-01-25 12:17:36 -06:00
terrafrost
5bddb7b13f Merge branch '1.0' of https://github.com/phpseclib/phpseclib into 1.0 2021-01-16 10:58:00 -06:00
terrafrost
8e7acd8842 Merge branch '1.0' into 2.0 2021-01-16 10:32:10 -06:00
Jan Slabon
e5a226f6be Added support of keys with PSS algorithm-identifier 2021-01-16 10:31:56 -06:00
Jan Slabon
131459996b Added support for absent parameters field in PSS keys
See [here](https://tools.ietf.org/html/rfc4055#section-3.1) for details.
2021-01-16 10:24:55 -06:00
terrafrost
c1b70c21cb RSA: the salt length isn't saved for new keys 2021-01-16 09:59:45 -06:00
terrafrost
3e32d5a853
Merge pull request #1573 from kylekatarnls/feature/allow-to-use-extensions
Allow to extend X509 extensions
2021-01-15 21:57:07 -06:00
Bastien Miclo
57476bf304
Cleanup import 2021-01-14 16:18:07 +01:00
Bastien Miclo
e69049be5e
Add getRegisteredExtension() 2021-01-14 16:15:55 +01:00
terrafrost
5f8ca76d0f RSA: the salt length, if not specified, is the length of the hash 2021-01-14 08:11:53 -06:00
terrafrost
06cd62ae55 Merge branch 'rsa-exceptions' into 3.0 2021-01-14 03:10:59 -06:00
terrafrost
bfb49c06e8 RSA: throw exceptions instead of returning false 2021-01-13 12:08:23 -06:00
terrafrost
9b24cc87d0 Merge branch 'ssh-auth-alteration-2.0' into ssh-auth-alteration-3.0 2021-01-12 23:23:26 -06:00
terrafrost
2eae2989f4 SSH2: adjustments for 2.0 branch 2021-01-12 23:20:47 -06:00
terrafrost
dc7f8dafbc Merge branch 'ssh-auth-alteration-1.0' into ssh-auth-alteration-2.0 2021-01-12 23:18:16 -06:00
terrafrost
7f1b53fb67 SSH2: behave like putty with broken publickey auth 2021-01-12 23:12:19 -06:00
Simon Podlipsky
b82766486a Fix imports in PublicKeyLoader 2021-01-12 11:12:31 -06:00
terrafrost
fcf691124e
Merge pull request #1578 from kylekatarnls/fix/end-as-date-time
Allow to pass end date as DateTime
2021-01-12 10:31:24 -06:00
terrafrost
ee74b22c01
Merge pull request #1575 from kylekatarnls/fix/phpdoc
Fix encodeDER() PHPDoc
2021-01-12 10:28:33 -06:00
terrafrost
05d934c89f RSA: improve identification of public / private PKCS1 / PKCS8 keys 2021-01-08 09:01:31 -06:00
terrafrost
d9b8341e9c Merge branch '2.0' into 3.0 2021-01-07 20:24:15 -06:00
terrafrost
649609d4b2 Merge branch '1.0' into 2.0 2021-01-07 20:21:59 -06:00
terrafrost
9de5f3f8ed X509: always parse the first cert of a bundle 2021-01-07 20:21:27 -06:00
terrafrost
e14e9e92ca EC: use the correct case up front 2021-01-07 19:35:34 -06:00
Bastien Miclo
cce21f077f
Allow to pass end date as DateTime 2021-01-07 22:05:17 +01:00
Bastien Miclo
0be984fd80
Fix encodeDER() PHPDoc 2021-01-06 23:57:47 +01:00
Bastien Miclo
3d35690a0a
Allow to extend X509 extensions 2021-01-06 23:25:23 +01:00
terrafrost
7b7d254a6c rm docblock templates 2020-12-30 09:08:05 -06:00
terrafrost
b14caee559 Merge branch '2.0' into 3.0 2020-12-30 05:25:02 -06:00
terrafrost
d2cadfd329 Merge branch '1.0' into 2.0 2020-12-30 05:24:54 -06:00
terrafrost
a19b5b4ca8 update how @internal phpdoc attributes are used 2020-12-30 05:05:54 -06:00
terrafrost
7a9418e4e0 SSH2: suppress errors on stream_select calls 2020-12-23 10:39:00 -06:00
Bastien Miclo
ba89cdbf0f Support DateTimeImmutable 2020-12-23 08:16:22 -06:00
Bastien Miclo
224abbc1f9 Show array-failure in load() method 2020-12-23 07:49:08 -06:00
terrafrost
02fa3b142e EC/PKCS1: throw exception when trying to load non-strings 2020-12-23 07:06:04 -06:00
William Desportes
1f66009c1b
Fix a Doctum 5.3.0-dev phpdoc reported error 2020-12-19 21:28:29 +01:00
terrafrost
f5d7c06264 Merge branch '2.0' into 3.0 2020-12-19 01:12:16 -06:00
terrafrost
c680c604c8 Merge branch '1.0' into 2.0 2020-12-19 01:07:08 -06:00
terrafrost
c21147a5bd SFTP: clean up real time logging 2020-12-19 01:05:36 -06:00
terrafrost
31c5e50902 SFTP: change where stat cache is being cleared for uploads 2020-12-19 01:02:06 -06:00
terrafrost
08478feee7 SFTP: resuming uploads didn't work 2020-12-18 17:31:55 -06:00
terrafrost
20852adf78 SSH2/Stream: stream_select needs to be able to access $fsock 2020-12-18 16:12:14 -06:00
terrafrost
99e8d7b822 PKCS8: fix E_WARNING 2020-12-17 08:13:56 -06:00
terrafrost
91ab47e4a5 Merge branch 'keepalive-2.0' into 2.0 2020-12-16 23:14:58 -06:00
terrafrost
2b5e205aec Merge branch 'keepalive-1.0' into 1.0 2020-12-16 23:14:49 -06:00
terrafrost
47e1ce60b3 SSH2: syntax error 2020-12-16 09:13:05 -06:00
terrafrost
0399faa86b SSH2: syntax error 2020-12-16 09:10:35 -06:00
terrafrost
32bfbcd7d2 Merge branch 'keepalive-2.0' into keepalive-3.0 2020-12-16 08:36:43 -06:00
terrafrost
07a7c19407 Merge branch 'keepalive-1.0' into keepalive-2.0 2020-12-16 08:27:50 -06:00
terrafrost
8d567cdf29 SSH2: keepalive tweak 2020-12-16 08:26:03 -06:00
terrafrost
0ddcff753f Merge branch 'keepalive-2.0' into keepalive-3.0 2020-12-15 23:52:53 -06:00
terrafrost
43b2708254 Merge branch 'keepalive-1.0' into keepalive-2.0 2020-12-15 23:36:42 -06:00
terrafrost
f0501ff72b SSH2: get_binary_packet() doesn't know about channel type 2020-12-15 23:11:54 -06:00
terrafrost
a4af48c7a6 Merge branch 'keepalive-2.0' into keepalive-3.0 2020-12-15 08:52:43 -06:00
terrafrost
d904f08a46 SSH2: last merge should have used microtime(true) but didn't 2020-12-15 08:43:21 -06:00
terrafrost
a35535e9c6 Merge branch 'keepalive-1.0' into keepalive-2.0 2020-12-15 08:39:38 -06:00
terrafrost
194e642448 SSH2: handle keepalive@openssh.com packets 2020-12-15 08:25:42 -06:00
terrafrost
e4bf7b111a Merge branch '2.0' into 3.0 2020-12-12 19:22:36 -06:00
terrafrost
5701295017 Merge branch '1.0' into 2.0 2020-12-12 17:13:41 -06:00
terrafrost
266f16816a enable unit tests for PHP 8 / PHPUnit 9 2020-12-12 15:11:04 -06:00
terrafrost
c08683402e Merge branch '2.0' into 3.0 2020-12-07 08:04:12 -06:00
terrafrost
07e1160108 Merge branch '1.0' into 2.0 2020-12-07 08:01:58 -06:00
terrafrost
ee4af462b6 SSH2: end connection faster for algorithm mismatch 2020-12-07 08:00:44 -06:00
terrafrost
afca3030c0 Merge branch '2.0' into 3.0 2020-11-26 21:09:21 -06:00
terrafrost
1ec3efa04b Merge branch '1.0' into 2.0 2020-11-26 21:09:17 -06:00
terrafrost
0b20aff6ff SFTP: CS adjustments 2020-11-26 21:08:49 -06:00
terrafrost
b310f694ef Merge branch '2.0' into 3.0 2020-11-26 19:10:48 -06:00
terrafrost
bf03b0302b Merge branch '1.0' into 2.0 2020-11-26 19:10:39 -06:00
Adrian
9547587cb7 SFTP: add stream to get method 2020-11-26 18:56:02 -06:00
terrafrost
e69b79eba7 Merge branch 'codelts' into 3.0 2020-11-21 10:51:30 -06:00
terrafrost
7e337c9bd7 Merge branch '2.0' into 3.0 2020-11-01 09:31:17 -06:00
terrafrost
e18880009b Merge branch '1.0' into 2.0 2020-10-31 15:15:06 -05:00
Thomas A. Hirsch
b2ae60f0a9 $progressCallback should be called after a specific amount of data has been received and not, if its just requested, as the requested packets might be more as the available and received data. 2020-10-31 15:05:05 -05:00
terrafrost
336fe5c8f8 Merge branch '2.0' into 3.0 2020-10-29 21:46:30 -05:00
terrafrost
da96fbd212 Merge branch '1.0' into 2.0 2020-10-29 21:35:41 -05:00
terrafrost
00c9edc058 X509: don't attempt to parse multi-cert PEMs 2020-10-29 21:30:01 -05:00
terrafrost
e81b31948b Merge branch '1.0' into 2.0 2020-09-28 06:20:16 -05:00
terrafrost
96c4c3bc58 SSH2: add setKeepAlive() method 2020-09-28 06:17:49 -05:00
terrafrost
5983df848c EC: add support for PKCS1 private keys with separate parameters 2020-09-19 08:36:09 -05:00
William Desportes
5711e7fbe4
Fix phpdoc issues reported by Doctum 2020-09-12 10:14:54 +02:00
William Desportes
480af6b980
Merge branch '2.0' into 3.0 2020-09-09 10:46:22 +02:00
William Desportes
05f6467b1d
Merge branch '1.0' into 2.0 2020-09-09 09:56:23 +02:00
William Desportes
2ae683479a
Fix phpdoc errors 2020-09-09 09:43:26 +02:00
terrafrost
fc4a1b0083 Merge branch '2.0' into 3.0 2020-08-30 08:22:20 -05:00
terrafrost
604b94d011 Merge branch '1.0' into 2.0 2020-08-30 08:22:13 -05:00
terrafrost
f4e017f383 SFTP: "fix" rare resource not closed error 2020-08-30 08:21:50 -05:00
terrafrost
dcc85b795d Merge branch '2.0' into 3.0 2020-08-17 07:30:46 -05:00
terrafrost
f0710fc77e Merge branch '1.0' into 2.0 2020-08-17 07:29:12 -05:00
terrafrost
ded9b3043f SSH2: suppress 'broken pipe' errors 2020-08-17 07:28:17 -05:00
terrafrost
8f62b798ef Merge branch '2.0' into 3.0 2020-08-09 11:00:57 -05:00
terrafrost
ed20bba5e7 Merge branch '1.0' into 2.0 2020-08-09 11:00:49 -05:00
terrafrost
239bc63618 SSH2: uploads on low speed networks could get in infinite loop 2020-08-09 11:00:12 -05:00
terrafrost
0747be3d27 Merge branch '1.0' into 2.0 2020-08-01 04:06:57 -05:00
terrafrost
a019cf3f33
Merge pull request #1503 from VincentLanglet/default
_parseKey should return false by default
2020-08-01 04:05:17 -05:00
terrafrost
92a67a03aa Merge branch '2.0' into 3.0 2020-07-31 21:27:38 -05:00
terrafrost
5369b86808 Merge branch '1.0' into 2.0 2020-07-31 08:06:58 -05:00
terrafrost
40b4f1d557 SSH2: when building algo list look at if crypto engine is set 2020-07-31 08:05:31 -05:00
terrafrost
5fbdb8b582 Merge branch '2.0' into 3.0 2020-07-31 04:11:26 -05:00
terrafrost
4eb477051c Merge branch '1.0' into 2.0 2020-07-31 02:50:00 -05:00
terrafrost
c7d7b36018 SSH2: don't try to login as none auth method for CoreFTP server 2020-07-31 02:49:21 -05:00
terrafrost
abe8f6aab8 Merge branch '2.0' into 3.0 2020-07-30 22:59:13 -05:00
terrafrost
82406869fb Merge branch '1.0' into 2.0 2020-07-30 22:58:56 -05:00
terrafrost
ea653e1b01 SFTP: add enableDatePreservation() / disableDatePreservation() 2020-07-30 09:12:23 -05:00
Vincent Langlet
05a564c136 Return false by default 2020-07-30 15:42:02 +02:00
terrafrost
478672607c PKCS8: fix E_NOTICE 2020-07-19 22:40:42 -05:00
terrafrost
8af870963a Merge branch '2.0' into 3.0 2020-07-17 07:55:11 -05:00
terrafrost
64708aed3b Merge branch '1.0' into 2.0 2020-07-17 07:54:02 -05:00
terrafrost
d077c7b296 X509: really looong base64 encoded strings broke extractBER() 2020-07-17 07:53:05 -05:00
terrafrost
e2fa9f3925 Revert "..."
This reverts commit 827607575a.
2020-07-08 08:48:48 -05:00
terrafrost
9e81c7e257 Merge branch '2.0' into 3.0 2020-07-07 23:47:47 -05:00
terrafrost
c89cd789f4 Merge branch '1.0' into 2.0 2020-07-07 23:47:41 -05:00
terrafrost
d8e39b0864 SFTP: change upload packet size from 4KB to 32KB 2020-07-07 23:47:17 -05:00
terrafrost
827607575a ... 2020-07-03 13:31:37 -05:00
terrafrost
844d7ab539 X509: getPublicKey() didn't work for SPKAC 2020-06-02 08:51:04 -05:00
terrafrost
97ab584c63 Merge branch '2.0' into 3.0 2020-05-31 12:22:45 -05:00
terrafrost
51f2a9386b Merge branch 'timeout-alt-2.0' into 2.0 2020-05-31 12:22:35 -05:00
terrafrost
c2ab2a4884 X509: publicKey wasn't being loaded for CSRs / SPKACs 2020-05-31 02:11:44 -05:00
terrafrost
cc3ad79058 Crypt/Base: create_function isn't needed for PHP >= 5.3.0 2020-05-29 08:34:40 -05:00
terrafrost
ee278f3062 Merge branch 'timeout-alt-1.0' into timeout-alt-2.0 2020-05-29 08:10:36 -05:00
terrafrost
9651d075e3 SSH2: timeout after 5s for channel closures 2020-05-29 08:10:03 -05:00
terrafrost
32acf235e8 SymmetricKey: rm unused line 2020-05-16 13:19:24 -05:00
terrafrost
a82dc8e009 SymmetricKey: ECB doesn't use an IV either 2020-05-15 07:53:14 -05:00
terrafrost
f780640ecf move more common elements to StreamCipher class 2020-05-12 22:03:06 -05:00
terrafrost
995bf77315 SSH2: rm format_log_helper method 2020-05-12 08:35:45 -05:00
terrafrost
cc45f18cb8 stream ciphers don't use IVs 2020-05-12 08:15:49 -05:00
terrafrost
ce6d28789a ChaCha20: rm unused 'use' statement 2020-05-12 07:00:38 -05:00
terrafrost
85d55164a6 Merge branch '2.0' into 3.0 2020-05-10 23:52:28 -05:00
terrafrost
ceaffa8fa9 Merge branch '1.0' into 2.0 2020-05-10 23:52:20 -05:00
terrafrost
ef9785d9c5 SFTP: if /path/to/file is a file then /path/to/file/whatever errors 2020-05-10 23:51:16 -05:00
terrafrost
3bce91c2cb Merge branch '2.0' into 3.0 2020-05-10 10:27:00 -05:00
terrafrost
f79b34f75a Merge branch '1.0' into 2.0 2020-05-10 10:26:53 -05:00
terrafrost
bcaa494af2 ANSI: fix "Number of elements can't be negative" error 2020-05-10 10:25:03 -05:00
terrafrost
4af7ca4c09 Merge branch '2.0' into 3.0 2020-05-01 21:36:02 -05:00
terrafrost
2a6fc5695c Merge branch '1.0' into 2.0 2020-05-01 21:35:53 -05:00
terrafrost
a07f5bc6a2 SFTP: realpath('') produced an error 2020-05-01 21:34:44 -05:00
terrafrost
3b99d23220 Merge branch '1.0' into 2.0 2020-04-28 22:07:45 -05:00
Simon Podlipsky
e29f5bda14 Fix return type hint of SSH2::read() 2020-04-28 22:07:39 -05:00
terrafrost
0b231cc53b RSA: rm ENCRYPTION_PKCS15_COMPAT mode 2020-04-19 15:10:38 -05:00
terrafrost
881fbd78ee Hash: add __toString() method 2020-04-19 09:19:27 -05:00
terrafrost
10ce0b9b21 PuTTY: comments weren't settable via toString() method 2020-04-18 10:44:15 -05:00
terrafrost
92d0cd837e PKCS8: add extractEncryptionAlgorithm() method 2020-04-17 22:51:03 -05:00
terrafrost
0f8486cc87 allow strinable objects to be loaded instead of just strings 2020-04-13 07:58:00 -05:00
terrafrost
94d3403ed3 getLoadedFormat() threw exception for loadFormat()-loaded keys 2020-04-08 06:15:46 -05:00
terrafrost
327a13d133 $key->getLoadedFormat didn't work on EC / DSA keys 2020-04-08 05:07:47 -05:00
terrafrost
ceff4cfbbc rm call_user_func() calls 2020-04-05 15:04:22 -05:00
terrafrost
d37dffdb81 SSH: use an anonymous function for logging callback 2020-04-05 10:29:57 -05:00
terrafrost
9c0ad2f1f4 SFTP: optimize call to parent login method for 2.0 branch 2020-04-04 12:49:56 -05:00
terrafrost
e02b93443c Merge branch '1.0' into 2.0 2020-04-04 12:49:41 -05:00
terrafrost
c301ddf38f SFTP: make it so extending SFTP class doesn't cause a segfault 2020-04-04 12:47:30 -05:00
terrafrost
e72c88cf16 Merge branch '1.0' into 2.0 2020-04-03 07:34:08 -05:00
Tyson Andre
41eb0d8012 Fix logic error reading random bytes from /dev/urandom
Fixes a bug introduced in c2be7e648

Previously, this would return those bytes if the number of bytes read
was **less than** the number of bytes this was trying to read.

In practice, I believe this would mean bytes from /dev/urandom would never
get used.  (Noticed when upgrading phpseclib)
2020-04-03 07:33:58 -05:00
terrafrost
542bb6cca1 Merge branch '2.0' into 3.0 2020-03-30 07:36:43 -05:00
terrafrost
fc87edce6e PKCS8: throw an exception when no ASN1 maps can be used 2020-03-30 00:19:45 -05:00
terrafrost
5d5ed4a449 RSA: fix for RSA PKCS1 public keys masquerading as public keys 2020-03-29 23:31:13 -05:00
terrafrost
7e67f882ee Merge branch '1.0-mkdir-mode-adjustment' into 2.0-mkdir-mode-adjustment 2020-03-28 18:05:49 -05:00
terrafrost
5e2951f83a SFTP: change the mode with a SETSTAT instead of MKDIR 2020-03-28 18:04:26 -05:00
terrafrost
ef04a176dd Merge branch '2.0' into 3.0 2020-03-09 20:02:17 -05:00
terrafrost
63a76e88a1 Merge branch '1.0' into 2.0 2020-03-09 19:49:37 -05:00
terrafrost
229f6af1ca SFTP: re-use SSH2 login method 2020-03-09 19:49:20 -05:00
terrafrost
0a6f457d14 Merge branch '3.0-speed-up-uploads' into 3.0 2020-03-07 22:21:48 -06:00
terrafrost
5f30f59d53 Merge branch '2.0-speed-up-uploads' into 2.0 2020-03-07 22:21:31 -06:00
terrafrost
69840093be Merge branch '1.0-speed-up-uploads' into 1.0 2020-03-07 22:21:21 -06:00
terrafrost
b1a1fb5a08 Merge branch '2.0' into 3.0 2020-03-07 21:36:06 -06:00
terrafrost
21c5aa3de3 Merge branch '1.0' into 2.0 2020-03-07 21:35:34 -06:00
terrafrost
95d189ca72 SSH2: try logging in with none as an auth method first 2020-03-07 21:34:38 -06:00
terrafrost
ddd5a08c5f SSH2: update identifier to 3.0 2020-03-07 21:19:00 -06:00
terrafrost
6e55470431 Merge branch '2.0' into 3.0 2020-03-02 10:57:07 -06:00
terrafrost
6f0e3d22d6 Merge branch '1.0' into 2.0 2020-03-02 10:34:06 -06:00
terrafrost
fc0832ae99 ASN1: fix for malformed ASN1 strings 2020-03-02 10:18:30 -06:00
terrafrost
053e856a47 Merge branch '2.0-speed-up-uploads' into 3.0-speed-up-uploads 2020-02-25 20:45:18 -06:00
terrafrost
a563ee6704 Merge branch '1.0-speed-up-uploads' into 2.0-speed-up-uploads 2020-02-25 20:42:32 -06:00
terrafrost
08e4096e7c SFTP: speed up uploads 2020-02-25 20:37:20 -06:00
terrafrost
8c8e805c73 Merge branch '2.0' into 3.0 2020-02-25 00:00:25 -06:00
terrafrost
c18159618e Merge branch '1.0' into 2.0 2020-02-24 22:16:50 -06:00
terrafrost
db6ce986f3 Revert "SFTP: don't buffer up download requests (PuTTY doesn't)"
This reverts commit 333e2e4c2b.
2020-02-24 22:14:28 -06:00
terrafrost
59a7b1166b SSH2: use RFC8332 auth even if host key algo isn't RSA 2020-02-24 19:43:32 -06:00
terrafrost
ee10846cac SSH2: more consistent exception handling 2020-02-24 18:16:31 -06:00
terrafrost
e8da444bb7 SFTP/Stream: expand private key support to more than just RSA 2020-02-22 22:21:19 -06:00
terrafrost
8dac275a03 SFTP: rm size() (we already have filesize()) 2020-02-11 23:25:04 -06:00
terrafrost
b95120c808 SFTP: change visibility of sortOptions for phpseclib2_compat 2020-02-11 06:29:21 -06:00
terrafrost
f8685c0577 SFTP: _get_sftp_packet() -> get_sftp_packet() 2020-02-10 21:09:22 -06:00
terrafrost
f44d39fb19 SFTP: rm permissions attribute 2020-02-10 21:05:00 -06:00
terrafrost
bbf80c878d rm SSH1 2020-02-04 06:15:55 -06:00
terrafrost
9f09f482ba Merge branch '2.0' into 3.0 2020-02-04 06:15:12 -06:00
terrafrost
40998159a0 Merge branch '1.0' into 2.0 2020-02-04 06:15:04 -06:00
terrafrost
6cb500d7c8 SSH1: typo 2020-02-04 06:14:40 -06:00
terrafrost
cacd08a768 Agent/Identity: ECDSA -> EC 2020-02-03 00:56:37 -06:00
terrafrost
7387d79a4f Merge branch '2.0' into 3.0 2020-02-01 22:50:28 -06:00
terrafrost
8a761b5265 Merge branch '1.0' into 2.0 2020-02-01 20:14:46 -06:00
terrafrost
c2be7e6480 return early if fread() response is bool(false) 2020-02-01 17:30:52 -06:00
terrafrost
d0856357ea SSH2: don't adjust ssh-ed25519 signatures 2020-01-19 08:05:55 -06:00
terrafrost
2b28c3814b Keys/PuTTY: better support RFC4716 keys 2020-01-19 02:09:39 -06:00
terrafrost
14c09f8527 throw exceptions for all private formats not supporting encryption 2020-01-18 22:53:35 -06:00
terrafrost
0afd386114 RSA: PuTTY public keys couldn't be saved 2020-01-18 22:12:00 -06:00
terrafrost
bed8be26d7 Keys/OpenSSH: throw an exception if you try to encrypt 2020-01-18 18:53:09 -06:00
terrafrost
0e1dff2be7 RSA: fix MSBLOB encoding error 2020-01-18 17:47:24 -06:00
terrafrost
6470d1c80e SSH2: @stream_select -> stream_select 2020-01-17 06:38:54 -06:00
terrafrost
cb87d1885b
Merge pull request #1444 from tomsommer/patch-2
Remove error suppression from stream_select()
2020-01-17 06:37:44 -06:00
terrafrost
500e3225a8 SSH2: logging enhancements 2020-01-17 06:06:01 -06:00
terrafrost
81152288f8 Merge branch '1.0' into 2.0 2020-01-17 06:05:12 -06:00
terrafrost
3f448d0904 ... 2020-01-17 05:54:42 -06:00
terrafrost
f1772cbf7a ... 2020-01-17 05:42:29 -06:00
terrafrost
0a1c10386a ... 2020-01-17 05:10:12 -06:00
terrafrost
b4bff90106 Merge branch '2.0' into 3.0 2020-01-17 04:09:49 -06:00
terrafrost
2b08c31fb7 Merge branch '1.0' into 2.0 2020-01-17 03:59:18 -06:00
terrafrost
88568b8020 SSH2: logging enhancements 2020-01-17 03:37:25 -06:00
Tom Sommer
40bd4192fc
Update SSH2.php 2020-01-17 09:41:45 +01:00
terrafrost
ef5e6a909f X509: fix PHP4 errors 2020-01-17 02:12:27 -06:00
Tom Sommer
e2841212cb
Remove error suppression from stream_select()
Suppressing errors from stream_select() makes debugging timeouts extremely hard.
2020-01-10 11:58:36 +01:00
terrafrost
61ffe1a147 SSH2: fix rare key exchange issue 2020-01-07 00:20:47 -06:00
terrafrost
3ba5902046 RSA / X509: misc fixes (mostly related to PSS) 2020-01-04 16:26:55 -06:00
terrafrost
299f7b554d X509: fix bitwise mask for PSS / PKCS1 RSA mode checking 2020-01-03 08:45:16 -06:00
terrafrost
c4e07725aa EC: don't call loadCurveByParams if params is null 2020-01-02 05:43:27 -06:00
terrafrost
a7b1d031bb visibility changes for phpseclib2_compat 2019-12-30 22:19:07 -06:00
terrafrost
be221d8b23 Merge branch '2.0' into 3.0 2019-12-25 17:49:03 -06:00
terrafrost
de4a60de9d Merge branch '1.0' into 2.0 2019-12-25 17:36:31 -06:00
terrafrost
333e2e4c2b SFTP: don't buffer up download requests (PuTTY doesn't) 2019-12-25 11:31:43 -06:00
terrafrost
0c8b6961e3 EC: fix PKCS8 Ed25519 private keys 2019-12-17 07:56:16 -06:00
terrafrost
f1d04b23db Merge branch '3.0' into phpseclib3 2019-11-23 01:55:36 -06:00
terrafrost
ea27295c8f SSH2: ssh-ed25519 keys didn't work 2019-11-23 00:58:12 -06:00