diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-08-31 12:32:55 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-08-31 12:32:55 -0500 |
commit | 97c19ee120b9788612a6c2f57b775bd4251678c8 (patch) | |
tree | ef9cfcab12ba8c763eed337938a39cbfd19b1ca5 /tdewallet/backend | |
parent | 90187e74c9426e0951b55c005f78ddc93fe47e9c (diff) | |
download | tdelibs-97c19ee120b9788612a6c2f57b775bd4251678c8.tar.gz tdelibs-97c19ee120b9788612a6c2f57b775bd4251678c8.zip |
Rename KWallet to TDEWallet.
Diffstat (limited to 'tdewallet/backend')
-rw-r--r-- | tdewallet/backend/tdewalletbackend.cc | 30 | ||||
-rw-r--r-- | tdewallet/backend/tdewalletbackend.h | 4 | ||||
-rw-r--r-- | tdewallet/backend/tdewalletentry.h | 4 |
3 files changed, 19 insertions, 19 deletions
diff --git a/tdewallet/backend/tdewalletbackend.cc b/tdewallet/backend/tdewalletbackend.cc index e8bc45d2c..84160ba03 100644 --- a/tdewallet/backend/tdewalletbackend.cc +++ b/tdewallet/backend/tdewalletbackend.cc @@ -39,19 +39,19 @@ #include <assert.h> -#define KWALLET_VERSION_MAJOR 0 -#define KWALLET_VERSION_MINOR 0 +#define TDEWALLET_VERSION_MAJOR 0 +#define TDEWALLET_VERSION_MINOR 0 -#define KWALLET_CIPHER_BLOWFISH_CBC 0 -#define KWALLET_CIPHER_3DES_CBC 1 // unsupported +#define TDEWALLET_CIPHER_BLOWFISH_CBC 0 +#define TDEWALLET_CIPHER_3DES_CBC 1 // unsupported -#define KWALLET_HASH_SHA1 0 -#define KWALLET_HASH_MD5 1 // unsupported +#define TDEWALLET_HASH_SHA1 0 +#define TDEWALLET_HASH_MD5 1 // unsupported using namespace TDEWallet; -#define KWMAGIC "KWALLET\n\r\0\r\n" +#define KWMAGIC "TDEWALLET\n\r\0\r\n" #define KWMAGIC_LEN 12 static void initTDEWalletDir() @@ -317,19 +317,19 @@ int Backend::open(const TQByteArray& password) { db.readBlock(magicBuf, 4); // First byte is major version, second byte is minor version - if (magicBuf[0] != KWALLET_VERSION_MAJOR) { + if (magicBuf[0] != TDEWALLET_VERSION_MAJOR) { return -4; // unknown version } - if (magicBuf[1] != KWALLET_VERSION_MINOR) { + if (magicBuf[1] != TDEWALLET_VERSION_MINOR) { return -4; // unknown version } - if (magicBuf[2] != KWALLET_CIPHER_BLOWFISH_CBC) { + if (magicBuf[2] != TDEWALLET_CIPHER_BLOWFISH_CBC) { return -42; // unknown cipher } - if (magicBuf[3] != KWALLET_HASH_SHA1) { + if (magicBuf[3] != TDEWALLET_HASH_SHA1) { return -42; // unknown hash } @@ -501,10 +501,10 @@ int Backend::sync(const TQByteArray& password) { // Write the version number TQByteArray version(4); - version[0] = KWALLET_VERSION_MAJOR; - version[1] = KWALLET_VERSION_MINOR; - version[2] = KWALLET_CIPHER_BLOWFISH_CBC; - version[3] = KWALLET_HASH_SHA1; + version[0] = TDEWALLET_VERSION_MAJOR; + version[1] = TDEWALLET_VERSION_MINOR; + version[2] = TDEWALLET_CIPHER_BLOWFISH_CBC; + version[3] = TDEWALLET_HASH_SHA1; qf->writeBlock(version, 4); // Holds the hashes we write out diff --git a/tdewallet/backend/tdewalletbackend.h b/tdewallet/backend/tdewalletbackend.h index dbbddba79..71c1da120 100644 --- a/tdewallet/backend/tdewalletbackend.h +++ b/tdewallet/backend/tdewalletbackend.h @@ -19,8 +19,8 @@ */ -#ifndef _KWALLETBACKEND_H -#define _KWALLETBACKEND_H +#ifndef _TDEWALLETBACKEND_H +#define _TDEWALLETBACKEND_H #include <kmdcodec.h> diff --git a/tdewallet/backend/tdewalletentry.h b/tdewallet/backend/tdewalletentry.h index 641b52195..4261fc439 100644 --- a/tdewallet/backend/tdewalletentry.h +++ b/tdewallet/backend/tdewalletentry.h @@ -19,8 +19,8 @@ */ -#ifndef _KWALLETENTRY_H -#define _KWALLETENTRY_H +#ifndef _TDEWALLETENTRY_H +#define _TDEWALLETENTRY_H #include <tqstring.h> #include <tqdatastream.h> |