2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright 2004, 2009 by the Massachusetts Institute of Technology. 2N/A * All Rights Reserved. 2N/A * Export of this software from the United States of America may 2N/A * require a specific license from the United States Government. 2N/A * It is the responsibility of any person or organization contemplating 2N/A * export to obtain such a license before exporting. 2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 2N/A * distribute this software and its documentation for any purpose and 2N/A * without fee is hereby granted, provided that the above copyright 2N/A * notice appear in all copies and that both that copyright notice and 2N/A * this permission notice appear in supporting documentation, and that 2N/A * the name of M.I.T. not be used in advertising or publicity pertaining 2N/A * to distribution of the software without specific, written prior 2N/A * permission. Furthermore if you modify this software you must label 2N/A * your software as modified software and not distribute it in such a 2N/A * fashion that it might be confused with the original M.I.T. software. 2N/A * M.I.T. makes no representations about the suitability of 2N/A * this software for any purpose. It is provided "as is" without express 2N/A * or implied warranty. 2N/A * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * Only use res_ninit() if there's also a res_ndestroy(), to avoid 2N/A * memory leaks (Linux & Solaris) and outright corruption (AIX 4.x, 2N/A * 5.x). While we're at it, make sure res_nsearch() is there too. 2N/A * In any case, it is probable that platforms having broken 2N/A * res_ninit() will have thread safety hacks for res_init() and _res. 2N/A * krb5int_dns_init() 2N/A * Initialize an opaque handle. Do name lookup and initial parsing of 2N/A * reply, skipping question section. Prepare to iterate over answer 2N/A * section. Returns -1 on error, 0 on success. 2N/A * krb5int_dns_nextans - get next matching answer record 2N/A * Sets pp to NULL if no more records. Returns -1 on error, 0 on 2N/A * krb5int_dns_expand - wrapper for dn_expand() 2N/A * Compat routines for BIND 4 2N/A * Skip header and question section of reply. Set a pointer to the 2N/A * beginning of the answer section, and prepare to iterate over 2N/A * Skip query records. 2N/A * krb5int_dns_nextans() - get next answer record 2N/A * Sets pp to NULL if no more records. 2N/A /* Also skip 4 bytes of TTL */ 2N/A/* Solaris Kerberos - resync */ 2N/A * Try to look up a TXT record pointing to a Kerberos realm 2N/A * Form our query, and send it via DNS 2N/A /* Realm names don't (normally) end with ".", but if the query 2N/A doesn't end with "." and doesn't get an answer as is, the 2N/A resolv code will try appending the local domain. Since the 2N/A realm names are absolutes, let's stop that. 2N/A But only if a name has been specified. If we are performing 2N/A a search on the prefix alone then the intention is to allow 2N/A the local domain or domain search lists to be expanded. 2N/A /* Avoid a common error. */ 2N/A#
endif /* KRB5_DNS_LOOKUP */