Diff
Not logged in

Differences From:

File src/clearsign.c part of check-in [5cc845cfeb] - Rename the 'clearsign' setting to 'pgp-command'. Remove the 'safemerge' setting - safemerge is on by default and cannot be disabled. by drh on 2008-02-08 21:42:46. [view]

To:

File src/clearsign.c part of check-in [86cee3d082] - Setting the "pgp-clearsign" command to "off" disables clearsigning. by drh on 2008-11-17 19:21:09. Also file src/clearsign.c part of check-in [d14adf1032] - Merge src & doc leaves back. by kejoki on 2008-11-19 16:55:14. [view]

@@ -38,8 +38,11 @@
   char *zOut;
   char *zBase = db_get("pgp-command", "gpg --clearsign -o ");
   char *zCmd;
   int rc;
+  if( is_false(zBase) ){
+    return 0;
+  }
   zRand = db_text(0, "SELECT hex(randomblob(10))");
   zOut = mprintf("out-%s", zRand);
   zIn = mprintf("in-%z", zRand);
   blob_write_to_file(pIn, zOut);