From 6840cccd11490a9db4f98fbf9209ddf7662866a6 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 26 Dec 2005 14:58:06 +0000 Subject: Rename pg_make_encrypted_password to PQencryptPassword. --- doc/src/sgml/libpq.sgml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index df0ad527ae4..3fb6a4a85af 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -3574,14 +3574,14 @@ As always, there are some functions that just don't fit anywhere. -pg_make_encrypted_passwordpg_make_encrypted_password +PQencryptPasswordPQencryptPassword Prepares the encrypted form of a PostgreSQL password. -char *pg_make_encrypted_password(const char *passwd, const char *user); +char * PQencryptPassword(const char *passwd, const char *user); -pg_make_encrypted_password is intended to be used by client +This function is intended to be used by client applications that wish to send commands like ALTER USER joe PASSWORD 'pwd'. It is good practice not to send the original cleartext password in such a @@ -3589,7 +3589,7 @@ command, because it might be exposed in command logs, activity displays, and so on. Instead, use this function to convert the password to encrypted form before it is sent. The arguments are the cleartext password, and the SQL name of the user it is for. The return value is a malloc'd string, or NULL if -out-of-memory. The caller may assume the string doesn't contain any weird +out-of-memory. The caller may assume the string doesn't contain any special characters that would require escaping. Use PQfreemem to free the result when done with it. -- cgit v1.2.3