diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llmessage/llblowfishcipher.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llmessage/llblowfishcipher.cpp')
-rw-r--r-- | linden/indra/llmessage/llblowfishcipher.cpp | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/linden/indra/llmessage/llblowfishcipher.cpp b/linden/indra/llmessage/llblowfishcipher.cpp index 45ff045..a0fe157 100644 --- a/linden/indra/llmessage/llblowfishcipher.cpp +++ b/linden/indra/llmessage/llblowfishcipher.cpp | |||
@@ -30,8 +30,8 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include "linden_common.h" | 32 | #include "linden_common.h" |
33 | |||
34 | #include "llblowfishcipher.h" | 33 | #include "llblowfishcipher.h" |
34 | #include <openssl/evp.h> | ||
35 | 35 | ||
36 | 36 | ||
37 | LLBlowfishCipher::LLBlowfishCipher(const U8* secret, size_t secret_size) | 37 | LLBlowfishCipher::LLBlowfishCipher(const U8* secret, size_t secret_size) |
@@ -50,11 +50,6 @@ LLBlowfishCipher::~LLBlowfishCipher() | |||
50 | mSecret = NULL; | 50 | mSecret = NULL; |
51 | } | 51 | } |
52 | 52 | ||
53 | |||
54 | #if LL_LINUX | ||
55 | |||
56 | #include <openssl/evp.h> | ||
57 | |||
58 | // virtual | 53 | // virtual |
59 | U32 LLBlowfishCipher::encrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) | 54 | U32 LLBlowfishCipher::encrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) |
60 | { | 55 | { |
@@ -133,29 +128,3 @@ U32 LLBlowfishCipher::requiredEncryptionSpace(U32 len) const | |||
133 | len -= (len % BLOCK_SIZE); | 128 | len -= (len % BLOCK_SIZE); |
134 | return len; | 129 | return len; |
135 | } | 130 | } |
136 | |||
137 | #else // !LL_LINUX | ||
138 | |||
139 | // virtual | ||
140 | U32 LLBlowfishCipher::encrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) | ||
141 | { | ||
142 | llerrs << "LLBlowfishCipher only supported on Linux" << llendl; | ||
143 | return 0; | ||
144 | } | ||
145 | |||
146 | // virtual | ||
147 | U32 LLBlowfishCipher::decrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) | ||
148 | { | ||
149 | llerrs << "LLBlowfishCipher only supported on Linux" << llendl; | ||
150 | return 0; | ||
151 | } | ||
152 | |||
153 | // virtual | ||
154 | U32 LLBlowfishCipher::requiredEncryptionSpace(U32 len) const | ||
155 | { | ||
156 | llerrs << "LLBlowfishCipher only supported on Linux" << llendl; | ||
157 | return 0; | ||
158 | } | ||
159 | |||
160 | #endif | ||
161 | |||