mirror of https://github.com/aria2/aria2
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL installed * src/ARC4Encryptor.h * src/ARC4Decryptor.hpull/1/head
parent
5f56e52498
commit
0516a07fa6
|
@ -1,3 +1,10 @@
|
|||
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
|
||||
installed
|
||||
* src/ARC4Encryptor.h
|
||||
* src/ARC4Decryptor.h
|
||||
|
||||
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Renamed argument from 'errno' to 'err', since errno is confused with
|
||||
|
|
|
@ -40,6 +40,26 @@
|
|||
# include "LibgcryptARC4Decryptor.h"
|
||||
#elif HAVE_LIBSSL
|
||||
# include "LibsslARC4Decryptor.h"
|
||||
#endif // HAVE_LIBSSL
|
||||
#else
|
||||
|
||||
// provide empty implementation to compile sources without both libgcrypt and
|
||||
// openssl installed
|
||||
namespace aria2 {
|
||||
|
||||
class ARC4Decryptor {
|
||||
public:
|
||||
ARC4Decryptor() {}
|
||||
|
||||
~ARC4Decryptor() {}
|
||||
|
||||
void init(const unsigned char* key, size_t keyLength) {}
|
||||
|
||||
void decrypt(unsigned char* out, size_t outLength,
|
||||
const unsigned char* in, size_t inLength) {}
|
||||
};
|
||||
|
||||
} // namespace aria2
|
||||
|
||||
#endif
|
||||
|
||||
#endif // _D_ARC4_DECRYPTOR_H_
|
||||
|
|
|
@ -40,6 +40,26 @@
|
|||
# include "LibgcryptARC4Encryptor.h"
|
||||
#elif HAVE_LIBSSL
|
||||
# include "LibsslARC4Encryptor.h"
|
||||
#endif // HAVE_LIBSSL
|
||||
#else
|
||||
|
||||
// provide empty implementation to compile sources without both libgcrypt and
|
||||
// openssl installed
|
||||
namespace aria2 {
|
||||
|
||||
class ARC4Encryptor {
|
||||
public:
|
||||
ARC4Encryptor() {}
|
||||
|
||||
~ARC4Encryptor() {}
|
||||
|
||||
void init(const unsigned char* key, size_t keyLength) {}
|
||||
|
||||
void encrypt(unsigned char* out, size_t outLength,
|
||||
const unsigned char* in, size_t inLength) {}
|
||||
};
|
||||
|
||||
} // namespace aria2
|
||||
|
||||
#endif
|
||||
|
||||
#endif // _D_ARC4_ENCRYPTOR_H_
|
||||
|
|
Loading…
Reference in New Issue