Skip to content

Commit 21495a2

Browse files
committed
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.
1 parent f229170 commit 21495a2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

contrib/pgcrypto/pgp-pgsql.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ set_arg(PGP_Context *ctx, char *key, char *val,
241241
res = pgp_set_convert_crlf(ctx, atoi(val));
242242
else if (strcmp(key, "unicode-mode") == 0)
243243
res = pgp_set_unicode_mode(ctx, atoi(val));
244-
/* decrypt debug */
244+
/*
245+
* The remaining options are for debugging/testing and are therefore not
246+
* documented in the user-facing docs.
247+
*/
245248
else if (ex != NULL && strcmp(key, "debug") == 0)
246249
ex->debug = atoi(val);
247250
else if (ex != NULL && strcmp(key, "expect-cipher-algo") == 0)

doc/src/sgml/pgcrypto.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,11 +802,11 @@ Applies to: pgp_sym_encrypt, pgp_pub_encrypt
802802
</sect4>
803803

804804
<sect4>
805-
<title>enable-session-key</title>
805+
<title>sess-key</title>
806806

807807
<para>
808808
Use separate session key. Public-key encryption always uses a separate
809-
session key; this is for symmetric-key encryption, which by default
809+
session key; this option is for symmetric-key encryption, which by default
810810
uses the S2K key directly.
811811
</para>
812812
<literallayout>

0 commit comments

Comments
 (0)