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

Modified Files:
        PGP.cpp 
Log Message:
1. Change color if signature is from an untrusted key
2. Prepare for PGP/MIME signature verification: the two strings to give to GPG are 
ready in MessageView::ProcessPart

Index: PGP.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/viewflt/PGP.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -u -2 -r1.9 -r1.10
--- PGP.cpp     5 Dec 2002 23:14:59 -0000       1.9
+++ PGP.cpp     11 Dec 2002 14:07:08 -0000      1.10
@@ -111,4 +111,14 @@
 };
 
+class PGPInfoUntrustedSig : public ClickablePGPInfo
+{
+public:
+   PGPInfoUntrustedSig(MessageView *msgView)
+      : ClickablePGPInfo(msgView,
+                         _("PGP Signature from untrusted key"),
+                         _T("pgpsig_exp"),
+                         wxColour(255, 128, 0)) { }
+};
+
 class PGPInfoBadSig : public ClickablePGPInfo
 {
@@ -409,4 +419,8 @@
                case MCryptoEngine::SIGNATURE_EXPIRED_ERROR:
                   pgpInfo = new PGPInfoExpiredSig(m_msgView);
+                  break;
+
+               case MCryptoEngine::SIGNATURE_UNTRUSTED_WARNING:
+                  pgpInfo = new PGPInfoUntrustedSig(m_msgView);
                   break;
 



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to