aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_private.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-01-11 13:49:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-01-11 13:49:13 +0000
commit32b75d1b6995653a4f1131aaa7e4c23b9946047e (patch)
treefb92246b61bbaf1158d0da993bfc9642883c6c09 /ares/ares_private.h
parentf7e3bd28b4347cd111f2a77be4543c44664ac8f5 (diff)
- Phil Blundell added the internal function ares__expand_name_for_response()
that is now used by the ares_parse_*_reply() functions instead of the ares_expand_name() simply to easier return ARES_EBADRESP for the cases where the name expansion fails as in responses that really isn't expected.
Diffstat (limited to 'ares/ares_private.h')
-rw-r--r--ares/ares_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ares/ares_private.h b/ares/ares_private.h
index 137e155de..f8afd4de1 100644
--- a/ares/ares_private.h
+++ b/ares/ares_private.h
@@ -319,6 +319,9 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize);
void ares__free_query(struct query *query);
unsigned short ares__generate_new_id(rc4_key* key);
struct timeval ares__tvnow(void);
+int ares__expand_name_for_response(const unsigned char *encoded,
+ const unsigned char *abuf, int alen,
+ char **s, long *enclen);
#if 0 /* Not used */
long ares__tvdiff(struct timeval t1, struct timeval t2);
#endif