File: php_sasl.h

package info (click to toggle)
php-sasl 0.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 152 kB
  • ctags: 82
  • sloc: ansic: 518; xml: 42; makefile: 10
file content (74 lines) | stat: -rw-r--r-- 2,276 bytes parent folder | download | duplicates (3)
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 5                                                        |
  +----------------------------------------------------------------------+
  | Copyright (c) 1997-2004 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 at through the world-wide-web at                           |
  | 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          |
  | license@php.net so we can mail you a copy immediately.               |
  +----------------------------------------------------------------------+
  | Author: Jon Parise <jon@php.net>                                     |
  +----------------------------------------------------------------------+
*/

/* $Id: php_sasl.h,v 1.2 2004/01/23 08:34:28 jon Exp $ */

#ifndef PHP_SASL_H
#define PHP_SASL_H

#include <sasl.h>

extern zend_module_entry sasl_module_entry;
#define phpext_sasl_ptr &sasl_module_entry

#ifdef PHP_WIN32
#define PHP_SASL_API __declspec(dllexport)
#else
#define PHP_SASL_API
#endif

#ifdef ZTS
#include "TSRM.h"
#endif

PHP_MINIT_FUNCTION(sasl);
PHP_MSHUTDOWN_FUNCTION(sasl);
PHP_MINFO_FUNCTION(sasl);

/* Common Functions */
PHP_FUNCTION(sasl_version);
PHP_FUNCTION(sasl_errstring);
#if SASL_VERSION_MAJOR >= 2
PHP_FUNCTION(sasl_errdetail);
#endif
PHP_FUNCTION(sasl_encode);
PHP_FUNCTION(sasl_decode);

/* Client Functions */
PHP_FUNCTION(sasl_client_init);
PHP_FUNCTION(sasl_client_new);
PHP_FUNCTION(sasl_client_start);
PHP_FUNCTION(sasl_client_step);

/* Server Functions */
PHP_FUNCTION(sasl_server_init);
PHP_FUNCTION(sasl_server_new);
PHP_FUNCTION(sasl_server_start);
PHP_FUNCTION(sasl_server_step);
PHP_FUNCTION(sasl_listmech);
PHP_FUNCTION(sasl_checkpass);

#if 0
#ifdef ZTS
#define SASLG(v) TSRMG(sasl_globals_id, zend_sasl_globals *, v)
#else
#define SASLG(v) (sasl_globals.v)
#endif
#endif

#endif /* PHP_SASL_H */