summaryrefslogtreecommitdiff
path: root/node/Utils.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-04 12:24:21 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-04 12:24:21 -0400
commitea4e1136dd8b8d7830f770b4dff92f4946a998dd (patch)
treeb965512eaf04205a5b209b7ff160d5650d1ccd31 /node/Utils.hpp
parentca6c0fad081b48a7316e412675aa8bd30d9a0540 (diff)
downloadinfinitytier-ea4e1136dd8b8d7830f770b4dff92f4946a998dd.tar.gz
infinitytier-ea4e1136dd8b8d7830f770b4dff92f4946a998dd.zip
Flesh out membership certificate with signature, better serialize/deserialize, and rename parameter to qualifier to make better conceptual sense.
Diffstat (limited to 'node/Utils.hpp')
-rw-r--r--node/Utils.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/node/Utils.hpp b/node/Utils.hpp
index 09e81ee6..8e9ab8d3 100644
--- a/node/Utils.hpp
+++ b/node/Utils.hpp
@@ -149,6 +149,16 @@ public:
static inline unsigned int unhex(const std::string &hex,void *buf,unsigned int len) { return unhex(hex.c_str(),buf,len); }
/**
+ * @param hex Hexadecimal ASCII
+ * @param hexlen Length of hex ASCII
+ * @param buf Buffer to fill
+ * @param len Length of buffer
+ * @return Number of bytes actually written to buffer
+ */
+ static unsigned int unhex(const char *hex,unsigned int hexlen,void *buf,unsigned int len)
+ throw();
+
+ /**
* @param buf Buffer to fill
* @param bytes Number of random bytes to generate
*/