tpmtok_int.h revision 47e946e784719ae402ace34695f67b0e6e76ae5c
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * The Initial Developer of the Original Code is International
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Business Machines Corporation. Portions created by IBM
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Corporation are Copyright(C) 2005 International Business
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Machines Corporation. All Rights Reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * This program is free software; you can redistribute it and/or modify
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * it under the terms of the Common Public License as published by
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * IBM Corporation; either version 1 of the License, or(at your option)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * any later version.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * This program is distributed in the hope that it will be useful,
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * but WITHOUT ANY WARRANTY; without even the implied warranty of
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Common Public License for more details.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You should have received a copy of the Common Public License
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * along with this program; if not, a copy can be viewed at
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/* (C) COPYRIGHT International Business Machines Corp. 2001, 2002, 2005 */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Use is subject to license terms.
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
STATE_INVALID = 0,
#ifndef PATH_MAX
#ifndef PACK_DATA
#define PACK_DATA
typedef struct _DL_NODE
void *data;
} DL_NODE;
#define PKW_CRYPTOKI_LIB_VERSION_MINOR 0
} ST_SESSION_T;
void *Previous;
void *Next;
typedef struct _ENCR_DECR_CONTEXT
typedef struct _DIGEST_CONTEXT
} context;
typedef struct _SIGN_VERIFY_CONTEXT
typedef struct _SESSION
} SESSION;
typedef struct _TEMPLATE
} TEMPLATE;
typedef struct _OBJECT
} OBJECT;
typedef struct _OBJECT_MAP
} OBJECT_MAP;
typedef struct _ATTRIBUTE_PARSE_LIST
void *ptr;
typedef struct _OP_STATE_DATA
typedef struct _TWEAK_VEC
int allow_key_mods;
} TWEAK_VEC;
typedef struct _TOKEN_DATA
} TOKEN_DATA;
typedef struct _RSA_DIGEST_CONTEXT {
typedef struct _MECH_LIST_ELEMENT
struct mech_list_item;
struct mech_list_item {
struct mech_list_item *
typedef struct _TOK_OBJ_ENTRY
typedef struct _LW_SHM_TYPE
} LW_SHM_TYPE;
typedef unsigned int CK_ULONG_32;
typedef struct CK_ATTRIBUTE_32 {
char *get_tpm_keystore_path();
struct messages {
char *msg;
struct token_specific_struct {
int (*t_slot2local)();
CK_BYTE *,
CK_BYTE *,
CK_ULONG *,
OBJECT *);
CK_BYTE *,
CK_BYTE *,
OBJECT *);
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_ULONG *);
extern char *card_function_names[];
extern char *total_function_names[];
extern void *xproclock;
void *attach_shared_memory();
void detach_shared_memory(char *);
int API_Initialized();
void Terminate_All_Process_Sessions();
int API_Register();
void API_UnRegister();
void CreateXProcLock(void *);
int XProcLock(void *);
int XProcUnLock(void *);
void _init(void);
void loginit();
void logterm();
void logit(int, char *, ...);
SESSION *,
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG);
CK_MECHANISM *,
CK_MECHANISM *,
CK_MECHANISM *);
CK_MECHANISM *,
CK_OBJECT_HANDLE *);
CK_MECHANISM *,
CK_BYTE *,
CK_ULONG *);
CK_MECHANISM *,
CK_ATTRIBUTE *,
CK_BYTE *,
CK_OBJECT_HANDLE *);
CK_MECHANISM *,
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_ULONG);
CK_MECHANISM *,
CK_BYTE *,
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_BYTE *,
CK_ULONG *);
CK_BYTE *,
CK_ULONG);
CK_BYTE *,
CK_ULONG);
CK_OBJECT_HANDLE *);
CK_ATTRIBUTE *,
DL_NODE *,
CK_ATTRIBUTE *,
CK_ULONG);
CK_ULONG *);
CK_ATTRIBUTE *,
CK_ULONG);
OBJECT **);
OBJECT *,
OBJECT **);
CK_BYTE **,
CK_ULONG *);
CK_ATTRIBUTE *,
CK_ULONG);
OBJECT **,
CK_ATTRIBUTE *,
CK_ULONG);
CK_ULONG);
CK_ULONG);
CK_ULONG);
CK_ULONG);
CK_ATTRIBUTE *);
#ifdef DEBUG
#define LogDebug(...)
#define LogDebug1(...)
#define LogBlob(...)
#define LogError(...)
#define LogError1(...)
#define LogWarn(...)
#define LogWarn1(...)
#define LogInfo(...)
#define LogInfo1(...)
#define st_err_log(...)
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
typedef CK_RV
struct ST_FCN_LIST {