OpenDNSSEC-enforcer  1.4.8.2
Macros | Functions | Variables
message.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "ksm/message.h"
#include "ksm/string_util.h"
Include dependency graph for message.c:

Go to the source code of this file.

Macros

#define MAX(X, Y)   ((X) > (Y) ? (X) : (Y))
 
#define MIN(X, Y)   ((X) < (Y) ? (X) : (Y))
 

Functions

void MsgInit (void)
 
void MsgDefaultOutput (const char *text)
 
void MsgNoOutput (const char *text)
 
void MsgRegister (int min, int max, const char **message, MSG_OUTPUT_FUNCTION output)
 
int MsgFindCodeBlock (int status)
 
const char * MsgText (int status)
 
MSG_OUTPUT_FUNCTION MsgGetOutput (int status)
 
void MsgSetOutput (int status, MSG_OUTPUT_FUNCTION output)
 
int MsgLog (int status,...)
 
int MsgLogAp (int status, va_list ap)
 
void MsgRundown (void)
 

Variables

MSG_CODEBLOCKm_codeblock = NULL
 
int m_numblocks = 0
 

Macro Definition Documentation

#define MAX (   X,
 
)    ((X) > (Y) ? (X) : (Y))

Definition at line 46 of file message.c.

Referenced by MsgRegister().

#define MIN (   X,
 
)    ((X) < (Y) ? (X) : (Y))

Definition at line 47 of file message.c.

Referenced by MsgRegister().

Function Documentation

void MsgDefaultOutput ( const char *  text)

Definition at line 84 of file message.c.

Referenced by MsgLogAp(), MsgRegister(), and MsgSetOutput().

int MsgFindCodeBlock ( int  status)

Definition at line 186 of file message.c.

References m_numblocks, max, and min.

Referenced by MsgGetOutput(), MsgSetOutput(), and MsgText().

MSG_OUTPUT_FUNCTION MsgGetOutput ( int  status)

Definition at line 258 of file message.c.

References MsgFindCodeBlock(), and MSG_CODEBLOCK::output.

Referenced by MsgLogAp().

void MsgInit ( void  )

Definition at line 63 of file message.c.

References m_numblocks.

Referenced by KsmInit(), and main().

int MsgLog ( int  status,
  ... 
)

Definition at line 335 of file message.c.

References MsgLogAp().

Referenced by ChangeKeyState(), cmd_kskrevoke(), cmd_purgepolicy(), db_version_check(), DbCheckConnected(), DbConnect(), DbDateDiff(), DbDisconnect(), DbExecuteSql(), DbExecuteSqlNoResult(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbInt(), DbIntQuery(), DbLastRowId(), DbQuoteString(), DbRowId(), DbString(), DbStringBuffer(), DbUnsignedLong(), DtNow(), KsmCheckHSMkeyID(), KsmCollectionInit(), KsmDeleteZone(), KsmDnssecKeyCreate(), KsmDNSSECKeysInSMCount(), KsmDNSSECKeysStateCountInit(), KsmImportKeyPair(), KsmImportPolicy(), KsmImportRepository(), KsmImportZone(), KsmKey(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmKeyGetUnallocated(), KsmKeyInit(), KsmKeyPairCreate(), KsmKeyPredict(), KsmMarkBackup(), KsmMarkPreBackup(), KsmParameter(), KsmParameterClockskew(), KsmParameterCollection(), KsmParameterInitialPublicationInterval(), KsmParameterKskLifetime(), KsmParameterKskPropagationDelay(), KsmParameterKskTtl(), KsmParameterPropagationDelay(), KsmParameterPubSafety(), KsmParameterRegistrationDelay(), KsmParameterRetSafety(), KsmParameterRevoke(), KsmParameterRfc5011(), KsmParameterSigningInterval(), KsmParameterSoaMin(), KsmParameterSoaTtl(), KsmParameterStandbyKSKeys(), KsmParameterStandbyZSKeys(), KsmParameterValue(), KsmParameterZskLifetime(), KsmParameterZskTtl(), KsmPolicy(), KsmPolicyClockskew(), KsmPolicyExists(), KsmPolicyIdFromName(), KsmPolicyIdFromZoneId(), KsmPolicyInitialPublicationInterval(), KsmPolicyKeyLifetime(), KsmPolicyKeyTtl(), KsmPolicyNameFromId(), KsmPolicyNullSaltStamp(), KsmPolicyParameter(), KsmPolicyPopulateSMFromIds(), KsmPolicyPropagationDelay(), KsmPolicyRead(), KsmPolicySetIdFromName(), KsmPolicySoaMin(), KsmPolicySoaTtl(), KsmPolicyStandbyKeys(), KsmPolicyUpdateDesc(), KsmPolicyUpdateSalt(), KsmRequestAvailableCount(), KsmRequestChangeState(), KsmRequestChangeStateGenerateDSSubConditional(), KsmRequestChangeStateGeneratePublishConditional(), KsmRequestChangeStateN(), KsmRequestCheckActiveKey(), KsmRequestCheckCompromisedFlag(), KsmRequestCheckFirstPass(), KsmRequestCountReadyKey(), KsmRequestGenerateCount(), KsmRequestIssueKeys(), KsmRequestKeys(), KsmRequestKeysByType(), KsmRequestPendingRetireCount(), KsmRequestSetActiveExpectedRetire(), KsmRequestStandbyKSKCount(), KsmRollbackMarkPreBackup(), KsmSerialIdFromName(), KsmSmIdFromName(), KsmUpdateActiveKeyTime(), KsmUpdateDeadKeyTime(), KsmUpdateDSPublishKeyTime(), KsmUpdateGenerateKeyTime(), KsmUpdateKey(), KsmUpdateKEYPublishKeyTime(), KsmUpdateKeyTime(), KsmUpdatePublishKeyTime(), KsmUpdateReadyKeyTime(), KsmUpdateRetireKeyTime(), KsmZone(), KsmZoneCount(), KsmZoneIdAndPolicyFromName(), KsmZoneIdFromName(), KsmZoneNameFromId(), MarkDSSeen(), MemCalloc(), MemMalloc(), MemRealloc(), RetireOldKey(), RevokeOldKey(), StrKeywordSearch(), StrStrdup(), StrStrtoi(), StrStrtol(), StrStrtoui(), and StrStrtoul().

int MsgLogAp ( int  status,
va_list  ap 
)

Definition at line 371 of file message.c.

References MsgDefaultOutput(), MsgGetOutput(), and MsgText().

Referenced by DbgLog(), and MsgLog().

void MsgNoOutput ( const char *  text)

Definition at line 104 of file message.c.

void MsgRegister ( int  min,
int  max,
const char **  message,
MSG_OUTPUT_FUNCTION  output 
)
void MsgRundown ( void  )

Definition at line 412 of file message.c.

References m_numblocks, and MemFree.

Referenced by KsmRundown(), and main().

void MsgSetOutput ( int  status,
MSG_OUTPUT_FUNCTION  output 
)

Definition at line 290 of file message.c.

References MsgDefaultOutput(), MsgFindCodeBlock(), and MSG_CODEBLOCK::output.

const char* MsgText ( int  status)

Definition at line 223 of file message.c.

References MSG_CODEBLOCK::message, MSG_CODEBLOCK::min, and MsgFindCodeBlock().

Referenced by MsgLogAp().

Variable Documentation

MSG_CODEBLOCK* m_codeblock = NULL

Definition at line 49 of file message.c.

int m_numblocks = 0

Definition at line 50 of file message.c.

Referenced by MsgFindCodeBlock(), MsgInit(), MsgRegister(), and MsgRundown().