keydata_65533.c revision b0ba1a6059b6d6c4b3aa77d8bc84cc443b981e01
/*
* Copyright (C) 2009, 2011-2013, 2015 Internet Systems Consortium, Inc. ("ISC")
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#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 (delete != 0U) {
target));
isc_time_set(&t, delete, 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 */