RSA Security logo

RSA BSAFE Cert-C
API Reference

logspi.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 _LOGSPI_H_
00010 #define _LOGSPI_H_ 1
00011 
00018 #include "basetype.h"
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00034 typedef struct log_funcs {
00047   void (*Finalize) (
00048     CERTC_CTX ctx,                /* Cert-C context  */
00049     POINTER   handle);            /* provider handle */
00050 
00138   void (*GetFormatStr) (
00139     CERTC_CTX   ctx,             /* Cert-C context                  */
00140     POINTER     handle,          /* provider handle                 */
00141     int         status,          /* status code being reported      */
00142     int         statusType,      /* warning, error, or info         */
00143     char      **format);         /* where format ptr will be stored */
00144 
00169   void (*Log) (
00170     CERTC_CTX  ctx,               /* Cert-C context        */
00171     POINTER    handle,            /* provider handle       */
00172     char      *msg);              /* formatted log message */
00173 } LOG_FUNCS;
00174 
00175 #ifdef __cplusplus
00176 }
00177 #endif
00178 
00179 #endif



RSA BSAFE® Cert-C 2.7 API Reference