OpenDNSSEC-enforcer
1.4.8.2
|
#include "config.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include "compat.h"
#include "ksm/ksm.h"
#include "ksm/datetime.h"
#include "ksm/message.h"
#include "ksm/kmedef.h"
#include "ksm/string_util.h"
#include "ksm/string_util2.h"
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE /* glibc2 needs this */ |
#define | COPY1(src, srcidx, dst, dstidx) |
#define | COPY2(src, srcidx, dst, dstidx) |
#define | COPY3(src, srcidx, dst, dstidx) |
#define | COPY4(src, srcidx, dst, dstidx) |
Functions | |
int | DtNow (struct tm *datetime) |
int | DtNumeric (const char *string, struct tm *datetime) |
int | DtAppendTime (char *fulldt, const char *timepart) |
int | DtGeneral (const char *string, struct tm *datetime) |
char * | DtGeneralString (const char *string) |
int | DtParseDateTime (const char *string, struct tm *datetime) |
char * | DtParseDateTimeString (const char *string) |
int | DtIntervalSeconds (const char *text, int *interval) |
void | DtSecondsInterval (int interval, char *text, size_t textlen) |
int | DtDateDiff (const char *date1, const char *date2, int *result) |
int | DtXMLIntervalSeconds (const char *text, int *interval) |
#define _GNU_SOURCE /* glibc2 needs this */ |
Definition at line 34 of file datetime.c.
#define COPY1 | ( | src, | |
srcidx, | |||
dst, | |||
dstidx | |||
) |
Definition at line 55 of file datetime.c.
#define COPY2 | ( | src, | |
srcidx, | |||
dst, | |||
dstidx | |||
) |
Definition at line 59 of file datetime.c.
Referenced by DtGeneral(), and DtNumeric().
#define COPY3 | ( | src, | |
srcidx, | |||
dst, | |||
dstidx | |||
) |
Definition at line 64 of file datetime.c.
Referenced by DtGeneral().
#define COPY4 | ( | src, | |
srcidx, | |||
dst, | |||
dstidx | |||
) |
Definition at line 69 of file datetime.c.
Referenced by DtGeneral(), and DtNumeric().
int DtAppendTime | ( | char * | fulldt, |
const char * | timepart | ||
) |
Definition at line 235 of file datetime.c.
Referenced by DtGeneral().
int DtDateDiff | ( | const char * | date1, |
const char * | date2, | ||
int * | result | ||
) |
Definition at line 825 of file datetime.c.
Referenced by do_communication(), and KsmPolicyUpdateSalt().
int DtGeneral | ( | const char * | string, |
struct tm * | datetime | ||
) |
Definition at line 326 of file datetime.c.
References COPY2, COPY3, COPY4, DtAppendTime(), DtNumeric(), StrIsDigits(), and StrStrncpy().
Referenced by cmd_import(), cmd_kskrevoke(), DtGeneralString(), and DtParseDateTime().
char* DtGeneralString | ( | const char * | string | ) |
Definition at line 477 of file datetime.c.
References DtGeneral(), KSM_TIME_LENGTH, and StrStrdup().
int DtIntervalSeconds | ( | const char * | text, |
int * | interval | ||
) |
Definition at line 675 of file datetime.c.
References StrStrtoi().
int DtNow | ( | struct tm * | datetime | ) |
Definition at line 93 of file datetime.c.
References DtParseDateTime(), KME_TIMESHIFT, and MsgLog().
Referenced by cmd_kskrevoke(), and DtParseDateTime().
int DtNumeric | ( | const char * | string, |
struct tm * | datetime | ||
) |
int DtParseDateTime | ( | const char * | string, |
struct tm * | datetime | ||
) |
Definition at line 543 of file datetime.c.
References DtGeneral(), DtNow(), StrFree, StrStrdup(), StrToLower(), StrTrimL(), and StrTrimR().
Referenced by DtNow(), and DtParseDateTimeString().
char* DtParseDateTimeString | ( | const char * | string | ) |
Definition at line 614 of file datetime.c.
References DtParseDateTime(), KSM_TIME_LENGTH, and StrStrdup().
Referenced by allocateKeysToZone(), cmd_backup(), cmd_dsseen(), cmd_genkeys(), cmd_kskretire(), commGenSignConf(), do_communication(), do_keygen(), do_purge(), keyRoll(), KsmKillKey(), and KsmPolicyUpdateSalt().
void DtSecondsInterval | ( | int | interval, |
char * | text, | ||
size_t | textlen | ||
) |
Definition at line 774 of file datetime.c.
References StrStrncpy().
Referenced by KsmParameterShow().
int DtXMLIntervalSeconds | ( | const char * | text, |
int * | interval | ||
) |
Definition at line 925 of file datetime.c.
Referenced by cmd_genkeys(), get_conf_key_info(), ReadConfig(), and SetParamOnPolicy().