usr/src/uts/common/io/comstar/port/iscsit/iscsit_authclient.c
changeset 9162 b011b0287065
parent 7978 4559e57ec313
child 12571 05943d9c379f
equal deleted inserted replaced
9161:7dca69f75d8e 9162:b011b0287065
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 /*
    21 /*
    22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
    22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
    23  * Use is subject to license terms.
    23  * Use is subject to license terms.
    24  */
    24  */
    25 
    25 
    26 #include <sys/types.h>
    26 #include <sys/types.h>
    27 #include <sys/random.h>
    27 #include <sys/random.h>
   172 iscsit_verify_chap_resp(iscsit_conn_login_t *lsm,
   172 iscsit_verify_chap_resp(iscsit_conn_login_t *lsm,
   173     unsigned int chap_i,
   173     unsigned int chap_i,
   174     uchar_t *chap_c, unsigned int challenge_len,
   174     uchar_t *chap_c, unsigned int challenge_len,
   175     uchar_t *chap_r, unsigned int resp_len)
   175     uchar_t *chap_r, unsigned int resp_len)
   176 {
   176 {
   177 	uchar_t		verifyData[iscsiAuthChapResponseLength];
   177 	uchar_t		verifyData[iscsitAuthChapResponseLength];
   178 	conn_auth_t	*auth = &lsm->icl_auth;
   178 	conn_auth_t	*auth = &lsm->icl_auth;
   179 
   179 
   180 	/* Check if RADIUS access is enabled */
   180 	/* Check if RADIUS access is enabled */
   181 	if (auth->ca_use_radius == B_TRUE) {
   181 	if (auth->ca_use_radius == B_TRUE) {
   182 		chap_validation_status_type	chap_valid_status;
   182 		chap_validation_status_type	chap_valid_status;