tkey_249.c revision 85bdc128fcda11c89ec1d76ea4221f4fa8e4fc24
/*
* Copyright (C) 1999-2001 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.47 2001/06/21 04:00:39 marka 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.
*/
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
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.
*/
/*
* 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);
}
#endif /* RDATA_GENERIC_TKEY_249_C */