RSA Security logo

RSA BSAFE Cert-C
API Reference

context.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 1999-2003.  All rights reserved.
00003 * This work contains proprietary, confidential, and trade secret
00004 * information of RSA Security Inc.  Use, disclosure or reproduction
00005 * without the express written authorization of RSA Security Inc. is
00006 * prohibited.
00007 */
00008 
00009 #ifndef HEADER_BSAFE_CERTC_CONTEXT
00010 #define HEADER_BSAFE_CERTC_CONTEXT 1
00011 
00018 #include "basetype.h"
00019 #include "service.h"
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00088 int C_InitializeCertC (
00089   SERVICE_HANDLER *handlers,       /* table of service providers */
00090   POINTER         *handlerParams,  /* table of handler parameters */
00091   unsigned int     handlerCount,   /* # of entries in tables */
00092   CERTC_CTX       *ctx);           /* (out) Cert-C context handle */
00093 
00109 void C_FinalizeCertC (
00110   CERTC_CTX *ctx);   /* (in/out) Cert-C context handle */
00111 
00112 #define CERTC_CTX_FLAG_CMS_STREAM_1 0x00000001
00113 #define CERTC_CTX_FLAG_MASK         0x00000001 /* sum of all flags above */
00114 
00141 int C_SetCertCFlags(
00142   CERTC_CTX ctx,      /* (in/out) Cert-C context handle */
00143   UINT4     flags);   /* (in) Cert-C behavior flags */
00144 
00161 int C_GetCertCFlags(
00162   CERTC_CTX  ctx,      /* (in)  Cert-C context handle */
00163   UINT4     *pFlags);  /* (out) Cert-C behavior flags */
00164 
00165 #ifdef __cplusplus
00166 }
00167 #endif
00168 
00169 #endif /* HEADER_BSAFE_CERTC_CONTEXT */



RSA BSAFE® Cert-C 2.7 API Reference