OpenDNSSEC-enforcer
1.3.4
|
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "ksm/message.h"
#include "ksm/string_util.h"
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_CODEBLOCK * | m_codeblock = NULL |
int | m_numblocks = 0 |
#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().
void MsgDefaultOutput | ( | const char * | text | ) |
Definition at line 87 of file message.c.
Referenced by MsgLogAp(), MsgRegister(), and MsgSetOutput().
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.
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 MsgDefaultOutput(), MsgGetOutput(), and MsgText().
void MsgNoOutput | ( | const char * | text | ) |
void MsgRegister | ( | int | min, |
int | max, | ||
const char ** | message, | ||
MSG_OUTPUT_FUNCTION | output | ||
) |
Definition at line 144 of file message.c.
References m_numblocks, MAX, MSG_CODEBLOCK::max, MemCalloc(), MemRealloc(), MSG_CODEBLOCK::message, MIN, MSG_CODEBLOCK::min, MsgDefaultOutput(), and MSG_CODEBLOCK::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 MsgDefaultOutput(), 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().
MSG_CODEBLOCK* m_codeblock = NULL |
int m_numblocks = 0 |
Definition at line 52 of file message.c.
Referenced by MsgFindCodeBlock(), MsgInit(), MsgRegister(), and MsgRundown().