summaryrefslogtreecommitdiffstats
path: root/libc/include/resolv.h
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-07-02 17:44:00 +0900
committerElliott Hughes <enh@google.com>2013-07-02 15:57:57 -0700
commitb8e435c1d5593422349534c1cb356d11273ba1db (patch)
tree020b2f1b87d3b502dc54ac9d7f5f9f00508a356a /libc/include/resolv.h
parentfeec97a7c7fbd032174fb4870a02422c2acd891a (diff)
downloadbionic-b8e435c1d5593422349534c1cb356d11273ba1db.zip
bionic-b8e435c1d5593422349534c1cb356d11273ba1db.tar.gz
bionic-b8e435c1d5593422349534c1cb356d11273ba1db.tar.bz2
Expose dn_comp and dn_expand to system C code.
This is needed to compile open-source code that wants to expand/compress domain names itself, such as ping6. Bug: 9469682 Change-Id: I339c6538936d05c031bc6fb0a8793aaf1429dea4
Diffstat (limited to 'libc/include/resolv.h')
-rw-r--r--libc/include/resolv.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/libc/include/resolv.h b/libc/include/resolv.h
index 7c34012..36b93ee 100644
--- a/libc/include/resolv.h
+++ b/libc/include/resolv.h
@@ -43,12 +43,14 @@ struct res_state;
extern struct __res_state *__res_state(void);
#define _res (*__res_state())
-/* Base-64 functions - because some code expects it there */
-
-#define b64_ntop __b64_ntop
-#define b64_pton __b64_pton
-extern int b64_ntop(u_char const *, size_t, char *, size_t);
-extern int b64_pton(char const *, u_char *, size_t);
+#define b64_ntop __b64_ntop
+#define b64_pton __b64_pton
+extern int b64_ntop(u_char const*, size_t, char*, size_t);
+extern int b64_pton(char const*, u_char*, size_t);
+
+#define dn_comp __dn_comp
+extern int dn_comp(const char*, u_char*, int, u_char**, u_char**);
+extern int dn_expand(const u_char*, const u_char*, const u_char*, char*, int);
__END_DECLS