1999-05-16 12:01:25 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 08:18:22 +00:00
|
|
|
| PHP Version 5 |
|
1999-05-16 12:01:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2007-12-31 07:17:19 +00:00
|
|
|
| Copyright (c) 1997-2008 The PHP Group |
|
1999-05-16 12:01:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
1999-07-16 13:13:16 +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: |
|
2006-01-01 12:51:34 +00:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
1999-07-16 13:13:16 +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. |
|
1999-05-16 12:01:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
1999-11-26 17:12:01 +00:00
|
|
|
| Authors: Sascha Schumann <sascha@schumann.cx> |
|
2002-02-28 08:29:35 +00:00
|
|
|
| Nikos Mavroyanopoulos <nmav@hellug.gr> (HMAC, KEYGEN) |
|
1999-05-16 12:01:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
2003-06-16 14:27:59 +00:00
|
|
|
/* $Id$ */
|
1999-05-16 12:01:25 +00:00
|
|
|
|
2001-05-24 10:07:29 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
1999-05-16 12:01:25 +00:00
|
|
|
#include "php.h"
|
|
|
|
#include "php_mhash.h"
|
2000-10-17 19:43:49 +00:00
|
|
|
#include "php_ini.h"
|
|
|
|
#include "php_globals.h"
|
|
|
|
#include "ext/standard/info.h"
|
1999-05-16 12:01:25 +00:00
|
|
|
|
2007-09-27 18:00:48 +00:00
|
|
|
const zend_function_entry mhash_functions[] = {
|
2002-02-28 12:10:36 +00:00
|
|
|
{NULL, NULL, NULL}
|
1999-05-16 12:01:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
zend_module_entry mhash_module_entry = {
|
2001-10-11 23:33:59 +00:00
|
|
|
STANDARD_MODULE_HEADER,
|
2000-10-17 19:43:49 +00:00
|
|
|
"mhash",
|
1999-05-16 12:01:25 +00:00
|
|
|
mhash_functions,
|
1999-08-02 16:06:13 +00:00
|
|
|
PHP_MINIT(mhash), NULL,
|
1999-05-16 12:01:25 +00:00
|
|
|
NULL, NULL,
|
2002-08-04 21:37:44 +00:00
|
|
|
PHP_MINFO(mhash),
|
|
|
|
NO_VERSION_YET,
|
1999-05-16 12:01:25 +00:00
|
|
|
STANDARD_MODULE_PROPERTIES,
|
|
|
|
};
|
|
|
|
|
2000-05-02 03:29:45 +00:00
|
|
|
#ifdef COMPILE_DL_MHASH
|
|
|
|
ZEND_GET_MODULE(mhash)
|
|
|
|
#endif
|
2002-08-04 21:37:44 +00:00
|
|
|
|
2003-02-24 03:27:00 +00:00
|
|
|
PHP_MINIT_FUNCTION(mhash)
|
1999-05-16 12:01:25 +00:00
|
|
|
{
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
2002-08-04 21:37:44 +00:00
|
|
|
PHP_MINFO_FUNCTION(mhash)
|
|
|
|
{
|
|
|
|
php_info_print_table_start();
|
|
|
|
php_info_print_table_row(2, "MHASH support", "Enabled");
|
2008-06-26 22:33:16 +00:00
|
|
|
php_info_print_table_row(2, "MHASH API Version", "Emulated Support");
|
2002-08-04 21:37:44 +00:00
|
|
|
php_info_print_table_end();
|
|
|
|
}
|
|
|
|
|
2001-06-06 13:06:12 +00:00
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
2001-09-09 13:29:31 +00:00
|
|
|
* vim600: sw=4 ts=4 fdm=marker
|
|
|
|
* vim<600: sw=4 ts=4
|
2001-06-06 13:06:12 +00:00
|
|
|
*/
|