return true; // we pretend this happened.
}
-uint32_t pdns_strtoui(const char *nptr, char **endptr, int base)
-{
-#if ULONG_MAX == 4294967295
- return strtoul(nptr, endptr, base);
-#else
- unsigned long val = strtoul(nptr, endptr, base);
- if (val > UINT_MAX) {
- errno = ERANGE;
- return UINT_MAX;
- }
-
- return val;
-#endif
-}
bool setNonBlocking(int sock)
{
int flags=fcntl(sock,F_GETFL,0);
uint16_t getShort(const char *p);
uint32_t getLong(const unsigned char *p);
uint32_t getLong(const char *p);
-uint32_t pdns_strtoui(const char *nptr, char **endptr, int base);
bool getTSIGHashEnum(const DNSName& algoName, TSIGHashEnum& algoEnum);
DNSName getTSIGAlgoName(TSIGHashEnum& algoEnum);