a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * CDDL HEADER START
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * The contents of this file are subject to the terms of the
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Common Development and Distribution License (the "License").
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * You may not use this file except in compliance with the License.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * See the License for the specific language governing permissions
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * and limitations under the License.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * When distributing Covered Code, include this CDDL HEADER in each
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * If applicable, add the following below this CDDL HEADER, with the
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * fields enclosed by brackets "[]" replaced with your own identifying
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * information: Portions Copyright [yyyy] [name of copyright owner]
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * CDDL HEADER END
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Use is subject to license terms.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Function: iscsit_radius_chap_validate
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Description: To validate a target response given the
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * associated challenge via the specified
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * RADIUS server.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Arguments:
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * target_chap_name - The CHAP name of the target being authenticated.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * initiator_chap_name - The CHAP name of the authenticating initiator.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * challenge - The CHAP challenge to which the target responded.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * target_response - The target's CHAP response to be validated.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * identifier - The identifier associated with the CHAP challenge.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * radius_server_ip_address - The IP address of the RADIUS server.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * radius_server_port - The port number of the RADIUS server.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * radius_shared_secret - The shared secret for accessing the RADIUS server.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * radius_shared_secret_len - The length of the shared secret.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap * Return: See chap_validation_status_type.
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlapiscsit_radius_chap_validate(char *target_chap_name,
a6d42e7d71324c5193c3b94d57d96ba2925d52e1Peter Dunlap#endif /* _RADIUS_AUTH_H */