From 5a8a12d7a2c69610cd7a9a00ed1b3579b750a914 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 16 11月 2019 21:39:10 +0800 Subject: [PATCH] issue #42 #38 \n review build system, \n issue #38 added clang format --- 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