Check-in [86cee3d082]
Not logged in
Overview

SHA1 Hash:86cee3d082af0a19a48c1bc5412d672ba20791ef
Date: 2008-11-17 19:21:09
User: drh
Comment:Setting the "pgp-clearsign" command to "off" disables clearsigning.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/clearsign.c from [3868e827c1] to [3e61358e2b].

@@ -37,10 +37,13 @@
   char *zIn;
   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);
   zCmd = mprintf("%s %s %s", zBase, zIn, zOut);