2012-06-25 02:44:43 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP Version 5 |
|
|
|
|
+----------------------------------------------------------------------+
|
2014-01-03 03:08:10 +00:00
|
|
|
| Copyright (c) 1997-2014 The PHP Group |
|
2012-06-25 02:44:43 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_01.txt |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Anthony Ferrara <ircmaxell@php.net> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
#ifndef PHP_PASSWORD_H
|
|
|
|
#define PHP_PASSWORD_H
|
|
|
|
|
2012-06-26 01:22:16 +00:00
|
|
|
PHP_FUNCTION(password_hash);
|
2012-06-25 02:44:43 +00:00
|
|
|
PHP_FUNCTION(password_verify);
|
2012-07-05 20:22:49 +00:00
|
|
|
PHP_FUNCTION(password_needs_rehash);
|
2012-07-05 21:46:33 +00:00
|
|
|
PHP_FUNCTION(password_get_info);
|
2012-06-25 02:44:43 +00:00
|
|
|
|
|
|
|
PHP_MINIT_FUNCTION(password);
|
|
|
|
|
2012-09-17 14:52:07 +00:00
|
|
|
#define PHP_PASSWORD_DEFAULT PHP_PASSWORD_BCRYPT
|
2012-06-25 02:44:43 +00:00
|
|
|
|
2012-07-03 11:33:55 +00:00
|
|
|
#define PHP_PASSWORD_BCRYPT_COST 10
|
|
|
|
|
2012-09-13 14:32:54 +00:00
|
|
|
typedef enum {
|
2012-09-17 14:52:07 +00:00
|
|
|
PHP_PASSWORD_UNKNOWN,
|
|
|
|
PHP_PASSWORD_BCRYPT
|
|
|
|
} php_password_algo;
|
2012-09-13 14:32:54 +00:00
|
|
|
|
2012-06-25 02:44:43 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|