RSA Security logo

RSA BSAFE Cert-C
API Reference

pathspi.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 1999-2002.  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 _PATHSPI_H_
00010 #define _PATHSPI_H_ 1
00011 
00019 #include "basetype.h"
00020 #include "certpath.h"
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00037 typedef struct cert_path_funcs {
00048   void (*Finalize) (
00049     CERTC_CTX       ctx,              /* Cert-C context */
00050     POINTER         handle);          /* provider handle */
00051 
00155   int (*GetNextCertInPath) (
00156     CERTC_CTX      ctx,               /* Cert-C context */
00157     POINTER        handle,            /* service provider handle */
00158     CERT_PATH_CTX *pathCtx,           /* path processing context */
00159     POINTER        startObject,       /* starting point for the path */
00160     LIST_OBJ       certList);         /* list where certs are added */
00161 
00162 
00207   int (*ValidateCert) (
00208     CERTC_CTX      ctx,               /* Cert-C context */
00209     POINTER        handle,            /* service provider handle */
00210     CERT_PATH_CTX *pathCtx,           /* path processing context */
00211     CERT_OBJ       cert,              /* starting cert */
00212     B_KEY_OBJ      validationKey);    /* signature validation key */
00213 
00306   int (*BuildCertPath) (
00307     CERTC_CTX      ctx,               /* Cert-C context handle */
00308     POINTER        handle,            /* service provider handle */
00309     CERT_PATH_CTX *pathCtx,           /* path processing context */
00310     POINTER        startObject,       /* starting point for the path */
00311     LIST_OBJ       certPath,          /* resulting certification path */
00312     LIST_OBJ       crlList,           /* CRLs needed to verify the path */
00313     LIST_OBJ       crlCerts,          /* Additional certs to verify CRLs */
00314     LIST_OBJ       policyInfoList);   /* List of policy info */
00315 } CERT_PATH_FUNCS;
00316 
00317 #ifdef __cplusplus
00318 }
00319 #endif
00320 
00321 #endif /* _PATHSPI_H_ */



RSA BSAFE® Cert-C 2.7 API Reference