2002-03-07 19:46:23 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 09:00:23 +00:00
|
|
|
| Copyright (c) The PHP Group |
|
2002-03-07 19:46:23 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2002-03-07 19:46:23 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2021-05-06 10:16:35 +00:00
|
|
|
| https://www.php.net/license/3_01.txt |
|
2002-03-07 19:46:23 +00:00
|
|
|
| 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. |
|
|
|
|
+----------------------------------------------------------------------+
|
2008-07-28 11:50:35 +00:00
|
|
|
| Authors: Pierre Alain Joye <pajoye@php.net |
|
2002-03-07 19:46:23 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
2006-06-16 05:57:18 +00:00
|
|
|
#ifndef _CRYPT_WIHN32_H_
|
|
|
|
#define _CRYPT_WIHN32_H_
|
2002-03-07 19:46:23 +00:00
|
|
|
|
2020-06-23 14:32:41 +00:00
|
|
|
BEGIN_EXTERN_C()
|
2008-07-28 11:50:35 +00:00
|
|
|
#include "crypt_freesec.h"
|
2002-03-07 19:46:23 +00:00
|
|
|
|
2021-05-12 13:55:23 +00:00
|
|
|
void php_init_crypt_r(void);
|
|
|
|
void php_shutdown_crypt_r(void);
|
2008-07-28 11:50:35 +00:00
|
|
|
|
|
|
|
extern void _crypt_extended_init_r(void);
|
|
|
|
|
|
|
|
PHPAPI char *php_crypt_r (const char *__key, const char *__salt, struct php_crypt_extended_data * __data);
|
|
|
|
|
|
|
|
#define MD5_HASH_MAX_LEN 120
|
|
|
|
|
2011-07-18 21:26:29 +00:00
|
|
|
#include "crypt_blowfish.h"
|
|
|
|
|
2008-07-28 11:50:35 +00:00
|
|
|
extern char * php_md5_crypt_r(const char *pw, const char *salt, char *out);
|
2009-12-09 00:20:14 +00:00
|
|
|
extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
|
|
|
extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
2020-06-23 14:32:41 +00:00
|
|
|
END_EXTERN_C()
|
2002-03-07 19:46:23 +00:00
|
|
|
|
2006-06-16 05:57:18 +00:00
|
|
|
#endif /* _CRYPT_WIHN32_H_ */
|