terrafrost
6cd6e8ceab
X509: fix for weird characters in subjaltname
2023-09-25 10:45:13 -05:00
terrafrost
b85ce73d17
AES: rm redundant setKey() method and fix setKeyLength()
2023-09-21 15:07:09 -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
34d00869e5
SSH2: backport getTimeout()
2023-03-05 04:07:26 -06:00
terrafrost
1b1e729632
backport enhancements from the 2.0 branch
2023-02-11 22:20:03 -06:00
Phil Davis
24845ccbcc
delete of non-existent folder returns true when it used to ret
2022-10-04 17:56:23 -05:00
terrafrost
34a277ff16
a few small tweaks
2022-07-28 16:44:29 -05:00
terrafrost
0c8994bbad
Crypt/RSA: add support for loading OpenSSH encrypted keys
2022-07-28 08:11:42 -05:00
terrafrost
45d2ddcbc4
RSA: add support for loading PuTTY v3 keys
2022-02-17 00:32:21 -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
9b587a87c0
Tests: add test for connecting to non-existant host
2022-01-08 16:35:57 -06:00
terrafrost
30a9a1541c
Tests/SSH2: fix intermittently failing unit test
2021-10-13 21:03:54 -05:00
terrafrost
6f8d12ffc7
Tests: tests were being skipped because their deps had no asserts
2021-10-12 20:35:38 -05:00
terrafrost
973bb072a0
ASN1: return false when not enough bytes are available
2021-06-24 21:36:03 -05:00
terrafrost
c3560c2d4d
RSA: OAEP decryption didn't check labels correctly
2021-06-12 07:06:08 -05:00
terrafrost
581fbdb671
CS adjustments
2021-04-03 16:41:10 -05:00
terrafrost
5fca2bcb7b
Tests/RSA: test requires sha256
2021-04-03 16:33:52 -05:00
terrafrost
7a5846ccee
Test/RSA: add test for "strict" PKCS1 sigs without NULLs
2021-04-03 16:18:31 -05:00
terrafrost
10cee4514c
Tests/ASN1: test for bad tag
2021-04-03 13:53:20 -05:00
terrafrost
c1d21edb94
Tests/ASN1: add tests for constructed mismatches
2021-04-03 13:44:29 -05:00
terrafrost
6be326e7e7
Tests/ASN1: add test for OID garbage bytes
2021-04-03 12:04:07 -05:00
terrafrost
dbd210c4a7
Tests/ASN1: add test for null garbage bytes
2021-04-03 11:38:11 -05:00
Jan Slabon
e5a226f6be
Added support of keys with PSS algorithm-identifier
2021-01-16 10:31:56 -06:00
terrafrost
df94788edf
Tests/X509: update unit test
2021-01-07 20:36:09 -06:00
terrafrost
9de5f3f8ed
X509: always parse the first cert of a bundle
2021-01-07 20:21:27 -06:00
terrafrost
e6abc61f45
rm adding of dupe classes (they break annotations)
2020-12-12 21:39:58 -06:00
terrafrost
245a84b57f
make unit tests pass without gnu parallel
2020-12-12 17:26:44 -06:00
terrafrost
266f16816a
enable unit tests for PHP 8 / PHPUnit 9
2020-12-12 15:11:04 -06:00
terrafrost
d9196e4a83
X509: fix unit test for multi-cert pems
2020-11-02 19:54:11 -06:00
terrafrost
00c9edc058
X509: don't attempt to parse multi-cert PEMs
2020-10-29 21:30:01 -05:00
terrafrost
935fa407e3
ASN1: add unit test for malformed ASN1 strings
2020-03-02 10:03:02 -06:00
Brice Figureau
207cd0f4ea
( #1423 ) make PSS verification work for non power of 2 keys
...
RFC3447 doesn't require RSA public keys to be power of 2 keys.
The actual validation code doesn't work when trying to verify
a PSS signature generated with a non power of two key.
This small patch adds support for such keys.
2019-10-20 13:27:01 -05:00
Remi Collet
17610d105c
fix tests for 5.3
2019-09-18 08:03:35 -05:00
terrafrost
11fea7d004
fix bug with toBytes() with fixed precision negative numbers
2019-09-15 17:19:35 -05:00
terrafrost
511f55de3d
X509: fix issue with explicit time tags whose maps expect implicit
2019-08-02 22:00:33 -05:00
terrafrost
19ad5d27da
X509: ips in nameconstraints ext include netmask
2019-07-30 07:37:16 -05:00
terrafrost
d0014cbb20
Tests/BigInteger: add two more divide tests
2019-06-19 22:21:24 -05:00
terrafrost
cd7de5723c
RSA: add support for OpenSSH private keys
2019-06-09 23:42:41 -05:00
terrafrost
677ae387b0
BigInteger: backport GMP fixes from master branch
2019-05-26 15:38:18 -05:00
terrafrost
ade48c2cb1
Tests/BigInteger: GMP engine didn't always return 1 or -1
2019-05-26 12:13:54 -05:00
terrafrost
e9d99a6683
Tests/BigInteger: add unit test for 0 loaded as base-10
2019-05-26 11:41:41 -05:00
terrafrost
9e31808f61
Tests/X509: fix for last unit test
2019-05-26 10:28:21 -05:00
terrafrost
3d7acde183
Tests/X509: add unit test for long tags
2019-05-26 03:10:43 -05:00
terrafrost
e793461543
ASN1: revamp how OIDs are handled
2019-05-01 09:17:53 -05:00
terrafrost
431b3570fa
Tests/X509: add validatedate unit test
2018-11-22 12:40:32 -06:00
Michiel Brandenburg
b4e66d343e
Fixes #1296 parsing invalid certificate
2018-09-17 00:25:55 -05:00
Dean Sas
6fcd8f3a6e
Remove needless assertion in rawlist test
2018-08-18 08:36:40 -05:00
Dean Sas
426dbdbfcd
Ensure SFTP::rawlist gives same results regardless of statcache
...
Previously SFTP::rawlist gave different results depending on whether the
stat cache was enabled or not. With the stat cache turned off it did not
treat directories correctly, as it relied on the stat cache even though
it was not populated.
2018-08-18 08:36:16 -05:00
terrafrost
7fc3cf69f8
Tests/ASN1: add test for commit 6dc7b3e
2018-04-15 08:30:02 -05:00
terrafrost
48e50fe8fa
Tests/BigInteger: add test for conversion of 48 to signed hex
2018-04-09 23:36:36 -05:00