aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/ARC4.h
diff options
context:
space:
mode:
authorWarlockbugs <Warlockbugs@users.noreply.github.com>2018-03-04 17:26:08 +0300
committerShauren <shauren.trinity@gmail.com>2018-03-04 15:26:08 +0100
commit87bd1126ff3a6e8ba83fc01985d20e3436d926be (patch)
treeb19d78acf6407b0afc4151a5e871d1370a1b5f5b /src/common/Cryptography/ARC4.h
parent7e643662fda63c92f32cf78323acdbd08732ccea (diff)
Core/Crypto: Transitional Cryptography update for OpenSSL 1.1 (#21534)
Support for both OpenSSL 1.0 LTS and OpenSSL 1.1 versions. Many Linux distributions are still on 1.0 and will stay on LTS for quite some time. Port of CMaNGOS commit: https://github.com/cmangos/mangos-wotlk/commit/e1b0048f052eda46bb27d20224d0339960816ac2
Diffstat (limited to 'src/common/Cryptography/ARC4.h')
-rw-r--r--src/common/Cryptography/ARC4.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/Cryptography/ARC4.h b/src/common/Cryptography/ARC4.h
index 4f7fba1f31d..629be510bbc 100644
--- a/src/common/Cryptography/ARC4.h
+++ b/src/common/Cryptography/ARC4.h
@@ -19,19 +19,19 @@
#ifndef _AUTH_SARC4_H
#define _AUTH_SARC4_H
-#include <openssl/evp.h>
#include "Define.h"
+#include <openssl/evp.h>
class TC_COMMON_API ARC4
{
public:
ARC4(uint32 len);
- ARC4(uint8 *seed, uint32 len);
+ ARC4(uint8* seed, uint32 len);
~ARC4();
- void Init(uint8 *seed);
- void UpdateData(int len, uint8 *data);
+ void Init(uint8* seed);
+ void UpdateData(int len, uint8* data);
private:
- EVP_CIPHER_CTX m_ctx;
+ EVP_CIPHER_CTX* m_ctx;
};
#endif