dlv_32769.c revision 77ab862dca0158f88a107e105f868ba0f157a7e8
/*
* Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
*
* 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 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.5 2007/02/26 23:46:54 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.
*/
if (c == DNS_DSDIGEST_SHA1)
else if (c == DNS_DSDIGEST_SHA256)
else
length = -1;
}
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.
*/
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;
}
}
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);
}
#endif /* RDATA_GENERIC_DLV_32769_C */