Commit Graph

524 Commits

Author SHA1 Message Date
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
5f60f96487 File/ASN1/Maps: CS adjustments
these are mostly backported from PR#1754. the only modified files
from that PR are:

- RSAPrivateKey
- OtherPrimeInfo
2022-02-27 00:36:32 -06:00
Jack Worman
ea9f6540f3 PSR12 fixes
PSR12 fixes
2022-02-19 17:06:13 -06:00
terrafrost
247d23f40e X509: code cleanup 2022-02-14 17:32:20 -06:00
Jack Worman
b96fc26dbc Psalm coverage to everywhere except phpseclib/Crypt/, phpseclib/Math/ and tests/
Revert "Removed remaining tabs"

This reverts commit 31c077d6b1.

Revert "Whitespace php-cs-fixer.php rules added"

This reverts commit 25e336614d.

Addressing comments
2022-02-14 17:30:41 -06:00
Jack Worman
ef66d9f7dd php-cs-fixer ci
php-cs-fixer ci
2022-02-01 20:29:48 -06:00
terrafrost
927f8062a7 Merge branch '2.0' into 3.0 2021-06-24 21:45:57 -05:00
terrafrost
5a3e622c4d Merge branch '1.0' into 2.0 2021-06-24 21:38:25 -05:00
terrafrost
973bb072a0 ASN1: return false when not enough bytes are available 2021-06-24 21:36:03 -05:00
terrafrost
f0736a8828 X509: getPublicKey() didn't return correct RSA key type 2021-06-23 22:00:36 -05:00
terrafrost
d7c96ebfb2 ASN1: change how default values are processed for ints and enums 2021-06-01 20:00:40 -05:00
terrafrost
d0a18020f3 Merge branch '2.0' into 3.0 2021-05-23 10:39:25 -05:00
terrafrost
333d2f9ffd Merge branch '1.0' into 2.0 2021-05-23 10:38:31 -05:00
terrafrost
0a2dc24489 X509: extra characters before cert weren't being removed 2021-05-23 10:38:11 -05:00
terrafrost
84f07cc9cb X509: signing with pw protected PSS keys yielded errors 2021-05-22 10:10:09 -05:00
terrafrost
b3b54e8c6b Merge branch '2.0' into 3.0 2021-05-09 08:00:02 -05:00
terrafrost
b2267e24b0 Merge branch '1.0' into 2.0 2021-05-09 07:54:40 -05:00
danieljankowski
b07738814e ASN1: fix timezone issue when non-utc time is given 2021-05-09 07:08:20 -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
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
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
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
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
052cb7d762 X509: add getCurrentCert method (since $currentCert is now private) 2021-02-10 08:26:58 -06:00
terrafrost
845a2275e8 X509: CS adjustments 2021-01-25 13:02:05 -06:00
terrafrost
3d4767301c X509: fix niche issue with computeKeyIdentifier 2021-01-25 12:17:36 -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
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