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
This commit is contained in:
Justin Boswell
2021-08-30 13:36:54 -07:00
committed by GitHub
parent 0af673491a
commit 2f8d2ee756
7 changed files with 65 additions and 14 deletions
+3
View File
@@ -241,6 +241,8 @@ PHP_INI_END()
static PHP_MINIT_FUNCTION(awscrt) {
REGISTER_INI_ENTRIES();
/* prevent s2n from initializing/de-initializing OpenSSL/libcrypto */
aws_crt_crypto_share();
aws_crt_init();
aws_php_thread_queue_init(&s_aws_php_main_thread_queue);
return SUCCESS;
@@ -249,6 +251,7 @@ static PHP_MINIT_FUNCTION(awscrt) {
static PHP_MSHUTDOWN_FUNCTION(awscrt) {
UNREGISTER_INI_ENTRIES();
aws_php_thread_queue_clean_up(&s_aws_php_main_thread_queue);
aws_crt_thread_join_all(0);
aws_crt_clean_up();
return SUCCESS;
}