summaryrefslogtreecommitdiffstats
path: root/libkpgp/kpgp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkpgp/kpgp.cpp')
-rw-r--r--libkpgp/kpgp.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libkpgp/kpgp.cpp b/libkpgp/kpgp.cpp
index bd4193bf..e535abe3 100644
--- a/libkpgp/kpgp.cpp
+++ b/libkpgp/kpgp.cpp
@@ -73,7 +73,7 @@ Module::~Module()
writeAddressData();
if (kpgpObject == this) kpgpObject = kpgpod.setObject( Module::kpgpObject, 0, false );
- clear(TRUE);
+ clear(true);
delete config;
delete pgp;
}
@@ -268,7 +268,7 @@ Module::decrypt( Block& block )
// loop as long as the user enters a wrong passphrase and doesn't abort
// everything ready
if( prepare( true, &block ) != 1 )
- return FALSE;
+ return false;
// ok now try to decrypt the message.
retval = pgp->decrypt( block, passphrase );
// loop on bad passphrase
@@ -678,7 +678,7 @@ Module::signKey(const KeyID& keyId)
if (0 == pgp) assignPGPBase();
if( prepare( true ) != 1 )
- return FALSE;
+ return false;
if(pgp->signKey(keyId, passphrase) & ERROR)
{
errMsg = pgp->lastErrorMessage();
@@ -855,7 +855,7 @@ Module::changePassPhrase()
{
//FIXME...
KMessageBox::information(0,i18n("This feature is\nstill missing"));
- return FALSE;
+ return false;
}
void
@@ -1310,7 +1310,7 @@ Module::checkForPGP(void)
int index = 0;
int lastindex = -1;
- havePgp=FALSE;
+ havePgp=false;
path = getenv("PATH");
while((index = path.find(":",lastindex+1)) != -1)
@@ -1323,7 +1323,7 @@ Module::checkForPGP(void)
TQStrListIterator it(pSearchPaths);
- haveGpg=FALSE;
+ haveGpg=false;
// lets try gpg
for ( it.toFirst() ; it.current() ; ++it )
@@ -1333,14 +1333,14 @@ Module::checkForPGP(void)
if ( !access( path, X_OK ) )
{
kdDebug(5100) << "Kpgp: gpg found" << endl;
- havePgp=TRUE;
- haveGpg=TRUE;
+ havePgp=true;
+ haveGpg=true;
break;
}
}
// search for pgp5.0
- havePGP5=FALSE;
+ havePGP5=false;
for ( it.toFirst() ; it.current() ; ++it )
{
path = (*it);
@@ -1348,8 +1348,8 @@ Module::checkForPGP(void)
if ( !access( path, X_OK ) )
{
kdDebug(5100) << "Kpgp: pgp 5 found" << endl;
- havePgp=TRUE;
- havePGP5=TRUE;
+ havePgp=true;
+ havePGP5=true;
break;
}
}
@@ -1363,7 +1363,7 @@ Module::checkForPGP(void)
if ( !access( path, X_OK ) )
{
kdDebug(5100) << "Kpgp: pgp 2 or 6 found" << endl;
- havePgp=TRUE;
+ havePgp=true;
break;
}
}