RSA Security logo

RSA BSAFE Cert-C
API Reference

pkicfmsg.h

Go to the documentation of this file.
00001 /*
00002 ** Copyright (c) 1999-2003, 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 
00019 #ifndef HEADER_BSAFE_CERTC_PKICFMSG
00020 #define HEADER_BSAFE_CERTC_PKICFMSG 1
00021 
00022 #include "basetype.h"
00023 #include "bsafe.h"
00024 #include "certext.h"
00025 #include "certapi.h"
00026 #include "certalg.h"
00027 #include "pkistinf.h"
00028 #include "pkimsg.h"
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00076 typedef POINTER PKI_CERT_CONF_REQ_OBJ;  /* handle to PKI certConf req obj   */
00077 
00099 typedef POINTER PKI_CERT_CONF_RESP_OBJ; /* handle to PKI certConf resp obj  */
00100 
00101 /* choice of confirmation */
00105 #define PKI_CERT_CONF_ACCEPT 0
00106 
00109 #define PKI_CERT_CONF_REJECT 1
00110 
00123 int C_CreatePKICertConfReqObject (
00124   CERTC_CTX             ctx,                  /* (in) Cert-C context */
00125   PKI_CERT_CONF_REQ_OBJ *pPKICertConfReqObj); /* (mod) pki cert conf req obj */
00126 
00135 void C_DestroyPKICertConfReqObject (
00136   PKI_CERT_CONF_REQ_OBJ *pPKICertConfReqObj); /* (mod) pki cert confreq Object */
00137 
00150 int C_SetPKICertConfReqConfirmStatus (
00151   PKI_CERT_CONF_REQ_OBJ PKICertConfReqObj,    /* (mod) pki cert conf req object */
00152   int                   confirmStatus);       /* (in) confirmation status */
00153 
00167 int C_GetPKICertConfReqConfirmStatus (
00168   PKI_CERT_CONF_REQ_OBJ PKICertConfReqObj,    /* (in) pki cert conf req object */
00169   int                   *pConfirmStatus);     /* (out) confirmation status */
00170 
00183 int C_SetPKICertConfReqStatus (
00184   PKI_CERT_CONF_REQ_OBJ PKICertConfReqObj,    /* (mod) pki cert conf req object */
00185   PKI_STATUS_INFO_OBJ   PKIStatusObj);        /* (in) pki status info object */
00186 
00200 int C_GetPKICertConfReqStatus (
00201   PKI_CERT_CONF_REQ_OBJ PKICertConfReqObj,    /* (in) pki cert conf req object */
00202   PKI_STATUS_INFO_OBJ   *pPKIStatusObj);      /* (out) pki status info object */
00203 
00217 int C_SetPKICertConfReqCertReqId (
00218   PKI_CERT_CONF_REQ_OBJ  PKICertConfReqObj,   /* (mod) pki cert conf req object */
00219   ITEM                  *pCertReqID);         /* (in) certificate reqest ID */
00220 
00233 int C_GetPKICertConfReqCertReqId (
00234   PKI_CERT_CONF_REQ_OBJ PKICertConfReqObj,    /* (in) pki cert conf req object */
00235   ITEM                  *pCertReqId);         /* (out) certificate reqest ID */
00236 
00249 int C_SetPKICertConfReqCert (
00250   PKI_CERT_CONF_REQ_OBJ PKICertConfReqObj,    /* (mod) pki cert conf req object */
00251   CERT_OBJ              certObj);             /* (in) cert need to be confirmed */
00252 
00266 int C_GetPKICertConfReqCert (
00267   PKI_CERT_CONF_REQ_OBJ  PKICertConfReqObj,   /* (in) pki cert conf req object */
00268   CERT_OBJ              *pCertObj);           /* (out) cert need to be confirmed */
00269 
00282 int C_CreatePKICertConfRespObject (
00283   CERTC_CTX               ctx,                    /* (in) Cert-C context */
00284   PKI_CERT_CONF_RESP_OBJ  *pPKICertConfRespObj);  /* (mod) pki cert conf resp obj */
00285 
00294 void C_DestroyPKICertConfRespObject (
00295   PKI_CERT_CONF_RESP_OBJ  *pPKICertConfRespObj);  /* (mod) pki cert conf resp Object */
00296 
00297 #ifdef __cplusplus
00298 }
00299 #endif
00300 
00301 #endif /* HEADER_BSAFE_CERTC_PKICFMSG */



RSA BSAFE® Cert-C 2.7 API Reference