[otrs-cvs] otrs/Kernel/System/Crypt SMIME.pm,1.55.2.11,1.55.2.12

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System/Crypt
In directory lancelot:/tmp/cvs-serv1802/Kernel/System/Crypt

Modified Files:
      Tag: rel-3_1
	SMIME.pm 
Log Message:
 - 2013-02-08 Fixed bug#9146 - Signed SMIME mails with altered content shows a not clear message.

Author: cr

Index: SMIME.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Crypt/SMIME.pm,v
retrieving revision 1.55.2.11
retrieving revision 1.55.2.12
diff -2 -u -d -r1.55.2.11 -r1.55.2.12
--- SMIME.pm	22 May 2012 04:24:01 -0000	1.55.2.11
+++ SMIME.pm	8 Feb 2013 23:00:57 -0000	1.55.2.12
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/Crypt/SMIME.pm - the main crypt module
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -445,4 +445,18 @@
         );
     }
+
+    # digest failure means that the content of the email does not match witht he signature
+    elsif ( $Message =~ m{digest failure}i ) {
+        %Return = (
+            SignatureFound => 1,
+            Successful     => 0,
+            Message =>
+                'OpenSSL: The signature does not match the message content : ' . $Message,
+            MessageLong =>
+                'OpenSSL: The signature does not match the message content : ' . $MessageLong,
+            SignerCertificate => $$SignerCertRef,
+            Content           => $$SignedContentRef,
+        );
+    }
     else {
         %Return = (
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.