[git] GpgOL - branch, outlook14, updated. gpgol-1.1.3-34-g7963564

by Andre Heinecke cvs at cvs.gnupg.org
Fri Jul 12 20:24:33 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG extension for MS Outlook".

The branch, outlook14 has been updated
       via  7963564cb41b4b3c8aede32bdc7a88e76bf326f3 (commit)
      from  98acc5a6122cb1c664a4c7c0d91472911fcb96f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7963564cb41b4b3c8aede32bdc7a88e76bf326f3
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Fri Jul 12 17:59:00 2013 +0000

    Add temporary Hack for strange encrypted data
    
        When encrypting with SMIME there is some garbage added
        to the end of the stream. Until we figure out where that
        comes from. Cut it of.
    
        * src/ribbon-callbacks.cpp (encryptInspector): Cut of
        SMIME data after the last linebreak.

diff --git a/src/ribbon-callbacks.cpp b/src/ribbon-callbacks.cpp
index e66adf2..2cb14d7 100644
--- a/src/ribbon-callbacks.cpp
+++ b/src/ribbon-callbacks.cpp
@@ -319,6 +319,14 @@ encryptInspector (LPDISPATCH ctrl, int flags)
         /* Now replace the selection with the encrypted text */
         if (protocol == PROTOCOL_SMIME)
           {
+            char* lastlinebreak = strrchr (buffer, '\n');
+            if (lastlinebreak && (lastlinebreak - buffer) > 1)
+              {
+                /*XXX there is some strange data in the buffer
+                  after the last linebreak investigate this and
+                  fix it! */
+                lastlinebreak[1] = '\0';
+              }
             unsigned int enclosedSize = strlen (buffer) + 34 + 31 + 1;
             char enclosedData[enclosedSize];
             snprintf (enclosedData, sizeof enclosedData,

-----------------------------------------------------------------------

Summary of changes:
 src/ribbon-callbacks.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GnuPG extension for MS Outlook
http://git.gnupg.org




More information about the Gnupg-commits mailing list