| | |
| | | #include "os.h" |
| | | #include "../base/logger.h" |
| | | #include "public-key.h" |
| | | #include <public_key.h> |
| | | #include <stdio.h> |
| | | |
| | | #ifndef _MSC_VER |
| | | #ifdef __linux__ |
| | | |
| | | #include <openssl/pem.h> |
| | | |
| | |
| | | FUNCTION_RETURN verifySignature(const char* stringToVerify, |
| | | const char* signatureB64) { |
| | | EVP_MD_CTX *mdctx = NULL; |
| | | const char *pubKey = PUBLIC_KEY; |
| | | const char pubKey[] = PUBLIC_KEY; |
| | | int func_ret = 0; |
| | | |
| | | BIO* bio = BIO_new_mem_buf((void*) (pubKey), strlen(pubKey)); |
| | |
| | | #else |
| | | |
| | | #include <iphlpapi.h> |
| | | #include <Windows.h> |
| | | #include <windows.h> |
| | | #pragma comment(lib, "IPHLPAPI.lib") |
| | | |
| | | unsigned char* unbase64(const char* ascii, int len, int *flen); |