RSA Security logo

RSA BSAFE Cert-C
API Reference

scepdb.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 #ifndef HEADER_BSAFE_CERTC_SCEPDB
00015 #define HEADER_BSAFE_CERTC_SCEPDB 1
00016 
00061 #include "transprt.h"
00062 
00063 #ifdef __cplusplus
00064 extern "C" {
00065 #endif
00066 
00067 /* Values for DB_SCEP_INIT_STRUCT.profile */
00068 #define DB_SCEP_PROFILE_GENERIC  0  /* unspecified/unknown/generic   */
00069 #define DB_SCEP_PROFILE_KEON     1  /* RSA Keon CA (KCS version 5.x) */
00070 #define DB_SCEP_PROFILE_VERISIGN 2  /* VeriSign OnSite               */
00071 #define DB_SCEP_PROFILE_KCA6     3  /* RSA Keon CA (KCA version 6.x) */
00072 #define DB_SCEP_PROFILE_MSCA     4  /* Microsoft Win2K CA Server     */
00073 #define DB_SCEP_PROFILE_MAX        4   /* symbol not for application use */
00074 
00112 typedef struct {
00113   unsigned int   profile;     /* one of DB_SCEP_PROFILE_* */
00114   TRANSPORT_INFO transport;
00115 } DB_SCEP_INIT_STRUCT, *P_DB_SCEP_INIT_STRUCT;
00116 
00117 
00118 /* Values for DB_SCEP_INIT_PARAMS.initChoice */
00119 #define  DB_SCEP_INIT_METHOD_STRUCT   0
00120 #define _DB_SCEP_INIT_METHOD_MAX    0    /* not needed for application use */
00121 
00150 typedef struct {
00151   unsigned int initChoice;
00152   union {
00153     DB_SCEP_INIT_STRUCT initStruct;
00154   } method;
00155 } DB_SCEP_INIT_PARAMS, *P_DB_SCEP_INIT_PARAMS;
00156 
00157 
00210 int S_InitializeSCEPDB(
00211   POINTER        ctx,          /* (in)  Cert-C context               */
00212   POINTER        params,       /* (in)  provider-specific parameters */
00213   SERVICE_FUNCS *funcs,        /* (out) provider functions           */
00214   POINTER       *handle);      /* (out) provider handle              */
00215 
00216 #ifdef __cplusplus
00217 }
00218 #endif
00219 
00220 #endif /* ! HEADER_BSAFE_CERTC_SCEPDB */



RSA BSAFE® Cert-C 2.7 API Reference