dlv_32769.c revision 0e27506ce3135f9bd49e12564ad0e15256135118
/*
* Copyright (C) 2004, 2006, 2007, 2009-2011 Internet Systems Consortium, Inc. ("ISC")
*
* 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: dlv_32769.c,v 1.12 2011/03/05 23:52:31 tbox Exp $ */
#ifndef RDATA_GENERIC_DLV_32769_C
#define RDATA_GENERIC_DLV_32769_C
#define RRTYPE_DLV_ATTRIBUTES 0
static inline isc_result_t
unsigned char c;
int length;
/*
* Key tag.
*/
ISC_FALSE));
/*
* Algorithm.
*/
ISC_FALSE));
/*
* Digest type.
*/
ISC_FALSE));
/*
* Digest.
*/
switch (c) {
case DNS_DSDIGEST_SHA1:
break;
case DNS_DSDIGEST_SHA256:
break;
case DNS_DSDIGEST_GOST:
break;
default:
length = -1;
break;
}
}
static inline isc_result_t
char buf[sizeof("64000 ")];
unsigned int n;
/*
* Key tag.
*/
n = uint16_fromregion(&sr);
/*
* Algorithm.
*/
n = uint8_fromregion(&sr);
/*
* Digest type.
*/
n = uint8_fromregion(&sr);
/*
* Digest.
*/
else
return (ISC_R_SUCCESS);
}
static inline isc_result_t
/*
* Check digest lengths if we know them.
*/
return (ISC_R_UNEXPECTEDEND);
/*
* Only copy digest lengths if we know them.
* If there is extra data dns_rdata_fromwire() will
* detect that.
*/
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
switch (dlv->digest_type) {
case DNS_DSDIGEST_SHA1:
break;
case DNS_DSDIGEST_SHA256:
break;
case DNS_DSDIGEST_GOST:
break;
}
}
static inline isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
static inline void
return;
}
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_DLV_32769_C */