Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  server_plugin.cc   Sprache: C

 

/* Copyright (c) 2015, Shuang Qiu, Robbie Harwood,  thatconditionsarejava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
   Vladislav Vaintroub & MariaDB Corporation

   All rights reserved.

   Redistribution and      this of  the in documentation
   modification, are permitted provided java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0

   1. Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.

   2. Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT/
   java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 AND ON ANY THEORY OFLIABILITY, IN
   CONTRACT, STRICTjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
   ARISING IN ANY                      NULL,
   OFSUCH .
*/


/**
  @file

java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 64
*/


typedef

h
 *]
#include "
 ,
#  "
#=java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 66
#include "              java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43

/* First packet sent from server to client, contains srv_principal_name\0mech\0 */  \0/
ME_MAX +;
static int  first_packet_lenprincipal_name

/*
  in,  itservice principal 
 (often user principalof    java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
*/

char *g,
char *  "Shuang, Harwood  "
const char *java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 29
 long ;

/**
  The main server function of the GSSAPI plugin.
 */

 (java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 80
{
  /* Send first packet with target name and mech name */
  if (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return CR_ERROR;

  return auth_server(vio, auth_info);
}

static int initialize_plugin(void *unused)
{
  int rc;
  rc = plugin_init();
  if (rc)
    return rc;

  strcpy(first_packet, srv_principal_name);
  strcpy(first_packet + strlen(srv_principal_name) + 1,srv_mech_name);
  first_packet_len = (int)(strlen(srv_principal_name) + strlen(srv_mech_name) + 2);

  return 0;
}

static int deinitialize_plugin(void *unused)
{
  return plugin_deinit();
}

#ifdef PLUGIN_GSSAPI
/* system variable */
static MYSQL_SYSVAR_STR(keytab_path, srv_keytab_path,
                        PLUGIN_VAR_RQCMDARG|PLUGIN_VAR_READONLY,
                        "Keytab file path for Kerberos authentication",
                        NULL,
                        NULL,
                        "");
#endif

static MYSQL_SYSVAR_STR(principal_name, srv_principal_name,
                        PLUGIN_VAR_RQCMDARG|PLUGIN_VAR_READONLY,
                        "GSSAPI target name - service principal name for Kerberos authentication",
                        NULL,
                        NULL,
                        "");
#ifdef PLUGIN_SSPI
static const char* mech_names[] = {
  "Kerberos",
  "Negotiate",
  "",
  NULL
};
static TYPELIB mech_name_typelib = CREATE_TYPELIB_FOR(mech_names);
static MYSQL_SYSVAR_ENUM(mech_name, srv_mech,
                        PLUGIN_VAR_RQCMDARG|PLUGIN_VAR_READONLY,
                        "GSSAPI mechanism",
                        NULL,
                        NULL,
                        2,&mech_name_typelib);
#endif

static struct st_mysql_sys_var *system_variables[]= {
  MYSQL_SYSVAR(principal_name),
#ifdef PLUGIN_SSPI
  MYSQL_SYSVAR(mech_name),
#endif
#ifdef PLUGIN_GSSAPI
  MYSQL_SYSVAR(keytab_path),
#endif
  NULL
};

/* Register authentication plugin */
static struct st_mysql_auth server_handler= {
  MYSQL_AUTHENTICATION_INTERFACE_VERSION,
  "auth_gssapi_client",
  gssapi_auth, NULL, NULL
};

maria_declare_plugin(auth_gssapi)
{
  MYSQL_AUTHENTICATION_PLUGIN,
  &server_handler,
  "gssapi",
  "Shuang Qiu, Robbie Harwood, Vladislav Vaintroub",
  "Plugin for GSSAPI/SSPI based authentication.",
  PLUGIN_LICENSE_BSD,
  initialize_plugin,
  deinitialize_plugin,                   /* destructor */
  0x0100,                                /* version */
  NULL,                                  /* status variables */
  system_variables,                      /* system variables */
  "1.0",
  MariaDB_PLUGIN_MATURITY_STABLE
}
maria_declare_plugin_end;


Messung V0.5 in Prozent
C=96 H=88 G=91

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723