author | zautrix <zautrix> | 2006-02-24 19:41:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2006-02-24 19:41:06 (UTC) |
commit | 4e2553b95b2787ed7917073f6b628819b1f017c3 (patch) (unidiff) | |
tree | da5cb746bf3373cb2a368afda082999e6c22751f /pwmanager | |
parent | 08605356c77351d64e14e0fdd69bdb769f933909 (diff) | |
download | kdepimpi-4e2553b95b2787ed7917073f6b628819b1f017c3.zip kdepimpi-4e2553b95b2787ed7917073f6b628819b1f017c3.tar.gz kdepimpi-4e2553b95b2787ed7917073f6b628819b1f017c3.tar.bz2 |
gcc4 fixes
-rw-r--r-- | pwmanager/libcrypt/cipher/serpent.c | 4 | ||||
-rw-r--r-- | pwmanager/pwmanager/binentrygen.cpp | 5 | ||||
-rw-r--r-- | pwmanager/pwmanager/binentrygen.h | 2 | ||||
-rw-r--r-- | pwmanager/pwmanager/blowfish.cpp | 2 | ||||
-rw-r--r-- | pwmanager/pwmanager/blowfish.h | 4 | ||||
-rw-r--r-- | pwmanager/pwmanager/genpasswd.cpp | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/libgcryptif.h | 4 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmexception.h | 3 | ||||
-rw-r--r-- | pwmanager/pwmanager/randomizer.h | 1 |
9 files changed, 17 insertions, 9 deletions
diff --git a/pwmanager/libcrypt/cipher/serpent.c b/pwmanager/libcrypt/cipher/serpent.c index d606d9f..fb5df20 100644 --- a/pwmanager/libcrypt/cipher/serpent.c +++ b/pwmanager/libcrypt/cipher/serpent.c | |||
@@ -673,7 +673,7 @@ serpent_setkey_internal (serpent_context_t *context, | |||
673 | serpent_subkeys_generate (key_prepared, context->keys); | 673 | serpent_subkeys_generate (key_prepared, context->keys); |
674 | _gcry_burn_stack (272 * sizeof (u32_t)); | 674 | _gcry_burn_stack (272 * sizeof (u32_t)); |
675 | } | 675 | } |
676 | 676 | static const char *serpent_test (void); | |
677 | /* Initialize CTX with the key KEY of KEY_LENGTH bytes. */ | 677 | /* Initialize CTX with the key KEY of KEY_LENGTH bytes. */ |
678 | static gcry_err_code_t | 678 | static gcry_err_code_t |
679 | serpent_setkey (void *ctx, | 679 | serpent_setkey (void *ctx, |
@@ -687,7 +687,7 @@ serpent_setkey (void *ctx, | |||
687 | if (! serpent_init_done) | 687 | if (! serpent_init_done) |
688 | { | 688 | { |
689 | /* Execute a self-test the first time, Serpent is used. */ | 689 | /* Execute a self-test the first time, Serpent is used. */ |
690 | static const char *serpent_test (void); | 690 | |
691 | 691 | ||
692 | serpent_test_ret = serpent_test (); | 692 | serpent_test_ret = serpent_test (); |
693 | if (serpent_test_ret) | 693 | if (serpent_test_ret) |
diff --git a/pwmanager/pwmanager/binentrygen.cpp b/pwmanager/pwmanager/binentrygen.cpp index 7d5ae45..f156a5e 100644 --- a/pwmanager/pwmanager/binentrygen.cpp +++ b/pwmanager/pwmanager/binentrygen.cpp | |||
@@ -17,11 +17,11 @@ | |||
17 | * $Id$ | 17 | * $Id$ |
18 | **************************************************************************/ | 18 | **************************************************************************/ |
19 | 19 | ||
20 | |||
21 | #include "binentrygen.h" | 20 | #include "binentrygen.h" |
22 | #include "base64.h" | 21 | #include "base64.h" |
23 | #include "pwmexception.h" | ||
24 | 22 | ||
23 | #include "pwmexception.h" | ||
24 | #include "globalstuff.h" | ||
25 | 25 | ||
26 | void BinEntryGen::encode(const QByteArray &data, | 26 | void BinEntryGen::encode(const QByteArray &data, |
27 | PwMDataItem *ret, | 27 | PwMDataItem *ret, |
@@ -69,3 +69,4 @@ BinEntryGen::DataType BinEntryGen::binType(const PwMDataItem &data) | |||
69 | int type = strtol(data.name.c_str(), 0, 10); | 69 | int type = strtol(data.name.c_str(), 0, 10); |
70 | return (static_cast<DataType>(type)); | 70 | return (static_cast<DataType>(type)); |
71 | } | 71 | } |
72 | |||
diff --git a/pwmanager/pwmanager/binentrygen.h b/pwmanager/pwmanager/binentrygen.h index a58cd42..49288aa 100644 --- a/pwmanager/pwmanager/binentrygen.h +++ b/pwmanager/pwmanager/binentrygen.h | |||
@@ -20,10 +20,10 @@ | |||
20 | #ifndef __BINENTRYGEN_H | 20 | #ifndef __BINENTRYGEN_H |
21 | #define __BINENTRYGEN_H | 21 | #define __BINENTRYGEN_H |
22 | 22 | ||
23 | #include "pwmdoc.h" | ||
24 | 23 | ||
25 | #include <qcstring.h> | 24 | #include <qcstring.h> |
26 | 25 | ||
26 | #include "pwmdoc.h" | ||
27 | 27 | ||
28 | /** Binary entry generator. | 28 | /** Binary entry generator. |
29 | * This generator generates a normal struct PwMDataItem | 29 | * This generator generates a normal struct PwMDataItem |
diff --git a/pwmanager/pwmanager/blowfish.cpp b/pwmanager/pwmanager/blowfish.cpp index 2ca58ce..ee29756 100644 --- a/pwmanager/pwmanager/blowfish.cpp +++ b/pwmanager/pwmanager/blowfish.cpp | |||
@@ -43,9 +43,9 @@ | |||
43 | #include <string.h> | 43 | #include <string.h> |
44 | #include <stdlib.h> | 44 | #include <stdlib.h> |
45 | 45 | ||
46 | #include "blowfish.h" | ||
47 | #include "globalstuff.h" | 46 | #include "globalstuff.h" |
48 | 47 | ||
48 | #include "blowfish.h" | ||
49 | 49 | ||
50 | /* precomputed S boxes */ | 50 | /* precomputed S boxes */ |
51 | static const uint32_t ks0[256] = { | 51 | static const uint32_t ks0[256] = { |
diff --git a/pwmanager/pwmanager/blowfish.h b/pwmanager/pwmanager/blowfish.h index 5129eab..862cccb 100644 --- a/pwmanager/pwmanager/blowfish.h +++ b/pwmanager/pwmanager/blowfish.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #ifndef BLOWFISH_H | 23 | #ifndef BLOWFISH_H |
24 | #define BLOWFISH_H | 24 | #define BLOWFISH_H |
25 | 25 | ||
26 | #include "pwmexception.h" | 26 | //#include "pwmexception.h" |
27 | #ifndef _WIN32_ | 27 | #ifndef _WIN32_ |
28 | #include <stdint.h> | 28 | #include <stdint.h> |
29 | #else | 29 | #else |
@@ -44,6 +44,8 @@ typedef uint8_t byte; | |||
44 | #define uint32_t Q_UINT32 | 44 | #define uint32_t Q_UINT32 |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | //#include "pwmexception.h" | ||
48 | |||
47 | /** blowfish encryption algorithm. | 49 | /** blowfish encryption algorithm. |
48 | * Derived from libgcrypt-1.1.12 | 50 | * Derived from libgcrypt-1.1.12 |
49 | */ | 51 | */ |
diff --git a/pwmanager/pwmanager/genpasswd.cpp b/pwmanager/pwmanager/genpasswd.cpp index b0cceff..41078b3 100644 --- a/pwmanager/pwmanager/genpasswd.cpp +++ b/pwmanager/pwmanager/genpasswd.cpp | |||
@@ -20,6 +20,7 @@ | |||
20 | #include "genpasswd.h" | 20 | #include "genpasswd.h" |
21 | #include "pwmexception.h" | 21 | #include "pwmexception.h" |
22 | #include "randomizer.h" | 22 | #include "randomizer.h" |
23 | #include "globalstuff.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | /* how often can a char of the same charset be reused in order */ | 26 | /* how often can a char of the same charset be reused in order */ |
diff --git a/pwmanager/pwmanager/libgcryptif.h b/pwmanager/pwmanager/libgcryptif.h index 9a987a2..a08d678 100644 --- a/pwmanager/pwmanager/libgcryptif.h +++ b/pwmanager/pwmanager/libgcryptif.h | |||
@@ -24,7 +24,6 @@ | |||
24 | #ifndef __LIBGCRYPTIF_H | 24 | #ifndef __LIBGCRYPTIF_H |
25 | #define __LIBGCRYPTIF_H | 25 | #define __LIBGCRYPTIF_H |
26 | 26 | ||
27 | #include "pwmexception.h" | ||
28 | 27 | ||
29 | //#undef CONFIG_PWMANAGER_GCRY // for debugging only. | 28 | //#undef CONFIG_PWMANAGER_GCRY // for debugging only. |
30 | #ifdef CONFIG_PWMANAGER_GCRY | 29 | #ifdef CONFIG_PWMANAGER_GCRY |
@@ -40,6 +39,9 @@ | |||
40 | #endif | 39 | #endif |
41 | #define STRING2KEY_SALTLEN8 | 40 | #define STRING2KEY_SALTLEN8 |
42 | 41 | ||
42 | #include "pwmexception.h" | ||
43 | |||
44 | |||
43 | /** interface class for the libgcrypt cipher and hash algorithms | 45 | /** interface class for the libgcrypt cipher and hash algorithms |
44 | * NOTE: Always allocate 1024 extra bytes for the inBuf (for padding) | 46 | * NOTE: Always allocate 1024 extra bytes for the inBuf (for padding) |
45 | */ | 47 | */ |
diff --git a/pwmanager/pwmanager/pwmexception.h b/pwmanager/pwmanager/pwmexception.h index 301ebd7..7f5a3a6 100644 --- a/pwmanager/pwmanager/pwmexception.h +++ b/pwmanager/pwmanager/pwmexception.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #ifndef __PWMEXCEPTION_H | 20 | #ifndef __PWMEXCEPTION_H |
21 | #define __PWMEXCEPTION_H | 21 | #define __PWMEXCEPTION_H |
22 | 22 | ||
23 | #include "globalstuff.h" | 23 | //#include "globalstuff.h" |
24 | 24 | ||
25 | #include <iostream> | 25 | #include <iostream> |
26 | #include <string> | 26 | #include <string> |
@@ -214,4 +214,5 @@ void __printError(const string &msg); | |||
214 | #define printWarn(x)__printWarn(x) | 214 | #define printWarn(x)__printWarn(x) |
215 | #define printError(x)__printError(x) | 215 | #define printError(x)__printError(x) |
216 | 216 | ||
217 | #include "globalstuff.h" | ||
217 | #endif // __PWMEXCEPTION_H | 218 | #endif // __PWMEXCEPTION_H |
diff --git a/pwmanager/pwmanager/randomizer.h b/pwmanager/pwmanager/randomizer.h index f2a6015..44cc28e 100644 --- a/pwmanager/pwmanager/randomizer.h +++ b/pwmanager/pwmanager/randomizer.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #define __RANDOMIZER_H | 21 | #define __RANDOMIZER_H |
22 | 22 | ||
23 | #include "pwmexception.h" | 23 | #include "pwmexception.h" |
24 | #include "globalstuff.h" | ||
24 | 25 | ||
25 | #ifndef PWM_EMBEDDED | 26 | #ifndef PWM_EMBEDDED |
26 | #include <qmutex.h> | 27 | #include <qmutex.h> |