php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mysqlnd_auth.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Andrey Hristov <andrey@php.net> |
14 | Ulf Wendel <uw@php.net> |
15 +----------------------------------------------------------------------+
16*/
17
18#ifndef MYSQLND_AUTH_H
19#define MYSQLND_AUTH_H
22 const char * const user,
23 const char * const passwd,
24 const size_t passwd_len,
25 const char * const db,
26 const size_t db_len,
27 const MYSQLND_SESSION_OPTIONS * const session_options,
28 const zend_ulong mysql_flags,
29 const unsigned int server_charset_no,
30 const bool use_full_blown_auth_packet,
31 const char * const auth_protocol,
32 struct st_mysqlnd_authentication_plugin * auth_plugin,
33 const zend_uchar * const orig_auth_plugin_data,
34 const size_t orig_auth_plugin_data_len,
35 const zend_uchar * const auth_plugin_data,
36 const size_t auth_plugin_data_len,
37 char ** switch_to_auth_protocol,
38 size_t * const switch_to_auth_protocol_len,
39 zend_uchar ** switch_to_auth_protocol_data,
40 size_t * const switch_to_auth_protocol_data_len
41 );
42
45 const char * const user,
46 const size_t user_len,
47 const char * const passwd,
48 const size_t passwd_len,
49 const char * const db,
50 const size_t db_len,
51 const bool silent,
52 const bool use_full_blown_auth_packet,
53 const char * const auth_protocol,
54 struct st_mysqlnd_authentication_plugin * auth_plugin,
55 const zend_uchar * const orig_auth_plugin_data,
56 const size_t orig_auth_plugin_data_len,
57 const zend_uchar * auth_plugin_data,
58 const size_t auth_plugin_data_len,
59 char ** switch_to_auth_protocol,
60 size_t * const switch_to_auth_protocol_len,
61 zend_uchar ** switch_to_auth_protocol_data,
62 size_t * const switch_to_auth_protocol_data_len
63 );
64
65
68 MYSQLND_CONN_DATA * const conn,
69 const char * const user,
70 const char * const passwd,
71 const char * const db,
72 const size_t db_len,
73 const size_t passwd_len,
74 const MYSQLND_STRING authentication_plugin_data,
75 const char * const authentication_protocol,
76 const unsigned int charset_no,
77 const size_t server_capabilities,
78 const MYSQLND_SESSION_OPTIONS * const session_options,
79 const zend_ulong mysql_flags
80 );
81
84 MYSQLND_CONN_DATA * const conn,
85 const char * const user,
86 const char * const passwd,
87 const size_t passwd_len,
88 const char * const db,
89 const size_t db_len,
90 const MYSQLND_STRING auth_plugin_data,
91 const char * const auth_protocol,
92 const unsigned int charset_no,
93 const MYSQLND_SESSION_OPTIONS * const session_options,
94 const zend_ulong mysql_flags,
95 const bool silent,
96 const bool is_change_user
97 );
98
99PHPAPI void php_mysqlnd_scramble(zend_uchar * const buffer, const zend_uchar * const scramble, const zend_uchar * const pass, const size_t pass_len);
100
101#endif /* MYSQLND_AUTH_H */
#define pass(a, b, c, mul)
Definition hash_tiger.c:50
enum_func_status mysqlnd_connect_run_authentication(MYSQLND_CONN_DATA *const conn, const char *const user, const char *const passwd, const char *const db, const size_t db_len, const size_t passwd_len, const MYSQLND_STRING authentication_plugin_data, const char *const authentication_protocol, const unsigned int charset_no, const size_t server_capabilities, const MYSQLND_SESSION_OPTIONS *const session_options, const zend_ulong mysql_flags)
enum_func_status mysqlnd_run_authentication(MYSQLND_CONN_DATA *const conn, const char *const user, const char *const passwd, const size_t passwd_len, const char *const db, const size_t db_len, const MYSQLND_STRING auth_plugin_data, const char *const auth_protocol, const unsigned int charset_no, const MYSQLND_SESSION_OPTIONS *const session_options, const zend_ulong mysql_flags, const bool silent, const bool is_change_user)
enum_func_status mysqlnd_auth_handshake(MYSQLND_CONN_DATA *conn, const char *const user, const char *const passwd, const size_t passwd_len, const char *const db, const size_t db_len, const MYSQLND_SESSION_OPTIONS *const session_options, const zend_ulong mysql_flags, const unsigned int server_charset_no, const bool use_full_blown_auth_packet, const char *const auth_protocol, struct st_mysqlnd_authentication_plugin *auth_plugin, const zend_uchar *const orig_auth_plugin_data, const size_t orig_auth_plugin_data_len, const zend_uchar *const auth_plugin_data, const size_t auth_plugin_data_len, char **switch_to_auth_protocol, size_t *const switch_to_auth_protocol_len, zend_uchar **switch_to_auth_protocol_data, size_t *const switch_to_auth_protocol_data_len)
PHPAPI void php_mysqlnd_scramble(zend_uchar *const buffer, const zend_uchar *const scramble, const zend_uchar *const pass, const size_t pass_len)
enum_func_status mysqlnd_auth_change_user(MYSQLND_CONN_DATA *const conn, const char *const user, const size_t user_len, const char *const passwd, const size_t passwd_len, const char *const db, const size_t db_len, const bool silent, const bool use_full_blown_auth_packet, const char *const auth_protocol, struct st_mysqlnd_authentication_plugin *auth_plugin, const zend_uchar *const orig_auth_plugin_data, const size_t orig_auth_plugin_data_len, const zend_uchar *auth_plugin_data, const size_t auth_plugin_data_len, char **switch_to_auth_protocol, size_t *const switch_to_auth_protocol_len, zend_uchar **switch_to_auth_protocol_data, size_t *const switch_to_auth_protocol_data_len)
enum func_status enum_func_status
struct st_mysqlnd_connection_data MYSQLND_CONN_DATA
struct st_mysqlnd_string MYSQLND_STRING
struct st_mysqlnd_session_options MYSQLND_SESSION_OPTIONS
#define PHPAPI
Definition php.h:71
Definition file.h:177
uint32_t zend_ulong
Definition zend_long.h:43
unsigned char zend_uchar
Definition zend_types.h:57