summaryrefslogtreecommitdiffabout
path: root/include/opkele/util.h
Unidiff
Diffstat (limited to 'include/opkele/util.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/opkele/util.h b/include/opkele/util.h
index 5372498..80d8b03 100644
--- a/include/opkele/util.h
+++ b/include/opkele/util.h
@@ -4,4 +4,5 @@
4#include <time.h> 4#include <time.h>
5#include <string> 5#include <string>
6#include <vector>
6#include <openssl/bn.h> 7#include <openssl/bn.h>
7#include <openssl/dh.h> 8#include <openssl/dh.h>
@@ -9,4 +10,5 @@
9namespace opkele { 10namespace opkele {
10 using std::string; 11 using std::string;
12 using std::vector;
11 13
12 namespace util { 14 namespace util {
@@ -53,4 +55,7 @@ namespace opkele {
53 string long_to_string(long l); 55 string long_to_string(long l);
54 long string_to_long(const string& s); 56 long string_to_long(const string& s);
57
58 string encode_base64(const void *data,size_t length);
59 void decode_base64(const string& data,vector<unsigned char>& rv);
55 } 60 }
56 61