key_25.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1999-2005, 2007, 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/.
*/
/* $Id$ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
*/
/* RFC2535 */
#ifndef RDATA_GENERIC_KEY_25_C
#define RDATA_GENERIC_KEY_25_C
#define RRTYPE_KEY_ATTRIBUTES (0)
static inline isc_result_t
/* 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("[key id = 64000]")];
unsigned int flags;
unsigned char algorithm;
char algbuf[DNS_NAME_FORMATSIZE];
const char *keyinfo;
/* 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);
} else {
sizeof(algbuf));
}
/* key */
else
} else {
}
}
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
unsigned char algorithm;
return (ISC_R_UNEXPECTEDEND);
if (algorithm == DNS_KEYALG_PRIVATEDNS) {
}
/*
* RSAMD5 computes key ID differently from other
* algorithms: we need to ensure there's enough data
* present for the computation
*/
return (ISC_R_UNEXPECTEDEND);
}
static inline isc_result_t
}
static inline isc_result_t
}
static inline isc_result_t
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
/* Flags */
/* Protocol */
/* Algorithm */
/* Data */
}
static inline isc_result_t
/* 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
}
static inline isc_result_t
}
static inline void
}
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 /* RDATA_GENERIC_KEY_25_C */