tkey_249.c revision 4ded8003e33ee5c9fbdde06630d6e0e50fe01797
/*
* Copyright (C) 2004, 2007, 2009, 2011, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* 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.
*/
/* $Id$ */
/*
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
*/
#ifndef RDATA_GENERIC_TKEY_249_C
#define RDATA_GENERIC_TKEY_249_C
#define RRTYPE_TKEY_ATTRIBUTES (DNS_RDATATYPEATTR_META)
static inline isc_result_t
long i;
char *e;
/*
* Algorithm.
*/
ISC_FALSE));
/*
* Inception.
*/
ISC_FALSE));
/*
* Expiration.
*/
ISC_FALSE));
/*
* Mode.
*/
ISC_FALSE));
/*
* Error.
*/
ISC_FALSE));
!= ISC_R_SUCCESS)
{
if (*e != 0)
if (i < 0 || i > 0xffff)
rcode = (dns_rcode_t)i;
}
/*
* Key Size.
*/
ISC_FALSE));
/*
* Key Data.
*/
/*
* Other Size.
*/
ISC_FALSE));
/*
* Other Data.
*/
}
static inline isc_result_t
char buf[sizeof("4294967295 ")];
unsigned long n;
/*
* Algorithm.
*/
/*
* Inception.
*/
n = uint32_fromregion(&sr);
/*
* Expiration.
*/
n = uint32_fromregion(&sr);
/*
* Mode.
*/
n = uint16_fromregion(&sr);
/*
* Error.
*/
n = uint16_fromregion(&sr);
else {
}
/*
* Key Size.
*/
n = uint16_fromregion(&sr);
/*
* Key Data.
*/
else
else
isc_region_consume(&sr, n);
/*
* Other Size.
*/
n = uint16_fromregion(&sr);
/*
* Other Data.
*/
if (n != 0U) {
else
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
unsigned long n;
/*
* Algorithm.
*/
/*
* Inception: 4
* Expiration: 4
* Mode: 2
* Error: 2
*/
return (ISC_R_UNEXPECTEDEND);
/*
* Key Length + Key Data.
*/
return (ISC_R_UNEXPECTEDEND);
n = uint16_fromregion(&sr);
return (ISC_R_UNEXPECTEDEND);
/*
* Other Length + Other Data.
*/
return (ISC_R_UNEXPECTEDEND);
n = uint16_fromregion(&sr);
return (ISC_R_UNEXPECTEDEND);
}
static inline isc_result_t
/*
* Algorithm.
*/
}
static inline int
int order;
/*
* Algorithm.
*/
return (order);
}
static inline isc_result_t
/*
* Algorithm Name.
*/
/*
* Inception: 32 bits.
*/
/*
* Expire: 32 bits.
*/
/*
* Mode: 16 bits.
*/
/*
* Error: 16 bits.
*/
/*
* Key size: 16 bits.
*/
/*
* Key.
*/
/*
* Other size: 16 bits.
*/
/*
* Other data.
*/
}
static inline isc_result_t
/*
* Algorithm Name.
*/
/*
* Inception.
*/
/*
* Expire.
*/
/*
* Mode.
*/
/*
* Error.
*/
/*
* Key size.
*/
/*
* Key.
*/
goto cleanup;
/*
* Other size.
*/
/*
* Other.
*/
goto cleanup;
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
}
static inline void
return;
}
static inline isc_result_t
return (ISC_R_SUCCESS);
}
static inline isc_result_t
return (ISC_R_NOTIMPLEMENTED);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_result_t
}
#endif /* RDATA_GENERIC_TKEY_249_C */