Skip to content

Commit 7a5a194

Browse files
Kaffeinenitrocaster
authored andcommitted
xrCore/crypto: CRYPTO_API -> XRCORE_API.
1 parent c747a72 commit 7a5a194

File tree

9 files changed

+7
-23
lines changed

9 files changed

+7
-23
lines changed

src/xrCore/Crypto/crypto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static void unsafe_xr_free(void* ptr)
1515

1616
static unsigned char rnd_seed[] = "S.T.A.L.K.E.R. 4ever Rulezz !!!";
1717

18-
CRYPTO_API void xr_crypto_init ()
18+
XRCORE_API void xr_crypto_init ()
1919
{
2020
string256 random_string;
2121
xr_sprintf (random_string, "%I64d_%s", CPU::QPC(), rnd_seed);

src/xrCore/Crypto/crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace crypto
99
{
1010

11-
CRYPTO_API void xr_crypto_init ();
11+
XRCORE_API void xr_crypto_init ();
1212

1313
} //namespace crypto
1414

src/xrCore/Crypto/crypto_api_def.h

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/xrCore/Crypto/xr_dsa.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#ifndef XR_DSA_INCLUDED
22
#define XR_DSA_INCLUDED
33

4-
#include "crypto_api_def.h"
54
#include "xrCore/xrCore.h"
65

76
struct dsa_st;
87

98
namespace crypto
109
{
1110

12-
class CRYPTO_API xr_dsa
11+
class XRCORE_API xr_dsa
1312
{
1413
public:
1514
static int const key_bit_length = 1024;

src/xrCore/Crypto/xr_dsa_signer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
typedef fastdelegate::FastDelegate1< long > sha_process_yielder;
77

8-
class CRYPTO_API xr_dsa_signer
8+
class XRCORE_API xr_dsa_signer
99
{
1010
public:
1111
xr_dsa_signer (u8 const p_number[crypto::xr_dsa::public_key_length],
@@ -28,6 +28,6 @@ class CRYPTO_API xr_dsa_signer
2828

2929
}; //xr_dsa_signer
3030

31-
CRYPTO_API char const * current_time(string64 & dest_time);
31+
XRCORE_API char const * current_time(string64 & dest_time);
3232

3333
#endif //#ifndef XR_DSA_SIGNER_INCLUDED

src/xrCore/Crypto/xr_dsa_verifyer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "crypto.h"
55

6-
class CRYPTO_API xr_dsa_verifyer
6+
class XRCORE_API xr_dsa_verifyer
77
{
88
public:
99
xr_dsa_verifyer (u8 const p_number[crypto::xr_dsa::public_key_length],

src/xrCore/Crypto/xr_sha.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#ifndef XR_SHA_INCLUDED
22
#define XR_SHA_INCLUDED
33

4-
#include "crypto_api_def.h"
54
#include "xrCore/xrCore.h"
65

76
struct SHAstate_st;
87

98
namespace crypto
109
{
1110

12-
class CRYPTO_API xr_sha256
11+
class XRCORE_API xr_sha256
1312
{
1413
public:
1514
static u32 const digest_length = 20; //SHA_DIGEST_LENGTH

src/xrCore/xrCore.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@
442442
<ClInclude Include="Containers\AssociativeVectorComparer.hpp" />
443443
<ClInclude Include="cpuid.h" />
444444
<ClInclude Include="Crypto\crypto.h" />
445-
<ClInclude Include="Crypto\crypto_api_def.h" />
446445
<ClInclude Include="Crypto\xr_dsa.h" />
447446
<ClInclude Include="Crypto\xr_dsa_signer.h" />
448447
<ClInclude Include="Crypto\xr_dsa_verifyer.h" />

src/xrCore/xrCore.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,6 @@
800800
<ClInclude Include="Crypto\crypto.h">
801801
<Filter>Crypto</Filter>
802802
</ClInclude>
803-
<ClInclude Include="Crypto\crypto_api_def.h">
804-
<Filter>Crypto</Filter>
805-
</ClInclude>
806803
<ClInclude Include="Crypto\xr_dsa.h">
807804
<Filter>Crypto</Filter>
808805
</ClInclude>

0 commit comments

Comments
 (0)