aboutsummaryrefslogtreecommitdiff
path: root/lib/doh.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/doh.h')
-rw-r--r--lib/doh.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/doh.h b/lib/doh.h
index f522d3308..83c79bc5d 100644
--- a/lib/doh.h
+++ b/lib/doh.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2018 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -25,8 +25,6 @@
#include "urldata.h"
#include "curl_addrinfo.h"
-#ifndef CURL_DISABLE_DOH
-
/*
* Curl_doh() resolve a name using DoH (DNS-over-HTTPS). It resolves a name
* and returns a 'Curl_addrinfo *' with the address information.
@@ -40,7 +38,8 @@ Curl_addrinfo *Curl_doh(struct connectdata *conn,
CURLcode Curl_doh_is_resolved(struct connectdata *conn,
struct Curl_dns_entry **dns);
-int Curl_doh_getsock(struct connectdata *conn, curl_socket_t *socks);
+int Curl_doh_getsock(struct connectdata *conn, curl_socket_t *socks,
+ int numsocks);
typedef enum {
DOH_OK,
@@ -103,10 +102,4 @@ DOHcode doh_decode(unsigned char *doh,
struct dohentry *d);
void de_cleanup(struct dohentry *d);
#endif
-
-#else /* if DOH is disabled */
-#define Curl_doh(a,b,c,d) NULL
-#define Curl_doh_is_resolved(x,y) CURLE_COULDNT_RESOLVE_HOST
-#endif
-
#endif /* HEADER_CURL_DOH_H */