tkey_249.c revision 652c80435a97ca558a47e2f320047b73b3626cd1
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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: tkey_249.c,v 1.32 2000/05/13 22:46:07 tale Exp $ */
/*
* 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.
*/
/*
* Inception.
*/
/*
* Expiration.
*/
/*
* Mode.
*/
return (DNS_R_RANGE);
/*
* Error.
*/
!= ISC_R_SUCCESS) {
if (*e != 0)
return (DNS_R_UNKNOWN);
if (i < 0 || i > 0xffff)
return (DNS_R_RANGE);
rcode = (dns_rcode_t)i;
}
/*
* Key Size.
*/
return (DNS_R_RANGE);
/*
* Key Data.
*/
/*
* Other Size.
*/
return (DNS_R_RANGE);
/*
* 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
isc_region_consume(&sr, n);
/*
* Other Size.
*/
n = uint16_fromregion(&sr);
/*
* Other Data.
*/
if (n != 0) {
}
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.
*/
return (ISC_R_NOSPACE);
}
/*
* Other size: 16 bits.
*/
/*
* Other data.
*/
return (ISC_R_NOSPACE);
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
/*
* Algorithm Name.
*/
/*
* Inception.
*/
/*
* Expire.
*/
/*
* Mode.
*/
/*
* Error.
*/
/*
* Key size.
*/
/*
* Key.
*/
goto cleanup;
} else
/*
* Other size.
*/
/*
* Other.
*/
goto cleanup;
} else
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
}
static inline void
freestruct_tkey(void *source) {
return;
}
static inline isc_result_t
void *arg)
{
return (ISC_R_SUCCESS);
}
static inline isc_result_t
{
return (ISC_R_NOTIMPLEMENTED);
}
#endif /* RDATA_GENERIC_TKEY_249_C */