summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2020-06-23 16:32:41 +0200
committerAlex Dowad <alexinbeijing@gmail.com>2020-06-24 13:40:27 +0200
commit19d3e29bf5383b5b71b00727bd9bb5971bbbdce5 (patch)
treecee4ee4c8791aeec0c295d5fc6eba529f83ae690 /ext/standard/crypt.c
parente94afec7007dcd3557a40b020f6f184fa2338cdf (diff)
downloadphp-git-19d3e29bf5383b5b71b00727bd9bb5971bbbdce5.tar.gz
Clean house in cryptographic hashing code
- Remove dead code from php_crypt_r.c This code has been commented out since the file was added in 2008. It's safe to say that no-one is ever going to use it. - Fix typo in comment in php_crypt_r.c - Remove redundant Windows-only implementation of php_md5_crypt_r There is a portable implementation in the same file, which is selected if not building for Windows. But why should Windows have its own special implementation of this function at all? There doesn't seem to be any good reason. Better to use the portable implementation on all platforms. - Don't define useless __CONST macro in php_crypt_r.h This preprocessor macro is not used anywhere. - Add comment on functions for encoding data as Base64 - Remove dead code from crypt_blowfish.h - Remove unneeded junk comments from crypt_freesec.c - Remove dead code from crypt_blowfish.c This function has been commented out since 2011.
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r--ext/standard/crypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c
index 18839624d4..e592d3bf55 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -81,6 +81,7 @@ PHP_MSHUTDOWN_FUNCTION(crypt) /* {{{ */
static unsigned char itoa64[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+/* Encode a string of bytes as Base64 */
static void php_to64(char *s, int n) /* {{{ */
{
while (--n >= 0) {