/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <sys/stmf_ioctl.h>
#include "iscsit.h"
#include "radius_auth.h"
void
int key_type,
{
auth_key_t *p;
p->present = 1;
}
void
int key_type,
char *string)
{
auth_key_t *p;
p->present = 1;
}
void
int key_type,
{
auth_key_t *p;
p->present = 1;
}
void
int key_type,
{
auth_key_t *p;
}
void
int key_type,
char **string)
{
auth_key_t *p;
}
void
int key_type,
{
auth_key_t *p;
}
int
int key_type)
{
auth_key_t *p;
return (p->present != 0 ? 1 : 0);
}
/*ARGSUSED*/
void
unsigned int chap_i,
{
/*
* id byte
*/
/*
* shared secret
*/
/*
* challenge value
*/
}
int
unsigned int chap_i,
{
/* Check if RADIUS access is enabled */
/* Use RADIUS server to authentication target */
/* IPv4 */
/* IPv6 */
sizeof (struct in6_addr));
} else {
return (ISCSI_AUTH_FAILED);
}
if (chap_valid_status == CHAP_VALIDATION_PASSED) {
return (ISCSI_AUTH_PASSED);
}
return (ISCSI_AUTH_FAILED);
}
/* Empty chap secret is not allowed */
if (auth->ca_ini_chapsecretlen == 0) {
return (ISCSI_AUTH_FAILED);
}
/* only MD5 is supported */
if (resp_len != sizeof (verifyData)) {
return (ISCSI_AUTH_FAILED);
}
&verifyData[0],
sizeof (verifyData)) != 0) {
return (ISCSI_AUTH_FAILED);
}
/* chap response OK */
return (ISCSI_AUTH_PASSED);
}
void
{
}