diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-01-11 13:49:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-01-11 13:49:13 +0000 |
commit | 8362245c42883bf5775d87d2d996b89b6f2f2fed (patch) | |
tree | f1c521d433f43de18eb8614b0e7180ae9c68cf95 /ares_private.h | |
parent | bcb85d35df7e1f9144f6256d6ec5f61a93dcc86d (diff) | |
download | c-ares-8362245c42883bf5775d87d2d996b89b6f2f2fed.tar.gz c-ares-8362245c42883bf5775d87d2d996b89b6f2f2fed.tar.bz2 c-ares-8362245c42883bf5775d87d2d996b89b6f2f2fed.zip |
- 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_private.h')
-rw-r--r-- | ares_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ares_private.h b/ares_private.h index 137e155..f8afd4d 100644 --- a/ares_private.h +++ b/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 |