| | |
| | | #include <sys/stat.h> |
| | | #include "os.h" |
| | | #include "../base/logger.h" |
| | | |
| | | //#include <openssl/evp.h> |
| | | //#include <openssl/bio.h> |
| | | #include <openssl/pem.h> |
| | | #include <openssl/err.h> |
| | | |
| | | #include <mntent.h> |
| | | #include <dirent.h> |
| | | |
| | | #include <sys/utsname.h> |
| | | #ifdef _DEBUG |
| | | #include <valgrind/memcheck.h> |
| | | #endif |
| | | |
| | | #ifdef USE_DBUS |
| | | #include <dbus-1.0/dbus/dbus.h> |
| | | #endif |
| | |
| | | } |
| | | |
| | | void os_initialize() { |
| | | static int initialized = 0; |
| | | if (initialized == 0) { |
| | | initialized = 1; |
| | | ERR_load_ERR_strings(); |
| | | ERR_load_crypto_strings(); |
| | | OpenSSL_add_all_algorithms(); |
| | | } |
| | | |
| | | } |
| | | |
| | | static void _getCpuid(unsigned int *p, unsigned int ax) { |