keydata_65533.c revision bfde61d5194a534d800f3b90008d1f52261922c5
/*
* Copyright (C) 2009, 2011-2013, 2015, 2016 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 GENERIC_KEYDATA_65533_C 1
#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
char buf[sizeof("64000")];
unsigned int flags;
unsigned char algorithm;
char algbuf[DNS_NAME_FORMATSIZE];
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
char rbuf[ISC_FORMATHTTPTIMESTAMP_SIZE];
char abuf[ISC_FORMATHTTPTIMESTAMP_SIZE];
char dbuf[ISC_FORMATHTTPTIMESTAMP_SIZE];
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 */