From ea4e1136dd8b8d7830f770b4dff92f4946a998dd Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 4 Oct 2013 12:24:21 -0400 Subject: Flesh out membership certificate with signature, better serialize/deserialize, and rename parameter to qualifier to make better conceptual sense. --- node/Utils.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'node/Utils.hpp') diff --git a/node/Utils.hpp b/node/Utils.hpp index 09e81ee6..8e9ab8d3 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -148,6 +148,16 @@ public: static unsigned int unhex(const char *hex,void *buf,unsigned int len); 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 -- cgit v1.2.3