… | |
… | |
33 | |
33 | |
34 | #ifndef UTIL_H__ |
34 | #ifndef UTIL_H__ |
35 | #define UTIL_H__ |
35 | #define UTIL_H__ |
36 | |
36 | |
37 | #include <cstring> |
37 | #include <cstring> |
|
|
38 | #include <sys/types.h> |
38 | |
39 | |
39 | #include <openssl/rsa.h> |
40 | #include <openssl/rsa.h> |
40 | |
41 | |
41 | #include "gettext.h" |
42 | #include "gettext.h" |
42 | |
43 | |
… | |
… | |
125 | }; |
126 | }; |
126 | |
127 | |
127 | typedef callback<const char * ()> run_script_cb; |
128 | typedef callback<const char * ()> run_script_cb; |
128 | |
129 | |
129 | // run a shell script (or actually an external program). |
130 | // run a shell script (or actually an external program). |
130 | bool run_script (const run_script_cb &cb, bool wait); |
131 | pid_t run_script (const run_script_cb &cb, bool wait); |
131 | |
132 | |
132 | #if ENABLE_HTTP_PROXY |
133 | #if ENABLE_HTTP_PROXY |
133 | u8 *base64_encode (const u8 *data, unsigned int len); |
134 | u8 *base64_encode (const u8 *data, unsigned int len); |
134 | #endif |
135 | #endif |
135 | |
136 | |