RSA Security logo

RSA BSAFE Cert-C
API Reference

pkcs11db.h

Go to the documentation of this file.
00001 /*
00002 ** Copyright (c) 2000-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 _PKCS11DB_H_
00016 #define _PKCS11DB_H_
00017 
00027 #include "service.h"
00028 #include "bsafe.h"
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 /* PKCS #11 database provider specific intialization parameters
00035  */
00036 
00079 typedef struct PKCS11_INIT_PARAMS {
00080   B_PKCS11_SESSION  *pPKCS11Info;  /* (mod) address of one session information struct */
00081   POINTER           dbHandle;      /* (out) database context handle                   */
00082 } PKCS11_INIT_PARAMS;
00083 
00084 
00383 int S_InitializePKCS11DB (
00384   CERTC_CTX      ctx,           /* (in)  Cert-C context            */
00385   POINTER        params,        /* (mod) initialization parameters */
00386   SERVICE_FUNCS *funcs,         /* (out) provider functions        */
00387   POINTER       *phP11DB);      /* (out) provider handle           */
00388 
00389 
00429 int S_GetPKCS11Error(
00430   POINTER  dbHandle,       /* (in) db handle returned in init parameters */
00431   int     *pLastLibErr);   /* (out) last library error recorded          */
00432 
00433 #ifdef __cplusplus
00434 }
00435 #endif
00436 
00437 #endif



RSA BSAFE® Cert-C 2.7 API Reference