From: Tom Lane Date: Mon, 3 Nov 2014 16:11:34 +0000 (-0500) Subject: Docs: fix incorrect spelling of contrib/pgcrypto option. X-Git-Tag: REL9_2_10~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c2c1e8ba083a81f8700fa9aac3dfede454e448a;p=postgresql Docs: fix incorrect spelling of contrib/pgcrypto option. 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. --- diff --git a/contrib/pgcrypto/pgp-pgsql.c b/contrib/pgcrypto/pgp-pgsql.c index 371aedb847..9bfad5d5e4 100644 --- a/contrib/pgcrypto/pgp-pgsql.c +++ b/contrib/pgcrypto/pgp-pgsql.c @@ -258,7 +258,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) diff --git a/doc/src/sgml/pgcrypto.sgml b/doc/src/sgml/pgcrypto.sgml index c0d14521a4..e8c5038517 100644 --- a/doc/src/sgml/pgcrypto.sgml +++ b/doc/src/sgml/pgcrypto.sgml @@ -728,11 +728,11 @@ Applies to: pgp_sym_encrypt, pgp_pub_encrypt - enable-session-key + sess-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.