/*
* Copyright (C) 2009, 2011-2013, 2015-2017 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef GENERIC_KEYDATA_65533_C
#define RRTYPE_KEYDATA_ATTRIBUTES (0)
static inline isc_result_t
/* refresh timer */
ISC_FALSE));
/* add hold-down */
ISC_FALSE));
/* remove hold-down */
ISC_FALSE));
/* flags */
ISC_FALSE));
/* protocol */
ISC_FALSE));
/* algorithm */
ISC_FALSE));
/* No Key? */
return (ISC_R_SUCCESS);
if (result != ISC_R_SUCCESS)
return (result);
/* Ensure there's at least enough data to compute a key ID for MD5 */
return (ISC_R_UNEXPECTEDEND);
return (ISC_R_SUCCESS);
}
static inline isc_result_t
unsigned int flags;
unsigned char algorithm;
const char *keyinfo;
/* refresh timer */
/* add hold-down */
/* remove hold-down */
/* flags */
if ((flags & DNS_KEYFLAG_KSK) != 0) {
if (flags & DNS_KEYFLAG_REVOKE)
keyinfo = "revoked KSK";
else
keyinfo = "KSK";
} else
keyinfo = "ZSK";
/* protocol */
/* algorithm */
/* No Key? */
return (ISC_R_SUCCESS);
/* key */
else
isc_time_t t;
sizeof(algbuf));
/* Skip over refresh, addhd, and removehd */
isc_time_set(&t, refresh, 0);
if (add == 0U) {
} else {
target));
} else {
target));
}
isc_time_set(&t, add, 0);
sizeof(abuf));
}
if (deltime != 0U) {
target));
isc_time_set(&t, deltime, 0);
sizeof(dbuf));
}
}
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
/* Refresh timer */
/* Add hold-down */
/* Remove hold-down */
/* Flags */
/* Protocol */
/* Algorithm */
/* Data */
}
static inline isc_result_t
/* Refresh timer */
return (ISC_R_UNEXPECTEDEND);
/* Add hold-down */
return (ISC_R_UNEXPECTEDEND);
/* Remove hold-down */
return (ISC_R_UNEXPECTEDEND);
/* Flags */
return (ISC_R_UNEXPECTEDEND);
/* Protocol */
return (ISC_R_UNEXPECTEDEND);
/* Algorithm */
return (ISC_R_UNEXPECTEDEND);
/* Data */
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
static inline void
return;
}
static inline isc_result_t
return (ISC_R_SUCCESS);
}
static inline isc_result_t
isc_region_t r;
dns_rdata_toregion(rdata, &r);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline int
}
#endif /* GENERIC_KEYDATA_65533_C */