00001 /* 00002 * Copyright (c) 2004,2007-2009 by Internet Systems Consortium, Inc. ("ISC") 00003 * Copyright (c) 2001-2003 by Internet Software Consortium 00004 * 00005 * Permission to use, copy, modify, and distribute this software for any 00006 * purpose with or without fee is hereby granted, provided that the above 00007 * copyright notice and this permission notice appear in all copies. 00008 * 00009 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 00010 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 00011 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 00012 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00013 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00014 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 00015 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00016 * 00017 * Internet Systems Consortium, Inc. 00018 * 950 Charter Street 00019 * Redwood City, CA 94063 00020 * <info@isc.org> 00021 * http://www.isc.org/ 00022 */ 00023 #ifndef MINIRES_H 00024 #define MINIRES_H 00025 00026 #include "cdefs.h" 00027 #include "osdep.h" 00028 00029 /* 00030 * Based on the Dynamic DNS reference implementation by Viraj Bais 00031 * <viraj_bais@ccm.fm.intel.com> 00032 */ 00033 00034 int MRns_name_compress(const char *, u_char *, size_t, const unsigned char **, 00035 const unsigned char **); 00036 int MRns_name_unpack(const unsigned char *, const unsigned char *, 00037 const unsigned char *, unsigned char *, size_t); 00038 int MRns_name_pack (const unsigned char *, unsigned char *, 00039 unsigned, const unsigned char **, const unsigned char **); 00040 int MRns_name_ntop(const unsigned char *, char *, size_t); 00041 int MRns_name_pton(const char *, u_char *, size_t); 00042 00043 #endif /* MINIRES_H */