| | |
| | | * os-dependent.hpp |
| | | * |
| | | * Created on: Mar 29, 2014 |
| | | * |
| | | * |
| | | */ |
| | | |
| | | #ifndef OS_DEPENDENT_HPP_ |
| | |
| | | #include <string.h> |
| | | #include <ctype.h> |
| | | #include <sys/types.h> |
| | | #include <unistd.h> |
| | | //definition of size_t |
| | | #include <stdlib.h> |
| | | #ifdef __unix__ |
| | | #include <unistd.h> |
| | | #include <stdbool.h> |
| | | #endif |
| | | |
| | | typedef enum { |
| | | NONE, VMWARE |
| | | NONE, CONTAINER, VM |
| | | } VIRTUALIZATION; |
| | | |
| | | typedef enum { |
| | |
| | | VIRTUALIZATION getVirtualization(); |
| | | void os_initialize(); |
| | | |
| | | FUNCTION_RETURN verifySignature(const char* stringToVerify, const char* signatureB64); |
| | | // FUNCTION_RETURN verifySignature(const char* stringToVerify, const char* signatureB64); |
| | | |
| | | #ifdef _WIN32 |
| | | #define SETENV(VAR,VAL) _putenv_s(VAR, VAL); |
| | | #define UNSETENV(P) _putenv_s(P, ""); |
| | | #else |
| | | #define SETENV(VAR,VAL) setenv(VAR, VAL, 1); |
| | | #define UNSETENV(P) unsetenv(P); |
| | | #endif |
| | | |
| | | #ifdef __cplusplus |
| | | } |