ds.c revision 0b09763c354ec91fb352b6b4cea383bd0195b2d8
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * Copyright (C) 1999-2001 Internet Software Consortium.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * Permission to use, copy, modify, and distribute this software for any
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * purpose with or without fee is hereby granted, provided that the above
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * copyright notice and this permission notice appear in all copies.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* $Id: ds.c,v 1.2 2002/06/17 04:01:18 marka Exp $ */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsdns_ds_buildrdata(dns_name_t *owner, dns_rdata_t *key,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews unsigned int digest_type, unsigned char *buffer,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews isc_buffer_init(&b, buffer, DNS_DS_BUFFERSIZE);
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ds.key_tag = dst_region_computeid(&r, ds.algorithm);