summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/util.h
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-06-27 00:10:36 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-06-27 00:10:36 +0000
commit6e73a06413782ebbf1d52eaa29fb91216d021ea7 (patch)
tree82149c7d7457ffdccc58ac1be060b4feb8b1a876 /sbin/isakmpd/util.h
parent3578a3943eebdc76625d4938290d386dd5b37c8f (diff)
A few more functions to help with IPv6 support. By Niklas and me.
Diffstat (limited to 'sbin/isakmpd/util.h')
-rw-r--r--sbin/isakmpd/util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/isakmpd/util.h b/sbin/isakmpd/util.h
index 41f4e4307e8..84b25d084f0 100644
--- a/sbin/isakmpd/util.h
+++ b/sbin/isakmpd/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.7 2000/11/23 12:56:15 niklas Exp $ */
+/* $OpenBSD: util.h,v 1.8 2001/06/27 00:10:35 ho Exp $ */
/* $EOM: util.h,v 1.10 2000/10/24 13:33:39 niklas Exp $ */
/*
@@ -41,6 +41,7 @@
#define ROUNDUP_32(x) (((x) + 3) & ~4)
+extern int allow_name_lookups;
extern int regrand;
struct message;
@@ -59,6 +60,10 @@ extern void encode_128 (u_int8_t *, u_int8_t *);
#endif
extern u_int8_t *getrandom (u_int8_t *, size_t);
extern int hex2raw (char *, u_int8_t *, size_t);
+extern int sockaddr2text (struct sockaddr *, char **);
+extern int text2sockaddr (char *, char *, struct sockaddr **);
+extern int sockaddr_len (struct sockaddr *);
+extern u_int8_t *sockaddr_data (struct sockaddr *);
extern int zero_test (const u_int8_t *, size_t);
extern int check_file_secrecy (char *, off_t *);