From a5935a3a5f398ddaecb94489d33abbedf2f0fa49 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周二, 12 11月 2019 10:24:46 +0800 Subject: [PATCH] fix submodules --- src/library/os/os.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/library/os/os.c b/src/library/os/os.c index a9947b0..802a46d 100644 --- a/src/library/os/os.c +++ b/src/library/os/os.c @@ -1,9 +1,9 @@ #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> @@ -19,7 +19,7 @@ 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)); @@ -84,7 +84,7 @@ #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); -- Gitblit v1.9.1