1/***************************************************************************
2 *                                  _   _ ____  _
3 *  Project                     ___| | | |  _ \| |
4 *                             / __| | | | |_) | |
5 *                            | (__| |_| |  _ <| |___
6 *                             \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at http://curl.haxx.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 ***************************************************************************/
22
23#include "curl_setup.h"
24
25#ifdef HAVE_NETINET_IN_H
26#include <netinet/in.h>
27#endif
28#ifdef HAVE_NETDB_H
29#include <netdb.h>
30#endif
31#ifdef HAVE_ARPA_INET_H
32#include <arpa/inet.h>
33#endif
34#ifdef __VMS
35#include <in.h>
36#include <inet.h>
37#endif
38
39#ifdef HAVE_PROCESS_H
40#include <process.h>
41#endif
42
43#include "urldata.h"
44#include "sendf.h"
45#include "hostip.h"
46#include "hash.h"
47#include "share.h"
48#include "strerror.h"
49#include "url.h"
50
51#define _MPRINTF_REPLACE /* use our functions only */
52#include <curl/mprintf.h>
53
54#include "curl_memory.h"
55/* The last #include file should be: */
56#include "memdebug.h"
57
58/***********************************************************************
59 * Only for builds using synchronous name resolves
60 **********************************************************************/
61#ifdef CURLRES_SYNCH
62
63/*
64 * Function provided by the resolver backend to set DNS servers to use.
65 */
66CURLcode Curl_set_dns_servers(struct SessionHandle *data,
67                              char *servers)
68{
69  (void)data;
70  (void)servers;
71  return CURLE_NOT_BUILT_IN;
72
73}
74
75/*
76 * Function provided by the resolver backend to set
77 * outgoing interface to use for DNS requests
78 */
79CURLcode Curl_set_dns_interface(struct SessionHandle *data,
80                                const char *interf)
81{
82  (void)data;
83  (void)interf;
84  return CURLE_NOT_BUILT_IN;
85}
86
87/*
88 * Function provided by the resolver backend to set
89 * local IPv4 address to use as source address for DNS requests
90 */
91CURLcode Curl_set_dns_local_ip4(struct SessionHandle *data,
92                                const char *local_ip4)
93{
94  (void)data;
95  (void)local_ip4;
96  return CURLE_NOT_BUILT_IN;
97}
98
99/*
100 * Function provided by the resolver backend to set
101 * local IPv6 address to use as source address for DNS requests
102 */
103CURLcode Curl_set_dns_local_ip6(struct SessionHandle *data,
104                                const char *local_ip6)
105{
106  (void)data;
107  (void)local_ip6;
108  return CURLE_NOT_BUILT_IN;
109}
110
111#endif /* truly sync */
112