OpenDNSSEC-enforcer
1.3.8
|
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include "ksm/ksmdef.h"
#include "ksm/memory.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
#include "ksm/string_util2.h"
Go to the source code of this file.
Functions | |
void | StrAppend (char **str1, const char *str2) |
void | StrArglistAdd (char ***argv, const char *string) |
void | StrArglistFree (char ***argv) |
char ** | StrArglistCreate (const char *string) |
int | StrKeywordSearch (const char *search, STR_KEYWORD_ELEMENT *keywords, int *value) |
int | StrStrtol (const char *string, long *value) |
int | StrStrtoul (const char *string, unsigned long *value) |
int | StrStrtoi (const char *string, int *value) |
int | StrStrtoui (const char *string, unsigned int *value) |
int | StrIsDigits (const char *string) |
void StrAppend | ( | char ** | str1, |
const char * | str2 | ||
) |
Definition at line 78 of file string_util2.c.
References MemRealloc(), and StrStrdup().
Referenced by ChangeKeyState(), cmd_addzone(), cmd_control(), cmd_dbbackup(), cmd_delzone(), cmd_dsseen(), cmd_exportkeys(), cmd_import(), cmd_keypurge(), cmd_kskretire(), cmd_listkeys(), cmd_listrolls(), cmd_listzone(), cmd_purgepolicy(), cmd_rollzone(), cmd_setup(), commGenSignConf(), CountKeys(), createPidDir(), db_connect(), DdsInit(), DisAppendInt(), DisAppendString(), DisEnd(), DisInit(), DisSpecifyInit(), do_communication(), do_purge(), DqsConditionInt(), DqsConditionKeyword(), DqsConditionString(), DqsCountInit(), DqsInit(), DqsOrderBy(), DqsSpecifyInit(), DusInit(), DusSetInt(), DusSetString(), fix_file_perms(), get_db_details(), getPermsForDrop(), keyRoll(), KsmCheckNextRollover(), KsmDnssecKeyCreate(), KsmImportKeyPair(), KsmImportZone(), KsmKeyCountStillGood(), KsmListBackups(), KsmListPolicies(), KsmListRepos(), KsmListRollovers(), KsmMarkBackup(), KsmMarkPreBackup(), KsmRequestChangeState(), KsmRequestChangeStateN(), KsmRequestSetActiveExpectedRetire(), KsmRollbackMarkPreBackup(), ListKeys(), MarkDSSeen(), NewDSSet(), PurgeKeys(), read_filenames(), read_zonelist_filename(), rename_signconf(), RetireOldKey(), server_main(), update_policies(), update_repositories(), and update_zones().
void StrArglistAdd | ( | char *** | argv, |
const char * | string | ||
) |
Definition at line 144 of file string_util2.c.
References MemCalloc(), MemRealloc(), and StrStrdup().
Referenced by StrArglistCreate().
char** StrArglistCreate | ( | const char * | string | ) |
Definition at line 240 of file string_util2.c.
References MemCalloc(), StrArglistAdd(), StrFree, StrStrdup(), StrTrimL(), StrTrimR(), and StrWhitespace().
void StrArglistFree | ( | char *** | argv | ) |
Definition at line 199 of file string_util2.c.
int StrIsDigits | ( | const char * | string | ) |
Definition at line 590 of file string_util2.c.
Referenced by cmd_dsseen(), cmd_import(), cmd_kskretire(), and DtGeneral().
int StrKeywordSearch | ( | const char * | search, |
STR_KEYWORD_ELEMENT * | keywords, | ||
int * | value | ||
) |
Definition at line 321 of file string_util2.c.
References KSM_INVARG, MsgLog(), STR_KEYWORD_ELEMENT::string, and STR_KEYWORD_ELEMENT::value.
int StrStrtoi | ( | const char * | string, |
int * | value | ||
) |
Definition at line 508 of file string_util2.c.
References KSM_INVARG, MsgLog(), and StrStrtol().
Referenced by cmd_dsseen(), cmd_import(), cmd_kskretire(), DbInt(), DtIntervalSeconds(), and SetParamOnPolicy().
int StrStrtol | ( | const char * | string, |
long * | value | ||
) |
Definition at line 389 of file string_util2.c.
References KSM_INVARG, MsgLog(), StrFree, StrStrdup(), StrTrimL(), and StrTrimR().
Referenced by StrStrtoi().
int StrStrtoui | ( | const char * | string, |
unsigned int * | value | ||
) |
Definition at line 551 of file string_util2.c.
References KSM_INVARG, MsgLog(), and StrStrtoul().
Referenced by DbConnect().
int StrStrtoul | ( | const char * | string, |
unsigned long * | value | ||
) |
Definition at line 449 of file string_util2.c.
References KSM_INVARG, MsgLog(), StrFree, StrStrdup(), StrTrimL(), and StrTrimR().
Referenced by DbUnsignedLong(), and StrStrtoui().