RSA Security logo

RSA BSAFE Cert-C
API Reference

certlog.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 _CERTLOG_H_
00010 #define _CERTLOG_H_ 1
00011 
00018 #include "basetype.h"
00019 #include "service.h"
00020 
00021 #define ST_INFO     0
00022 #define ST_WARNING  1
00023 #define ST_ERROR    2
00024 
00025 /* This function reports an error to all registered status log services. If
00026    the status type is ST_WARNING or ST_INFO, the function returns zero. If
00027    the status type is ST_ERROR, the function returns returns the specified
00028    status parameter as it's own return code. (This is done as a convenience:
00029    you can replace "return status;" with return C_Log (...);"
00030 
00031    If no status-log service provider has been registered, the function just
00032    returns the status parameter and discards the rest of the status
00033    information.
00034 */
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040 
00122 int C_Log (
00123   CERTC_CTX         ctx,                /* Cert-C context */
00124   int               status,             /* status code being reported */
00125   int               statusType,         /* warning, error, or info */
00126   char              *sourceName,        /* name of source file of caller */
00127   int               sourceLine,         /* source line # of caller */
00128   ...);                                 /* other args, depending on status */
00129 
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 
00134 #endif /* _CERTLOG_H_ */



RSA BSAFE® Cert-C 2.7 API Reference