Update of /cvsroot/mahogany/M/src/modules/viewflt
In directory sc8-pr-cvs1:/tmp/cvs-serv5802/src/modules/viewflt

Modified Files:
        PGP.cpp 
Log Message:
decrypting PGP messages seems to work as well now


Index: PGP.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/viewflt/PGP.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -u -2 -r1.5 -r1.6
--- PGP.cpp     3 Dec 2002 02:52:09 -0000       1.5
+++ PGP.cpp     3 Dec 2002 13:31:33 -0000       1.6
@@ -277,7 +277,12 @@
          {
             // try to decrypt
-            if ( m_engine->Decrypt(in, out) != MCryptoEngine::OK )
+            MCryptoEngine::Status rc = m_engine->Decrypt(in, out);
+            if ( rc != MCryptoEngine::OK )
+            {
+               // if the user cancelled decryption, don't complain about it
+               if ( rc != MCryptoEngine::OPERATION_CANCELED_BY_USER )
             {
                wxLogError(_("Decrypting the PGP message failed."));
+               }
 
                // using unmodified text is not very helpful here, is it?



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to