![]() |
RSA BSAFE Cert-C |
00001 /* 00002 ** Copyright (c) 1999-2002, RSA Security Inc. 00003 ** 00004 ** This file is used to demonstrate how to interface to an RSA 00005 ** Security licensed development product. You have a 00006 ** royalty-free right to use, modify, reproduce and distribute this 00007 ** demonstration file (including any modified version), provided that 00008 ** you agree that RSA Security has no warranty, implied or 00009 ** otherwise, or liability for this demonstration file or any modified 00010 ** version. 00011 ** 00012 */ 00013 00014 00015 #ifndef _RSADB_H_ 00016 #define _RSADB_H_ 1 00017 00025 #include "service.h" 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00073 typedef struct { 00074 char *path; /* path to database */ 00075 char *name; /* database name */ 00076 ITEM password; /* password for private keys */ 00077 } DEFAULT_DB_PARAMS; 00078 00135 int S_InitializeDefaultDB ( 00136 POINTER ctx, /* Cert-C context */ 00137 POINTER params, /* provider-specific parameters */ 00138 SERVICE_FUNCS *funcs, /* (out) provider functions */ 00139 POINTER *handle); /* (out) provider handle */ 00140 00164 int S_CreateDefaultDB ( 00165 CERTC_CTX ctx, /* Cert-C context */ 00166 DEFAULT_DB_PARAMS *params); /* database parameters */ 00167 00190 int S_DeleteDefaultDB ( 00191 CERTC_CTX ctx, /* Cert-C context */ 00192 DEFAULT_DB_PARAMS *params); /* database parameters */ 00193 00220 int S_GetDefaultDBList ( 00221 CERTC_CTX ctx, /* Cert-C context */ 00222 char *path, /* path to database(s) */ 00223 LIST_OBJ dbList); /* list of database names */ 00224 00225 #ifdef __cplusplus 00226 } 00227 #endif 00228 00229 #endif /* _RSADB_H_ */