tkey_249.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 1999-2004, 2007, 2009, 2011, 2012, 2014-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: 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 */