Defines | Functions | Variables

/srv/bpo/opendnssec/opendnssec-1.3.2/enforcer/ksm/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.

Defines

#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

Define Documentation

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

Definition at line 48 of file message.c.

Referenced by MsgRegister().

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

Definition at line 49 of file message.c.

Referenced by MsgRegister().


Function Documentation

void MsgDefaultOutput ( const char *  text  ) 

Definition at line 87 of file message.c.

int MsgFindCodeBlock ( int  status  ) 

Definition at line 189 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 261 of file message.c.

References MsgFindCodeBlock(), and MSG_CODEBLOCK::output.

Referenced by MsgLogAp().

void MsgInit ( void   ) 

Definition at line 66 of file message.c.

References m_numblocks.

Referenced by KsmInit(), and main().

int MsgLog ( int  status,
  ... 
)

Definition at line 338 of file message.c.

References MsgLogAp().

Referenced by ChangeKeyState(), cmd_purgepolicy(), db_version_check(), DbCheckConnected(), DbConnect(), DbDisconnect(), DbExecuteSql(), DbExecuteSqlNoResult(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbInt(), DbIntQuery(), DbLastRowId(), 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(), 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(), 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(), StrKeywordSearch(), StrStrdup(), StrStrtoi(), StrStrtol(), StrStrtoui(), and StrStrtoul().

int MsgLogAp ( int  status,
va_list  ap 
)

Definition at line 374 of file message.c.

References MsgGetOutput(), and MsgText().

Referenced by DbgLog(), and MsgLog().

void MsgNoOutput ( const char *  text  ) 

Definition at line 107 of file message.c.

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

Definition at line 415 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 293 of file message.c.

References MsgFindCodeBlock(), and MSG_CODEBLOCK::output.

const char* MsgText ( int  status  ) 

Definition at line 226 of file message.c.

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

Referenced by MsgLogAp().


Variable Documentation

Definition at line 51 of file message.c.

int m_numblocks = 0

Definition at line 52 of file message.c.

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