Docs: fix incorrect spelling of contrib/pgcrypto option.
authorTom Lane
Mon, 3 Nov 2014 16:11:34 +0000 (11:11 -0500)
committerTom Lane
Mon, 3 Nov 2014 16:11:34 +0000 (11:11 -0500)
pgp_sym_encrypt's option is spelled "sess-key", not "enable-session-key".
Spotted by Jeff Janes.

In passing, improve a comment in pgp-pgsql.c to make it clearer that
the debugging options are intentionally undocumented.

contrib/pgcrypto/pgp-pgsql.c
doc/src/sgml/pgcrypto.sgml

index 20708731403de12e69215347ba5dbde0becbfcb0..1a0e710301c010db647c69b4c08757b6d5f35785 100644 (file)
@@ -259,7 +259,10 @@ set_arg(PGP_Context *ctx, char *key, char *val,
        res = pgp_set_convert_crlf(ctx, atoi(val));
    else if (strcmp(key, "unicode-mode") == 0)
        res = pgp_set_unicode_mode(ctx, atoi(val));
-   /* decrypt debug */
+   /*
+    * The remaining options are for debugging/testing and are therefore not
+    * documented in the user-facing docs.
+    */
    else if (ex != NULL && strcmp(key, "debug") == 0)
        ex->debug = atoi(val);
    else if (ex != NULL && strcmp(key, "expect-cipher-algo") == 0)
index f0928f80fe2c8c9dcf3fc9ca5bae969afb18a5bb..d409446c3764444a1b7df72d09445a4bd4625256 100644 (file)
@@ -828,11 +828,11 @@ Applies to: pgp_sym_encrypt, pgp_pub_encrypt
   
 
   
-   <span class="marked">enable-session</span>-key
+   <span class="marked">sess</span>-key
 
    
     Use separate session key.  Public-key encryption always uses a separate
-    session key; this is for symmetric-key encryption, which by default
+    session key; this option is for symmetric-key encryption, which by default
     uses the S2K key directly.