Annotation of embedaddon/php/ext/standard/php_crypt_r.h, revision 1.1.1.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>