mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Include common.h to resolve MSVC build issue
This commit is contained in:
@@ -333,7 +333,7 @@ std::string NetworkKey::PublicKeyHash()
|
||||
return digest_out;
|
||||
}
|
||||
|
||||
bool NetworkKey::Sign(const uint8_t *md, const size_t len, char ** signature, size_t * out_size)
|
||||
bool NetworkKey::Sign(const uint8 * md, const size_t len, char ** signature, size_t * out_size)
|
||||
{
|
||||
EVP_MD_CTX * mdctx = nullptr;
|
||||
|
||||
@@ -393,7 +393,7 @@ bool NetworkKey::Sign(const uint8_t *md, const size_t len, char ** signature, si
|
||||
return true;
|
||||
}
|
||||
|
||||
bool NetworkKey::Verify(const uint8_t * md, const size_t len, const char * sig, const size_t siglen)
|
||||
bool NetworkKey::Verify(const uint8 * md, const size_t len, const char * sig, const size_t siglen)
|
||||
{
|
||||
EVP_MD_CTX * mdctx = NULL;
|
||||
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
#ifndef DISABLE_NETWORK
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
#include <SDL_rwops.h>
|
||||
#include <string>
|
||||
|
||||
@@ -38,8 +40,8 @@ public:
|
||||
std::string PublicKeyString();
|
||||
std::string PublicKeyHash();
|
||||
void Unload();
|
||||
bool Sign(const uint8_t * md, const size_t len, char ** signature, size_t * out_size);
|
||||
bool Verify(const uint8_t *md, const size_t len, const char * sig, const size_t siglen);
|
||||
bool Sign(const uint8 * md, const size_t len, char ** signature, size_t * out_size);
|
||||
bool Verify(const uint8 * md, const size_t len, const char * sig, const size_t siglen);
|
||||
private:
|
||||
NetworkKey ( const NetworkKey & ) = delete;
|
||||
EVP_PKEY_CTX * m_ctx = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user