1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) The PHP Group | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Pierre Alain Joye <pajoye@php.net | 16 +----------------------------------------------------------------------+ 17 */ 18 19 #ifndef _CRYPT_WIHN32_H_ 20 #define _CRYPT_WIHN32_H_ 21 22 #ifdef __cplusplus 23 extern "C" 24 { 25 #endif 26 #include "crypt_freesec.h" 27 28 #ifndef __const 29 #ifdef __GNUC__ 30 #define __CONST __const 31 #else 32 #define __CONST 33 #endif 34 #else 35 #define __CONST __const 36 #endif 37 38 void php_init_crypt_r(); 39 void php_shutdown_crypt_r(); 40 41 extern void _crypt_extended_init_r(void); 42 43 /*PHPAPI char* crypt(const char *key, const char *salt);*/ 44 PHPAPI char *php_crypt_r (const char *__key, const char *__salt, struct php_crypt_extended_data * __data); 45 46 #define MD5_HASH_MAX_LEN 120 47 48 #include "crypt_blowfish.h" 49 50 extern char * php_md5_crypt_r(const char *pw, const char *salt, char *out); 51 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 52 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 53 54 #ifdef __cplusplus 55 } 56 #endif 57 58 #endif /* _CRYPT_WIHN32_H_ */ 59