RSA Security logo

RSA BSAFE Cert-C
API Reference

crs.h

Go to the documentation of this file.
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 #ifndef HEADER_BSAFE_CERTC_CRS
00015 #define HEADER_BSAFE_CERTC_CRS 1
00016 
00053 #ifdef __cplusplus
00054 extern "C" {
00055 #endif
00056 
00057 #define PKI_CRS_PROFILE_GENERIC  0 /* "generic"  unspecified/generic CA */
00058 #define PKI_CRS_PROFILE_KEON     1 /* "Keon"     KCS 5.5                */
00059 #define PKI_CRS_PROFILE_VERISIGN 2 /* "VeriSIgn" VeriSign OnSite        */
00060 #define PKI_CRS_PROFILE_KCA6     3 /* "KCA6"     KCA 6.0                */
00061 #define PKI_CRS_PROFILE_MAX      3 /* not intended for application use */
00062 
00129 typedef struct PKI_CRS_INIT_PARAMS {
00130   unsigned char *configURL;  /* (in)  URL for configuration information */
00131   POINTER        handle;     /* (out) service provider handle           */
00132 } PKI_CRS_INIT_PARAMS, *P_PKI_CRS_INIT_PARAMS;
00133 
00182 int S_InitializeCRS(
00183   POINTER        ctx,     /* (in)  Cert-C context               */
00184   POINTER        params,  /* (in)  provider-specific parameters */
00185   SERVICE_FUNCS *funcs,   /* (out) provider functions           */
00186   POINTER       *handle); /* (out) provider handle              */
00187 
00188 /* values for CRS_POP_PROVIDE_INFO.method */
00189 #define CRS_POP_PROVIDE_METHOD_CSR   0
00190 
00216 typedef struct {
00217   int  method;   /* one of CRS_POP_PROVIDE_METHOD_* above */
00218   ITEM info;     /* provided POP information              */
00219 } CRS_POP_PROVIDE_INFO;
00220 
00245 int
00246 S_CRS_ProvideProofOfPossession(
00247   CERTC_CTX             ctx,         /* (in) Cert-C context               */
00248   POINTER               handle,      /* (in) SP-specific data handle      */
00249   PKI_MSG_OBJ           certRequest, /* (in) certification request object */
00250   CRS_POP_PROVIDE_INFO *pPopInfo);   /* (in) provided POP information     */
00251 
00252 #ifdef __cplusplus
00253 }
00254 #endif
00255 
00256 #endif /* HEADER_BSAFE_CERTC_CRS */



RSA BSAFE® Cert-C 2.7 API Reference