com php-src: Fix spaces -> tabs: ext/standard/crypt.c

From: Date: Fri, 09 Jan 2015 16:23:06 +0000
Subject: com php-src: Fix spaces -> tabs: ext/standard/crypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84509@lists.php.net to get a copy of this message
Commit: 9cc988722451a011b5996103d07424890a2ee6c9 Author: Anthony Ferrara <ircmaxell@gmail.com> Fri, 9 Jan 2015 11:23:06 -0500 Parents: 462fef794fb564c8e8726ed70be0d980ad7b1cfa Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9cc988722451a011b5996103d07424890a2ee6c9 Log: Fix spaces -> tabs Changed paths: M ext/standard/crypt.c Diff: diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index ac1c2ab..dee74ce 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;

« previous php.cvs (#84509) next »