diff options
author | David Carlier <devnexen@gmail.com> | 2016-10-15 17:55:44 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2016-10-15 17:55:44 +0100 |
commit | 1ece76411499cecfefd55b59b934963a46ac488b (patch) | |
tree | b5e0a94312498814e089e67b6f9bdad691115494 /ext/standard/crypt.c | |
parent | 2464dbd5f3dda7ab69f9217d802d08af0334ec71 (diff) | |
download | php-git-1ece76411499cecfefd55b59b934963a46ac488b.tar.gz |
let s use the macro instead
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r-- | ext/standard/crypt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 99af6fb006..025887d6ee 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -129,12 +129,12 @@ PHPAPI zend_string *php_crypt(const char *password, const int pass_len, const ch crypt_res = php_sha512_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); if (!crypt_res) { - explicit_bzero(output, PHP_MAX_SALT_LEN); + ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); efree(output); return NULL; } else { result = zend_string_init(output, strlen(output), 0); - explicit_bzero(output, PHP_MAX_SALT_LEN); + ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); efree(output); return result; } @@ -144,12 +144,12 @@ PHPAPI zend_string *php_crypt(const char *password, const int pass_len, const ch crypt_res = php_sha256_crypt_r(password, salt, output, PHP_MAX_SALT_LEN); if (!crypt_res) { - explicit_bzero(output, PHP_MAX_SALT_LEN); + ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); efree(output); return NULL; } else { result = zend_string_init(output, strlen(output), 0); - explicit_bzero(output, PHP_MAX_SALT_LEN); + ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); efree(output); return result; } |