28 Commits
Author SHA1 Message Date
Dengke Tang 711fa6635f Fix segfaults -- CRC64NVME on machines with disabled AVX and uri parsing corner case (#119) 2025-01-28 15:22:11 -08:00
Dengke Tang ad7d9de082 Update CI action (#118) 2024-10-23 10:49:44 -07:00
Waqar Ahmed Khan d71d9906c7 latest submodules (#116) 2024-10-18 15:15:13 -07:00
Michael Graeb a63485b65b aws-crt-ffi v0.3.7 -> v0.3.8 (#112)
Also: replace uses of `aws_promise` (removed in https://github.com/awslabs/aws-c-common/pull/1110) with `aws_future`
2024-06-13 10:21:28 -07:00
Waqar Ahmed Khan 0ea1f04ec5 Remove crypto function (#111) 2024-04-19 14:30:56 -07:00
Dengke Tang 5545a4fa31 update submodules (#106)
fixing sigv4a for MacOS 14+
2023-10-16 13:10:06 -07: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) 2023-01-31 15:08:25 -08:00
Waqar Ahmed Khan 78c5260ba4 Update s2n (#81) 2023-01-26 17:45:16 -08: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
2021-08-30 13:36:54 -07: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
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) 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 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 beda2f5376 Updated aws-crt-ffi to v0.1.2 (#22) 2021-05-05 14:02:13 -07: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
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 778eafcf05 Initial skeleton to make extension support CRT FFI API (#11)
* Fixed build issues with static CRT, separated ffi target

* Fixed makefile for test-ffi target
2021-02-22 15:55:15 -08:00
Justin Boswell 0b1b368a8f Imported aws-crt-ffi as submodule (#6)
* Removed direct submodules

* Added aws-crt-ffi as submodule

*  updated makefile to build aws-crt-ffi
2021-01-22 09:35:39 -08:00
Justin Boswell f090511213 Initial Tests & CI (#5)
* Added awscrt_version() and test for it

* Added builder.json for CI

* Added github actions

* Added format-check.sh

* Force php5.6 on ubuntu

* Updated submodules
2021-01-13 13:33:30 -08:00
Justin Boswell 2934fc63fe Added CRT submodules, updated autoconf (#3)
* Added CRT submodules

* Added automake config

* Use Makefile.frag
2020-10-27 14:26:35 -07:00