diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2018-12-18 09:21:01 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-02-01 15:22:48 +0200 |
commit | 755af4f2674d5d09a1ccf0d7b4a091a96a597dbb (patch) | |
tree | 7660884a74c8e23cf9ffb6fa24b34fa0dc7fec02 /dev-php/scrypt/files | |
parent | app-admin/doctl: new ebuild (diff) | |
download | gentoo-755af4f2674d5d09a1ccf0d7b4a091a96a597dbb.tar.gz gentoo-755af4f2674d5d09a1ccf0d7b4a091a96a597dbb.tar.bz2 gentoo-755af4f2674d5d09a1ccf0d7b4a091a96a597dbb.zip |
dev-php/scrypt: new ebuild
This is a PHP library providing a wrapper
to Colin Percival's scrypt implementation.
Scrypt is a key derivation function designed
to be far more secure against hardware brute-force
attacks than alternative functions
such as PBKDF2 or bcrypt.
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/10657
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-php/scrypt/files')
-rw-r--r-- | dev-php/scrypt/files/scrypt-1.4.2-php8-0.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/scrypt/files/scrypt-1.4.2-php8-0.patch b/dev-php/scrypt/files/scrypt-1.4.2-php8-0.patch new file mode 100644 index 000000000000..a5e1ea665897 --- /dev/null +++ b/dev-php/scrypt/files/scrypt-1.4.2-php8-0.patch @@ -0,0 +1,49 @@ +From 5010f9fa0743518d149d994728ca930503adde1e Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Tue, 22 Sep 2020 14:55:32 +0200 +Subject: [PATCH] trivial fix for PHP 8 + +--- + crypto/crypto_scrypt-sse.c | 1 + + php_scrypt.h | 5 +++++ + php_scrypt_utils.c | 1 + + 3 files changed, 7 insertions(+) + +diff --git a/crypto/crypto_scrypt-sse.c b/crypto/crypto_scrypt-sse.c +index a52ce81..709a04f 100644 +--- a/crypto/crypto_scrypt-sse.c ++++ b/crypto/crypto_scrypt-sse.c +@@ -44,6 +44,7 @@ + #include "sysendian.h" + + #include "crypto_scrypt.h" ++#include "php_scrypt.h" + + static void blkcpy(void *, void *, size_t); + static void blkxor(void *, void *, size_t); +diff --git a/php_scrypt.h b/php_scrypt.h +index a1117c8..6cc1c4c 100644 +--- a/php_scrypt.h ++++ b/php_scrypt.h +@@ -35,4 +35,9 @@ PHP_FUNCTION(scrypt_pickparams); + extern zend_module_entry scrypt_module_entry; + #define phpext_scrypt_ptr &scrypt_module_entry + ++#ifndef TSRMLS_CC ++#define TSRMLS_CC ++#define TSRMLS_FETCH() ++#endif ++ + #endif +diff --git a/php_scrypt_utils.c b/php_scrypt_utils.c +index 797e2c7..34fe347 100644 +--- a/php_scrypt_utils.c ++++ b/php_scrypt_utils.c +@@ -25,6 +25,7 @@ + */ + + #include "php_scrypt_utils.h" ++#include "php_scrypt.h" + + /* + * Casts a long into a uint64_t. |