Ver código fonte

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
Tatsuhiro Tsujikawa 17 anos atrás
pai
commit
5f56e52498

+ 9 - 0
ChangeLog

@@ -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>
 
 	Rewritten choking algorithm.

+ 2 - 2
src/LibgcryptARC4Context.h

@@ -45,10 +45,10 @@ class LibgcryptARC4Context {
 private:
   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",
-			gcry_strerror(errno));
+			gcry_strerror(err));
   }
 public:
   LibgcryptARC4Context():_cipherCtx(0) {}

+ 2 - 2
src/LibgcryptARC4Decryptor.h

@@ -46,10 +46,10 @@ class ARC4Decryptor {
 private:
   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",
-			gcry_strerror(errno));
+			gcry_strerror(err));
   }
 public:
   ARC4Decryptor() {}

+ 2 - 2
src/LibgcryptARC4Encryptor.h

@@ -46,10 +46,10 @@ class ARC4Encryptor {
 private:
   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",
-			gcry_strerror(errno));
+			gcry_strerror(err));
   }
 public:
   ARC4Encryptor() {}

+ 2 - 2
src/LibgcryptDHKeyExchange.h

@@ -53,10 +53,10 @@ private:
 
   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",
-			gcry_strerror(errno));
+			gcry_strerror(err));
   }
 public:
   DHKeyExchange():