name_test.c revision 8afa9d1fcbf58f514e59a94f626e57d3f928f67d
7e4d75a5daeaaf8a7f559f9bd7fbf540184e235cMark Andrews * Copyright (C) 1998 Internet Software Consortium.
7e4d75a5daeaaf8a7f559f9bd7fbf540184e235cMark Andrews * Permission to use, copy, modify, and distribute this software for any
7e4d75a5daeaaf8a7f559f9bd7fbf540184e235cMark Andrews * purpose with or without fee is hereby granted, provided that the above
7e4d75a5daeaaf8a7f559f9bd7fbf540184e235cMark Andrews * copyright notice and this permission notice appear in all copies.
15a44745412679c30a6d022733925af70a38b715David Lawrence * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
15a44745412679c30a6d022733925af70a38b715David Lawrence * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15a44745412679c30a6d022733925af70a38b715David Lawrence * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
15a44745412679c30a6d022733925af70a38b715David Lawrence * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
15a44745412679c30a6d022733925af70a38b715David Lawrence * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15a44745412679c30a6d022733925af70a38b715David Lawrence * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
15a44745412679c30a6d022733925af70a38b715David Lawrence * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence char s[1000];
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence unsigned char b[255];
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence unsigned char o[255];
35c842e05dc6382ce1d9161a658d3ff4b2c3d4c9Bob Halley unsigned char c[255];
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews unsigned int tbytes;
ca81c3971cd0c9cfd830c0a18289d4d1b0f9de01David Lawrence "dns_name_fromtext() failed: %d\n",
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews "dns_name_fromtext() failed: %d\n",
1a03b5e68553c37e9cc0097368909dfc37fb8cefMark Andrews result = dns_name_fromtext(&name, &source, origin, downcase,
ca81c3971cd0c9cfd830c0a18289d4d1b0f9de01David Lawrence result = dns_name_totext(&name, 0, &ttarget, &tbytes);
7d2b275f7e9238e2c709737601f6260b5a9a4ee1Mark Andrews else if (i > 0)