/*
* 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
*/
/*
*/
#ifndef _SOFTKEYSTOREUTIL_H
#define _SOFTKEYSTOREUTIL_H
/*
* Structures and function prototypes for the keystore
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Keystore State values */
#define KEYSTORE_UNINITIALIZED 0
typedef enum {
ALL_TOKENOBJS = 0,
typedef struct ks_obj_handle {
typedef struct ks_obj {
/* handle for accessing this object */
/* version number of object file */
/* contains decrypted binary data for obj */
/* size of binary data */
/* pointer to next item in list */
} ks_obj_t;
/*
* Prototype for functions in softKeystore.c
*/
int soft_keystore_unlock_object(int fd);
int soft_keystore_get_pin_salt(char **salt);
int soft_keystore_init(int desired_state);
int create_keystore();
#ifdef __cplusplus
}
#endif
#endif /* _SOFTKEYSTOREUTIL_H */