SILENT KILLERPanel

Current Path: > > usr > > include > mysql > server > mysql


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr//include/mysql/server/mysql

NameTypeSizeLast ModifiedActions
psi Directory - -
auth_dialog_client.h File 2061 bytes May 28 2025 17:32:51.
client_plugin.h File 6327 bytes May 28 2025 17:32:51.
plugin.h File 29894 bytes May 28 2025 17:32:51.
plugin_audit.h File 5537 bytes May 28 2025 17:32:51.
plugin_auth.h File 5400 bytes May 28 2025 17:32:51.
plugin_auth_common.h File 4509 bytes May 28 2025 17:32:51.
plugin_data_type.h File 1300 bytes May 28 2025 17:32:51.
plugin_encryption.h File 4433 bytes May 28 2025 17:32:51.
plugin_ftparser.h File 7832 bytes May 28 2025 17:32:51.
plugin_function.h File 1437 bytes May 28 2025 17:32:51.
plugin_password_validation.h File 1553 bytes May 28 2025 17:32:51.
service_base64.h File 2932 bytes May 28 2025 17:32:51.
service_debug_sync.h File 13580 bytes May 28 2025 17:32:51.
service_encryption.h File 5657 bytes May 28 2025 17:32:51.
service_encryption_scheme.h File 5646 bytes May 28 2025 17:32:51.
service_json.h File 4551 bytes May 28 2025 17:32:51.
service_kill_statement.h File 2070 bytes May 28 2025 17:32:51.
service_log_warnings.h File 1377 bytes May 28 2025 17:32:51.
service_logger.h File 3551 bytes May 28 2025 17:32:51.
service_md5.h File 2119 bytes May 28 2025 17:32:51.
service_my_crypt.h File 4167 bytes May 28 2025 17:32:51.
service_my_print_error.h File 2328 bytes May 28 2025 17:32:51.
service_my_snprintf.h File 3722 bytes May 28 2025 17:32:51.
service_progress_report.h File 3356 bytes May 28 2025 17:32:51.
service_sha1.h File 2162 bytes May 28 2025 17:32:51.
service_sha2.h File 5299 bytes May 28 2025 17:32:51.
service_sql.h File 5134 bytes May 28 2025 17:32:51.
service_thd_alloc.h File 4490 bytes May 28 2025 17:32:51.
service_thd_autoinc.h File 1692 bytes May 28 2025 17:32:51.
service_thd_error_context.h File 3424 bytes May 28 2025 17:32:51.
service_thd_mdl.h File 1282 bytes May 28 2025 17:32:51.
service_thd_rnd.h File 1902 bytes May 28 2025 17:32:51.
service_thd_specifics.h File 3686 bytes May 28 2025 17:32:51.
service_thd_timezone.h File 2291 bytes May 28 2025 17:32:51.
service_thd_wait.h File 3695 bytes May 28 2025 17:32:51.
service_wsrep.h File 14158 bytes May 28 2025 17:32:51.
services.h File 1762 bytes May 28 2025 17:32:51.

Reading File: //usr//include/mysql/server/mysql/plugin_auth_common.h

#ifndef MYSQL_PLUGIN_AUTH_COMMON_INCLUDED
/* Copyright (C) 2010 Sergei Golubchik and Monty Program Ab
   Copyright (c) 2010, Oracle and/or its affiliates.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335  USA */

#ifdef _WIN32
#include <windows.h>
#endif

/**
  @file

  This file defines constants and data structures that are the same for
  both client- and server-side authentication plugins.
*/
#define MYSQL_PLUGIN_AUTH_COMMON_INCLUDED

/** the max allowed length for a user name */
#define MYSQL_USERNAME_LENGTH 512

/**
  return values of the plugin authenticate_user() method.
*/

 /**
  Authentication failed, plugin internal error.
  An error occurred in the authentication plugin itself.
  These errors are reported in table performance_schema.host_cache,
  column COUNT_AUTH_PLUGIN_ERRORS.
*/
#define CR_AUTH_PLUGIN_ERROR 3
/**
  Authentication failed, client server handshake.
  An error occurred during the client server handshake.
  These errors are reported in table performance_schema.host_cache,
  column COUNT_HANDSHAKE_ERRORS.
*/
#define CR_AUTH_HANDSHAKE 2
/**
  Authentication failed, user credentials.
  For example, wrong passwords.
  These errors are reported in table performance_schema.host_cache,
  column COUNT_AUTHENTICATION_ERRORS.
*/
#define CR_AUTH_USER_CREDENTIALS 1
/**
  Authentication failed. Additionally, all other CR_xxx values
  (libmysql error code) can be used too.

  The client plugin may set the error code and the error message directly
  in the MYSQL structure and return CR_ERROR. If a CR_xxx specific error
  code was returned, an error message in the MYSQL structure will be
  overwritten. If CR_ERROR is returned without setting the error in MYSQL,
  CR_UNKNOWN_ERROR will be user.
*/
#define CR_ERROR 0
/**
  Authentication (client part) was successful. It does not mean that the
  authentication as a whole was successful, usually it only means
  that the client was able to send the user name and the password to the
  server. If CR_OK is returned, the libmysql reads the next packet expecting
  it to be one of OK, ERROR, or CHANGE_PLUGIN packets.
*/
#define CR_OK -1
/**
  Authentication was successful.
  It means that the client has done its part successfully and also that
  a plugin has read the last packet (one of OK, ERROR, CHANGE_PLUGIN).
  In this case, libmysql will not read a packet from the server,
  but it will use the data at mysql->net.read_pos.

  A plugin may return this value if the number of roundtrips in the
  authentication protocol is not known in advance, and the client plugin
  needs to read one packet more to determine if the authentication is finished
  or not.
*/
#define CR_OK_HANDSHAKE_COMPLETE -2

typedef struct st_plugin_vio_info
{
  enum { MYSQL_VIO_INVALID, MYSQL_VIO_TCP, MYSQL_VIO_SOCKET,
         MYSQL_VIO_PIPE, MYSQL_VIO_MEMORY } protocol;
  int socket;     /**< it's set, if the protocol is SOCKET or TCP */
#ifdef _WIN32
  HANDLE handle;  /**< it's set, if the protocol is PIPE or MEMORY */
#endif
} MYSQL_PLUGIN_VIO_INFO;

/**
  Provides plugin access to communication channel
*/
typedef struct st_plugin_vio
{
  /**
    Plugin provides a pointer reference and this function sets it to the
    contents of any incoming packet. Returns the packet length, or -1 if
    the plugin should terminate.
  */
  int (*read_packet)(struct st_plugin_vio *vio, 
                     unsigned char **buf);
  
  /**
    Plugin provides a buffer with data and the length and this
    function sends it as a packet. Returns 0 on success, 1 on failure.
  */
  int (*write_packet)(struct st_plugin_vio *vio, 
                      const unsigned char *packet, 
                      int packet_len);

  /**
    Fills in a st_plugin_vio_info structure, providing the information
    about the connection.
  */
  void (*info)(struct st_plugin_vio *vio, struct st_plugin_vio_info *info);

} MYSQL_PLUGIN_VIO;

#endif


SILENT KILLER Tool