diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-04 01:46:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-04 01:46:04 +0000 |
commit | 36f693ec69bd412817021ae530c729b414822ebc (patch) | |
tree | 903c0ad1bc7baed33d305faefe3b1a1bb48d85c3 /src/backend/libpq/crypt.c | |
parent | 5ab02fd12321d1d742f1b288fda73af87abdf37c (diff) |
Further work on elog cleanup: fix some bogosities in elog's logic about
when to send what to which, prevent recursion by introducing new COMMERROR
elog level for client-communication problems, get rid of direct writes
to stderr in backend/libpq files, prevent non-error elogs from going to
client during the authentication cycle.
Diffstat (limited to 'src/backend/libpq/crypt.c')
-rw-r--r-- | src/backend/libpq/crypt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/backend/libpq/crypt.c b/src/backend/libpq/crypt.c index ccde8020c15..6ab63ddffe0 100644 --- a/src/backend/libpq/crypt.c +++ b/src/backend/libpq/crypt.c @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.43 2002/03/02 21:39:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.44 2002/03/04 01:46:03 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -273,11 +273,8 @@ md5_crypt_verify(const Port *port, const char *user, const char *pgpass) /* If they encrypt their password, force MD5 */ if (isMD5(passwd) && port->auth_method != uaMD5) { - snprintf(PQerrormsg, PQERRORMSG_LENGTH, - "Password is stored MD5 encrypted. " - "'password' and 'crypt' auth methods cannot be used.\n"); - fputs(PQerrormsg, stderr); - pqdebug("%s", PQerrormsg); + elog(LOG, "Password is stored MD5 encrypted. " + "'password' and 'crypt' auth methods cannot be used."); return STATUS_ERROR; } |