summaryrefslogtreecommitdiff
path: root/ext/standard/php_password.h
diff options
context:
space:
mode:
authorAnthony Ferrara <ircmaxell@gmail.com>2012-09-13 10:32:54 -0400
committerAnthony Ferrara <ircmaxell@gmail.com>2012-09-13 10:32:54 -0400
commit83cfff4593bd3bd7791f32795e9b5bda446cd8e2 (patch)
treedadfdccce47855c1bf448d05db4b358dc7b8462d /ext/standard/php_password.h
parent7ec80e1a139ca7f43c02728f3fe2424cef0138b6 (diff)
downloadphp-git-83cfff4593bd3bd7791f32795e9b5bda446cd8e2.tar.gz
Switch to using an ENUM for algorithms instead of a constant
Diffstat (limited to 'ext/standard/php_password.h')
-rw-r--r--ext/standard/php_password.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/standard/php_password.h b/ext/standard/php_password.h
index db7747a3db..c812e2c492 100644
--- a/ext/standard/php_password.h
+++ b/ext/standard/php_password.h
@@ -28,11 +28,15 @@ PHP_FUNCTION(password_get_info);
PHP_MINIT_FUNCTION(password);
-#define PHP_PASSWORD_DEFAULT 1
-#define PHP_PASSWORD_BCRYPT 1
+#define PHP_PASSWORD_DEFAULT PASSWORD_BCRYPT
#define PHP_PASSWORD_BCRYPT_COST 10
+typedef enum {
+ PASSWORD_UNKNOWN,
+ PASSWORD_BCRYPT
+} php_password_algos;
+
#endif