mirror of https://github.com/aria2/aria2
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Renamed argument from 'errno' to 'err', since errno is confused with errno defined in errno.h. * src/LibgcryptARC4Decryptor.h * src/LibgcryptARC4Context.h * src/LibgcryptDHKeyExchange.h * src/LibgcryptARC4Encryptor.hpull/1/head
parent
d13c416a94
commit
5f56e52498
|
@ -1,3 +1,12 @@
|
||||||
|
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Renamed argument from 'errno' to 'err', since errno is confused with
|
||||||
|
errno defined in errno.h.
|
||||||
|
* src/LibgcryptARC4Decryptor.h
|
||||||
|
* src/LibgcryptARC4Context.h
|
||||||
|
* src/LibgcryptDHKeyExchange.h
|
||||||
|
* src/LibgcryptARC4Encryptor.h
|
||||||
|
|
||||||
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Rewritten choking algorithm.
|
Rewritten choking algorithm.
|
||||||
|
|
|
@ -45,10 +45,10 @@ class LibgcryptARC4Context {
|
||||||
private:
|
private:
|
||||||
gcry_cipher_hd_t _cipherCtx;
|
gcry_cipher_hd_t _cipherCtx;
|
||||||
|
|
||||||
void handleError(gcry_error_t errno) const
|
void handleError(gcry_error_t err) const
|
||||||
{
|
{
|
||||||
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Context class): %s",
|
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Context class): %s",
|
||||||
gcry_strerror(errno));
|
gcry_strerror(err));
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
LibgcryptARC4Context():_cipherCtx(0) {}
|
LibgcryptARC4Context():_cipherCtx(0) {}
|
||||||
|
|
|
@ -46,10 +46,10 @@ class ARC4Decryptor {
|
||||||
private:
|
private:
|
||||||
LibgcryptARC4Context _ctx;
|
LibgcryptARC4Context _ctx;
|
||||||
|
|
||||||
void handleError(gcry_error_t errno) const
|
void handleError(gcry_error_t err) const
|
||||||
{
|
{
|
||||||
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Decryptor class): %s",
|
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Decryptor class): %s",
|
||||||
gcry_strerror(errno));
|
gcry_strerror(err));
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
ARC4Decryptor() {}
|
ARC4Decryptor() {}
|
||||||
|
|
|
@ -46,10 +46,10 @@ class ARC4Encryptor {
|
||||||
private:
|
private:
|
||||||
LibgcryptARC4Context _ctx;
|
LibgcryptARC4Context _ctx;
|
||||||
|
|
||||||
void handleError(gcry_error_t errno) const
|
void handleError(gcry_error_t err) const
|
||||||
{
|
{
|
||||||
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Encryptor class): %s",
|
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Encryptor class): %s",
|
||||||
gcry_strerror(errno));
|
gcry_strerror(err));
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
ARC4Encryptor() {}
|
ARC4Encryptor() {}
|
||||||
|
|
|
@ -53,10 +53,10 @@ private:
|
||||||
|
|
||||||
gcry_mpi_t _publicKey;
|
gcry_mpi_t _publicKey;
|
||||||
|
|
||||||
void handleError(int errno) const
|
void handleError(gcry_error_t err) const
|
||||||
{
|
{
|
||||||
throw new DlAbortEx("Exception in libgcrypt routine(DHKeyExchange class): %s",
|
throw new DlAbortEx("Exception in libgcrypt routine(DHKeyExchange class): %s",
|
||||||
gcry_strerror(errno));
|
gcry_strerror(err));
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
DHKeyExchange():
|
DHKeyExchange():
|
||||||
|
|
Loading…
Reference in New Issue