Commit Graph
65 Commits
Author SHA1 Message Date
Dengke Tang 30155092b2 build and test as well 2023-02-22 14:54:13 -08:00
Dengke Tang 08aa34b8c1 skip verification 2023-02-22 14:42:07 -08:00
Dengke Tang b6a3a29872 use mac 2023-02-22 14:31:26 -08:00
Dengke Tang 093cf4eb0d why not find 2023-02-22 14:23:53 -08:00
Dengke Tang f183523de4 make a github action to test pecl before release 2023-02-22 14:13:37 -08:00
Dengke Tang 9de1d33dd9 more fix 2023-02-22 14:01:30 -08:00
Dengke Tang 1f6f81412b create release action when we cut a new release 2023-02-22 13:31:11 -08:00
Dengke Tang f6314a23e9 update the script path from ci 2023-02-22 11:52:08 -08:00
Dengke Tang 826974ab25 change dir from run test 2023-02-22 11:47:44 -08:00
Dengke Tang 9de07efb76 restructure 2023-02-22 11:42:34 -08:00
Dengke Tang 9ff650e6d9 clean up 2023-02-21 21:30:06 -08:00
Dengke Tang 17b6a93ced run test 2023-02-21 21:17:07 -08:00
Dengke Tang 1a0efbfa4d try to just use make test? 2023-02-21 21:13:05 -08:00
Dengke Tang 82abc2d4da make test after the composer nonsense 2023-02-21 19:01:11 -08:00
Dengke Tang 31a5785c2d load extension before run composer 2023-02-21 18:53:50 -08:00
Dengke Tang e5e998aba9 require composer to load awscrt extension 2023-02-21 14:28:55 -08:00
Waqar Ahmed Khan 56009e8c03 Latest Submodules (#73) 2023-02-06 19:00:30 -08:00
Waqar Ahmed Khan f5c64ee7c5 Fixing a low severity issue with parsing certificate Common Name (CN) (#84) v1.0.4 2023-01-31 15:08:25 -08:00
Waqar Ahmed Khan 78c5260ba4 Update s2n (#81) v1.0.3 2023-01-26 17:45:16 -08:00
Dengke Tang 904942197d fix win build (#72) 2022-11-23 09:41:25 -08:00
Michael Graeb 541b3c8952 Fix it so CI runs on branches with '/' in name (#62) 2022-04-15 11:10:11 -07:00
Michael Graeb 09a84b7a52 Update phpunit for security fixes (#61) 2022-04-06 16:31:22 -07:00
SamRemis 3942776a8c removed conflict (#48) v1.0.2 2021-09-03 15:57:30 -07:00
Justin Boswell 2f8d2ee756 Made PHP extension compile with openssl by default (#41)
* Made PHP extension compile with openssl

* Use catchsegv to dump a callstack

* Updated to use aws_crt_crypto_share()

* Much faster builds by making cmake parallel if supported

* Make sure all CRT threads shutdown prior to cleanup

* USE_OPENSSL should be the path to openssldir

* Updated to aws-crt-ffi v0.2.4
1.0.1 v1.0.1
2021-08-30 13:36:54 -07:00
Justin Boswell 0af673491a Removed FFI support (#45)
* Removed FFI support

* run_tests and ci-test.sh should never have differed. Fixing now

* run_tests can now update composer
2021-08-17 19:06:14 -07:00
Justin Boswell fb4814c4e1 re-applied changes to makefile that were SOMEHOW lost 2021-08-17 22:56:53 +00:00
ilevyorandItamar Levy-Or e4f5b52d6a php qol Sam asked for (#44)
Co-authored-by: Itamar Levy-Or <[email protected]>
2021-08-06 14:01:30 -04:00
Justin Boswell e5ffe9d63d Added validation for signing/signing config (#43)
* Imported aws-crt-ffi/validation

* Exposed Signing::testVerifySigV4ASigning

* Updated to aws-crt-ffi v0.2.3
2021-08-03 19:12:28 +00:00
Damian Vicino 02b25687c8 Adding scripts for release to PECL (#36)
Adding scripts for release to PECL
2021-08-03 14:55:08 -04:00
Justin Boswell 8d76d4fac3 Added logging support from aws-crt-ffi (#42)
* Added logging support from aws-crt-ffi

* Updated to aws-crt-ffi v0.2.1
2021-08-03 09:25:52 -07:00
Justin Boswell 92724b8d51 Implemented SigV4A (#40)
* Implemented should_sign_header callback

* Added SigV4A to SigningAlgorithm

* Added SigV4A test

* Added debugging info to README

* Fixed memory leak from argument vectors

* Fixed memory leak of stream read buffers

* Added support for callables as option values

* Added should_sign_header support and test

* Fixed ELG type bug exposed by aws-crt-ffi change

* Updated to aws-crt-ffi v0.2.0
2021-07-28 12:54:37 -07:00
Justin Boswell 3f77a01fbf Updated to aws-crt-ffi v0.1.6, updated http API (#39)
* Updated to aws-crt-ffi v0.1.6, updated http API

* clang-format
2021-07-08 12:57:07 -04:00
Justin Boswell 1feba3eb6a Updated aws-crt-ffi to v0.1.5 to get CRC32/CRC32C (#32) v1.0.0 2021-06-18 15:46:52 -07:00
Justin BoswellandItamar Levy-Or ebfb91f562 Crc32 (#31)
* broken

* crc tests

* ffi changes

* large buffer test

* ffi cmake fix

* formatting

* laws-checksums config.m4

* broken

* crc tests

* ffi changes

* large buffer test

* ffi cmake fix

* formatting

* laws-checksums config.m4

* Fixed aws-crt-ffi after rebase of main

* Regenerated awscrt_arginfo.h

* merge fix

* Fixed arginfo

* try forcing memory limit higher

* mem_limit set

* newline

Co-authored-by: Itamar Levy-Or <[email protected]>
2021-06-18 18:04:56 -04:00
Justin Boswell 078df4825c Windows build (#29)
* Added build instruction updates for Windows to README

* Added composer to requirements
2021-06-17 09:21:00 -07:00
Justin Boswell f6f9a6b349 Restored FFI to working order (#28)
* Restored FFI to working order

* Disabled incompatible tests, fixed string conversion

* Use extension_loaded instead of checking PHP version

* Added better checks for FFI

* Do not build FFI deps if no FFI is present
2021-06-16 11:26:31 -07:00
Justin Boswell d2546e616d Only shim expectException if necessary (#27)
* Only shim expectException if necessary

* Added missing entries to gitignore
2021-06-08 09:56:32 -07:00
Justin Boswell 7d47316a7d Implemented async callbacks to PHP regardless of thread model, Sigv4 signing (#24)
* Updated to get latest aws-crt-ffi

* Added implementation for signing_result

* Added main thread queue and callback queueing to signing process

* Updated to get support for date on signing_config_aws

* added date support to SigningConfigAWS, fixed up reference issues on http message signing

* Broke C code into separate files, moved common stuff to php_aws_crt.h

* Use a unity build to make PHP do the right thing with our lib

* Updated aws-crt-ffi to v0.1.3 to get sigv4 changes

* Added CRT::isAvailable for safe runtime detection of CRT

* Fixed up test resource safety, added tests to prove it

* Added CI jobs for every version of PHP on linux (#26)
2021-06-08 00:34:42 +00:00
Justin Boswell a99fdeb9d3 Added bindings for Signable, SigningConfig, Signing (#23)
* Added bindings for Signable, SigningConfig, Signing

* Fixed PHP5.6 argument vector madness

* Added SigningConfigAWS implementation and lifetime tests

* Updated .gitignore

* Added impl for Signing::signRequestAws(), laid out sigv4 test
2021-05-18 14:06:26 -07:00
Justin Boswell beda2f5376 Updated aws-crt-ffi to v0.1.2 (#22) 2021-05-05 14:02:13 -07:00
Justin Boswell 7e925c92fb Cleanup pass based on prior PRs (#21)
* Updates to stub generation

* More idiomatic fixes from PHP team

* Moved tests from src/tests -> tests, got rid of extension-only tests

* fixed up test paths, regenerated arginfo
2021-05-05 13:37:47 -07:00
Justin Boswell 531330e1b2 Idiomatic fixes from previous PRs (#20)
* Various idiomatic feedback from PHP team

* Additional fixes after debugging tests
2021-03-25 15:13:23 -04:00
Justin Boswell 9c9422c21f HTTP message API (#19)
* HTTP message API

* Added MacOS CI

* Grabbed fixes for mac from aws-crt-ffi
2021-03-25 13:14:07 -04:00
Justin Boswell 974fe3d74a Input Stream bindings (#18)
* Initial aws_input_stream <-> php_stream implementation

* Added comments about useful references

* updated aws-crt-ffi to get latest aws-lc, faster builds

* Fixed inconsistency between PHP5/7 versions of php_stream_from_zval
2021-03-19 13:29:14 -07:00
Justin Boswell 73ecd3bc8a AWS Credentials support, StaticCredentials Provider (#17)
* added credentials API, disabled FFI backend for now

* Added CredentialsTest

* Added support for specifying CMAKE_BUILD_TYPE on the command line

* Added support for AwsCredentials and StaticCredentialsProvider
2021-03-17 13:59:05 -04:00
Justin Boswell 9171857448 Updated CRT library, test process, EventLoopGroup API updates (#16)
* Updated to latest aws-crt-ffi, updated EventLoopGroup/options init

* Removed test-ci target, just use test for everything now

* Added event_loop_group API to CRT/stubs

* Removed headers (all generated) from format-check

* Added the ability to force extension vs FFI

* make test will now trigger composer run test/phpunit, and force tests with both FFI and extension

* Updated builder version, removed redundant php7 test run

* Removed type annotations that anger php5, limited backends on php5
2021-03-12 11:47:55 -08:00
SamRemis ec7900afb5 preparing to publish (#13) 2021-03-04 12:15:07 -05:00
Justin Boswell 8bd13c710e Added EventLoopGroup API to native extension (#15) 2021-03-04 08:46:13 -05:00
Justin Boswell 7d76b6f3d9 Updated aws-crt-ffi to v0.1.0 (#14)
* Updated aws-crt-ffi to v0.1.0

* make/config changes

* Updated aws-crt-ffi to v0.1.1
2021-03-03 15:37:32 -08:00
Justin Boswell 5eaaa70cf1 Added aws_error* functions to native extension (#12)
* Added aws_crt_error_str and test, removed awscrt_version test function

* Added aws_crt_error_name

* Added aws_crt_error_debug_str

* Use PHP's own tools to generate arginfo

* Only re-generate arginfo on php7+

* Added a definition for ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX for php5

* Ignore generated files for clang-format
2021-02-24 10:16:32 -08:00