summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
authorAnthony Ferrara <ircmaxell@gmail.com>2015-01-09 11:23:06 -0500
committerAnthony Ferrara <ircmaxell@gmail.com>2015-01-09 11:23:06 -0500
commit9cc988722451a011b5996103d07424890a2ee6c9 (patch)
tree7ccec2ffd2786da072a24cc28329e5941cc362ae /ext/standard/crypt.c
parent462fef794fb564c8e8726ed70be0d980ad7b1cfa (diff)
downloadphp-git-9cc988722451a011b5996103d07424890a2ee6c9.tar.gz
Fix spaces -> tabs
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r--ext/standard/crypt.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c
index ac1c2abb5a..dee74ce501 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -217,15 +217,15 @@ PHPAPI zend_string *php_crypt(const char *password, const int pass_len, const ch
return result;
}
} else {
- /* DES Fallback */
-
- /* Only check the salt if it's not EXT_DES */
- if (salt[0] != '_') {
- /* DES style hashes */
- if (!IS_VALID_SALT_CHARACTER(salt[0]) || !IS_VALID_SALT_CHARACTER(salt[1])) {
- php_error_docref(NULL, E_DEPRECATED, DES_INVALID_SALT_ERROR);
- }
- }
+ /* DES Fallback */
+
+ /* Only check the salt if it's not EXT_DES */
+ if (salt[0] != '_') {
+ /* DES style hashes */
+ if (!IS_VALID_SALT_CHARACTER(salt[0]) || !IS_VALID_SALT_CHARACTER(salt[1])) {
+ php_error_docref(NULL, E_DEPRECATED, DES_INVALID_SALT_ERROR);
+ }
+ }
memset(&buffer, 0, sizeof(buffer));
_crypt_extended_init_r();
@@ -251,10 +251,10 @@ PHPAPI zend_string *php_crypt(const char *password, const int pass_len, const ch
# else
# error Data struct used by crypt_r() is unknown. Please report.
# endif
- if (salt[0] != '$' && salt[0] != '_' && (!IS_VALID_SALT_CHARACTER(salt[0]) || !IS_VALID_SALT_CHARACTER(salt[1]))) {
- /* error consistently about invalid DES fallbacks */
- php_error_docref(NULL, E_DEPRECATED, DES_INVALID_SALT_ERROR);
- }
+ if (salt[0] != '$' && salt[0] != '_' && (!IS_VALID_SALT_CHARACTER(salt[0]) || !IS_VALID_SALT_CHARACTER(salt[1]))) {
+ /* error consistently about invalid DES fallbacks */
+ php_error_docref(NULL, E_DEPRECATED, DES_INVALID_SALT_ERROR);
+ }
crypt_res = crypt_r(password, salt, &buffer);
if (!crypt_res || (salt[0] == '*' && salt[1] == '0')) {
return NULL;