2009-02-25 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Wed, 25 Feb 2009 17:03:26 +0000 (17:03 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Wed, 25 Feb 2009 17:03:26 +0000 (17:03 +0000)
* Makefile.am (EXTRA_DIST): Add patches/gpgex/01-no-checksums.patch.
* patches/gpgex/01-no-checksums.patch: New file.

ChangeLog
Makefile.am
patches/gpgex/01-no-checksums.patch [new file with mode: 0755]

index a69a1cf..1fc0f8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-02-25  Marcus Brinkmann  <marcus@g10code.de>
 
+       * Makefile.am (EXTRA_DIST): Add patches/gpgex/01-no-checksums.patch.
+       * patches/gpgex/01-no-checksums.patch: New file.
+
        * src/installer-finish.nsi (Section "Uninstall"): Also remove
        compendium html link from desktop.
 
index aaae139..89e261f 100644 (file)
@@ -39,6 +39,7 @@ EXTRA_DIST = autogen.sh README.SVN \
        patches/libetpan-0.54/01-config.patch \
        patches/libetpan-0.54/02-index.patch \
        patches/winpt/01-gpg-path.patch \
+       patches/gpgex/01-no-checksums.patch \
        patches/gnupg2/01-version.patch.in \
        patches/gnupg2/02-default-3des.patch \
        patches/gnupg2-2.0.9/01-close-all-handle.patch \
diff --git a/patches/gpgex/01-no-checksums.patch b/patches/gpgex/01-no-checksums.patch
new file mode 100755 (executable)
index 0000000..ceab064
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh
+patch -p0 -f $* < $0
+exit $?
+
+Disable checksum commands.
+
+
+diff -rup src/gpgex.cc src/gpgex.cc
+--- src/gpgex.cc       2008-09-09 11:02:17.000000000 +0200
++++ src/gpgex.cc       2009-02-25 14:24:44.000000000 +0100
+@@ -356,12 +356,14 @@ gpgex_t::QueryContextMenu (HMENU hMenu, 
+   if (res)
+     res = InsertMenu (popup, idx++, MF_BYPOSITION | MF_STRING,
+                     idCmdFirst + ID_CMD_IMPORT, ID_CMD_STR_IMPORT);
++#if 0
+   if (res)
+     res = InsertMenu (popup, idx++, MF_BYPOSITION | MF_STRING,
+                     idCmdFirst + ID_CMD_CREATE_CHECKSUMS, ID_CMD_STR_CREATE_CHECKSUMS);
+   if (res)
+     res = InsertMenu (popup, idx++, MF_BYPOSITION | MF_STRING,
+                     idCmdFirst + ID_CMD_VERIFY_CHECKSUMS, ID_CMD_STR_VERIFY_CHECKSUMS);
++#endif
+   if (res)
+     res = InsertMenu (popup, idx++, MF_BYPOSITION | MF_SEPARATOR, 0, NULL);
+   if (res)
+