summaryrefslogtreecommitdiff
path: root/libinetutil/debian/patches/libinetutil-add-prototypes.patch
blob: 5c4d418f6227e98a63b298a6f2d7a808ce08fe68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Index: libinetutil/usr/src/lib/libinetutil/common/libinetutil.h
===================================================================
--- libinetutil.orig/usr/src/lib/libinetutil/common/libinetutil.h	2012-11-03 00:19:40.439398373 +0400
+++ libinetutil/usr/src/lib/libinetutil/common/libinetutil.h	2012-11-03 00:21:52.612889321 +0400
@@ -235,6 +235,24 @@
 		    void *);
 int		iu_eh_unregister_signal(iu_eh_t *, int, void **);
 
+/*
+ * Converts an octet string into an ASCII string. The string returned is
+ * NULL-terminated, and the length recorded in blen does *not* include the
+ * null terminator (in other words, octet_to_hexascii() returns the length a'la
+ * strlen()).
+ *
+ * Returns 0 for Success, errno otherwise.
+ */
+int
+octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen);
+
+/*
+ * Converts an ASCII string into an octet string.
+ *
+ * Returns 0 for success, errno otherwise.
+ */
+int
+hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen);
 
 #ifdef	__cplusplus
 }