idm_text.h revision 2ef9abdc6ea9bad985430325b12b90938a8cd18f
/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _IDM_TEXT_H_
#define _IDM_TEXT_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* Numerical identifiers for iSCSI name-value pair keys (just so that
* we can use case statements to handle a particular key-value pair
* after we find it in idm_kvpair_xlate).
*
* We want to use a bitmask to keep track of negotiated key-value pairs
* so keep this enum under 64 values -- or spend some time reworking the
* login code.
*/
typedef enum {
KI_AUTH_METHOD = 1,
/* SPKM */
/*
* SRP
*/
/*
* CHAP
*/
/*
* ISCSI Operational Parameter Keys
*/
/*
* iSER-specific keys
*/
/*
* End of list marker, no keys below here.
*/
/* Numerical types for iSCSI name-value pair values */
typedef enum {
KT_NUMERICAL, /* Hex or decimal constant */
KT_LARGE_NUMERICAL, /* Hex, decimal or Base64 constant */
KT_REGULAR_BINARY, /* Hex, decimal, base64 not longer than 64 bits */
KT_LARGE_BINARY, /* Hex, decimal, base64 longer than 64 bites */
KT_BINARY, /* Regular binary or large binary */
typedef struct {
char *ik_key_name;
const idm_kv_xlate_t *
int
int
int
int
int *tblen_required);
idm_nvstat_to_kvstat(int nvrc);
void
int
nvpair_t *
char *
char *
void *
char *
void
idm_itextbuf_free(void *arg);
#ifdef __cplusplus
}
#endif
#endif /* _IDM_TEXT_H_ */