diff options
author | Anatol Belski <ab@php.net> | 2014-09-19 01:46:14 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-19 01:46:14 +0200 |
commit | c45f4f546180d5d4fa83bfcdaad94ec52c9cc274 (patch) | |
tree | fa0cbcc19a6fd580cce3df5a971089bbb5bfefb4 /ext/standard/php_crypt_r.c | |
parent | adf753159b534885b31586cd5b37bdf36d806df0 (diff) | |
download | php-git-c45f4f546180d5d4fa83bfcdaad94ec52c9cc274.tar.gz |
generalized the case with secure memory zeroing
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r-- | ext/standard/php_crypt_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index 4917ebce2f..da0e87bc1c 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -206,7 +206,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) { } /* Don't leave anything around in vm they could use. */ - RtlSecureZeroMemory(final, sizeof(final)); + ZEND_SECURE_ZERO(final, sizeof(final)); /* Then something really weird... */ for (i = pwl; i != 0; i >>= 1) { @@ -288,7 +288,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) { *p = '\0'; - RtlSecureZeroMemory(final, sizeof(final)); + ZEND_SECURE_ZERO(final, sizeof(final)); _destroyCtx1: |