ssahani / rpms / dhcp

Forked from rpms/dhcp 6 years ago
Clone
3b727ca
--- dhcp-3.0.5/dst/dst_api.c.prototypes	2007-04-01 16:29:10.000000000 -0400
3b727ca
+++ dhcp-3.0.5/dst/dst_api.c	2007-04-01 16:29:10.000000000 -0400
3b727ca
@@ -58,6 +58,10 @@
3b727ca
 
3b727ca
 #include "dst_internal.h"
3b727ca
 
3b727ca
+/* prototypes */
3b727ca
+extern int b64_pton(char const *src, u_char *target, size_t targsize);
3b727ca
+extern int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
3b727ca
+
3b727ca
 /* static variables */
3b727ca
 static int done_init = 0;
3b727ca
 dst_func *dst_t_func[DST_MAX_ALGS];
3b727ca
--- dhcp-3.0.5/dst/dst_support.c.prototypes	2001-02-22 02:22:08.000000000 -0500
3b727ca
+++ dhcp-3.0.5/dst/dst_support.c	2007-04-01 16:29:10.000000000 -0400
3b727ca
@@ -32,6 +32,10 @@
3b727ca
 
3b727ca
 #include "dst_internal.h"
3b727ca
 
3b727ca
+/* prototypes */
3b727ca
+extern int b64_pton(char const *src, u_char *target, size_t targsize);
3b727ca
+extern int b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
3b727ca
+
3b727ca
 /*
3b727ca
  * dst_s_conv_bignum_u8_to_b64
3b727ca
  *	This function converts binary data stored as a u_char[] to a
3b727ca
--- dhcp-3.0.5/includes/minires/minires.h.prototypes	2004-06-10 13:59:37.000000000 -0400
3b727ca
+++ dhcp-3.0.5/includes/minires/minires.h	2007-04-01 16:29:10.000000000 -0400
3b727ca
@@ -65,7 +65,6 @@
3b727ca
 #define res_protocolname MRres_protocolname
3b727ca
 #define res_servicename MRres_servicename
3b727ca
 #define ns_datetosecs MRns_datetosecs
3b727ca
-#define b64_pton MRb64_pton
3b727ca
 #define res_ninit minires_ninit
3b727ca
 #define res_randomid MRres_randomid
3b727ca
 #define res_findzonecut MRres_findzonecut
3b727ca
--- dhcp-3.0.5/minires/res_mkupdate.c.prototypes	2007-04-01 16:29:10.000000000 -0400
3b727ca
+++ dhcp-3.0.5/minires/res_mkupdate.c	2007-04-01 16:30:12.000000000 -0400
3b727ca
@@ -49,6 +49,10 @@
3b727ca
 #include "minires/minires.h"
3b727ca
 #include "arpa/nameser.h"
3b727ca
 
3b727ca
+/* prototypes */
3b727ca
+extern int b64_pton(char const *src, u_char *target, size_t targsize);
3b727ca
+int dn_comp(const char *src, u_char *dst, unsigned dstsiz, u_char **dnptrs, u_char **lastdnptr);
3b727ca
+
3b727ca
 /* Options.  Leave them on. */
3b727ca
 #define DEBUG
3b727ca
 #define MAXPORT 1024
3b727ca
--- dhcp-3.0.5/minires/res_comp.c.prototypes	2004-06-10 13:59:42.000000000 -0400
3b727ca
+++ dhcp-3.0.5/minires/res_comp.c	2007-04-01 16:31:02.000000000 -0400
3b727ca
@@ -91,6 +91,11 @@
3b727ca
 #include "minires/minires.h"
3b727ca
 #include "arpa/nameser.h"
3b727ca
 
3b727ca
+/* prototypes */
3b727ca
+int ns_name_uncompress(const u_char *msg, const u_char *eom, const u_char *src, char *dst, size_t dstsiz);
3b727ca
+int ns_name_compress(const char *src, u_char *dst, size_t dstsiz, const u_char **dnptrs, const u_char **lastdnptr);
3b727ca
+int ns_name_skip(const u_char **ptrptr, const u_char *eom);
3b727ca
+
3b727ca
 /*
3b727ca
  * Expand compressed domain name 'comp_dn' to full domain name.
3b727ca
  * 'msg' is a pointer to the begining of the message,
3b727ca
--- dhcp-3.0.5/minires/res_init.c.prototypes	2004-06-10 13:59:43.000000000 -0400
3b727ca
+++ dhcp-3.0.5/minires/res_init.c	2007-04-01 16:31:38.000000000 -0400
3b727ca
@@ -102,6 +102,7 @@
3b727ca
 #define DEBUG
3b727ca
 
3b727ca
 static void res_setoptions (res_state, const char *, const char *);
3b727ca
+u_int res_randomid(void);
3b727ca
 
3b727ca
 #ifdef RESOLVSORT
3b727ca
 static const char sort_mask[] = "/&";