RSA Security logo

RSA BSAFE Cert-C
API Reference

scep.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_SCEP
00015 #define HEADER_BSAFE_CERTC_SCEP 1
00016 
00062 #include "transprt.h"
00063 
00064 #ifdef __cplusplus
00065 extern "C" {
00066 #endif
00067 
00068 /* Values for PKI_SCEP_INIT_STRUCT.profile */
00069 #define PKI_SCEP_PROFILE_GENERIC  0  /* unspecified/unknown/generic   */
00070 #define PKI_SCEP_PROFILE_KEON     1  /* RSA Keon CA (KCS version 5.x) */
00071 #define PKI_SCEP_PROFILE_VERISIGN 2
00072 #define PKI_SCEP_PROFILE_KCA6     3  /* RSA Keon CA (KCA version 6.x) */
00073 #define PKI_SCEP_PROFILE_MSCA     4  /* Microsoft Win2K CA Server     */
00074 #define PKI_SCEP_PROFILE_MAX       4   /* symbol not for application use */
00075 
00089 typedef struct {
00090   unsigned int   profile;     /* one of PKI_SCEP_PROFILE_* */
00091   TRANSPORT_INFO transport;
00092 } PKI_SCEP_INIT_STRUCT, *P_PKI_SCEP_INIT_STRUCT;
00093 
00094 
00095 /* Values for PKI_SCEP_INIT_PARAMS */
00096 #define  PKI_SCEP_INIT_METHOD_STRUCT   0 /* use PKI_SCEP_INIT_STRUCT method */
00097 #define _PKI_SCEP_INIT_METHOD_MAX    0
00098 
00114 typedef struct {
00115   unsigned int initChoice;
00116   union {
00117     PKI_SCEP_INIT_STRUCT initStruct;
00118   } method;
00119   POINTER handle;
00120 } PKI_SCEP_INIT_PARAMS, *P_PKI_SCEP_INIT_PARAMS;
00121 
00167 int S_InitializeSCEPPKI(
00168   POINTER        ctx,          /* (in)  Cert-C context               */
00169   POINTER        params,       /* (in)  provider-specific parameters */
00170   SERVICE_FUNCS *funcs,        /* (out) provider functions           */
00171   POINTER       *handle);      /* (out) provider handle              */
00172 
00202 int
00203 S_SCEP_GetRequestFingerprint(
00204   CERTC_CTX     ctx,           /* (in)  Cert-C context                */
00205   POINTER       handle,        /* (in)  SP-specific data handle       */
00206   PKI_MSG_OBJ   certRequest,   /* (in)  certification request object  */
00207   ITEM         *pDataItem);    /* (out) retreived POP fingerprint     */
00208 
00209 #ifdef __cplusplus
00210 }
00211 #endif
00212 
00213 #endif /* ! HEADER_BSAFE_CERTC_SCEP */



RSA BSAFE® Cert-C 2.7 API Reference