-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphp_crack.h
74 lines (58 loc) · 2.21 KB
/
php_crack.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 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_0.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 |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Alexander Feldman |
| Sascha Kettler |
+----------------------------------------------------------------------+
*/
/* $Id: php_crack.h,v 1.7 2005/09/05 12:27:12 skettler Exp $ */
#ifndef PHP_CRACK_H
#define PHP_CRACK_H
#ifdef PHP_WIN32
#define PHP_CRACK_API __declspec(dllexport)
#else
#define PHP_CRACK_API
#endif
#if HAVE_CRACK
#if PHP_MAJOR_VERSION < 8
#ifdef ZTS
#include "TSRM.h"
#endif
#endif
extern zend_module_entry crack_module_entry;
#define crack_module_ptr &crack_module_entry
PHP_MINIT_FUNCTION(crack);
PHP_MSHUTDOWN_FUNCTION(crack);
PHP_RINIT_FUNCTION(crack);
PHP_RSHUTDOWN_FUNCTION(crack);
PHP_MINFO_FUNCTION(crack);
PHP_FUNCTION(crack_opendict);
PHP_FUNCTION(crack_closedict);
PHP_FUNCTION(crack_check);
PHP_FUNCTION(crack_getlastmessage);
PHP_FUNCTION(crack_fascistcheck);
ZEND_BEGIN_MODULE_GLOBALS(crack)
char *default_dictionary;
char *last_message;
ZEND_END_MODULE_GLOBALS(crack)
#ifdef ZTS
# define CRACKG(v) TSRMG(crack_globals_id, zend_crack_globals *, v)
#else
# define CRACKG(v) (crack_globals.v)
#endif
#else
#define crack_module_ptr NULL
#endif
#define phpext_crack_ptr crack_module_ptr
#endif /* PHP_CRACK_H */