diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-17 16:24:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-17 16:24:20 +0000 |
commit | d330f1554d3a99304e1965e3acf63c10ec34ce20 (patch) | |
tree | cfc3c1f1bf8a5fe14d7414e9591ff1cc650aa7dc /src/backend/commands/user.c | |
parent | 8ffdcbf23b36b4f908724015e79aceff338e0539 (diff) | |
download | postgresql-d330f1554d3a99304e1965e3acf63c10ec34ce20.tar.gz postgresql-d330f1554d3a99304e1965e3acf63c10ec34ce20.zip |
Clean up libpq's pollution of application namespace by renaming the
exported routines of ip.c, md5.c, and fe-auth.c to begin with 'pg_'.
Also get rid of the vestigial fe_setauthsvc/fe_getauthsvc routines
altogether.
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r-- | src/backend/commands/user.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 706e85dea5b..3a2eb01af70 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.161 2005/10/15 02:49:16 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.162 2005/10/17 16:24:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -313,8 +313,8 @@ CreateRole(CreateRoleStmt *stmt) DirectFunctionCall1(textin, CStringGetDatum(password)); else { - if (!EncryptMD5(password, stmt->role, strlen(stmt->role), - encrypted_password)) + if (!pg_md5_encrypt(password, stmt->role, strlen(stmt->role), + encrypted_password)) elog(ERROR, "password encryption failed"); new_record[Anum_pg_authid_rolpassword - 1] = DirectFunctionCall1(textin, CStringGetDatum(encrypted_password)); @@ -642,8 +642,8 @@ AlterRole(AlterRoleStmt *stmt) DirectFunctionCall1(textin, CStringGetDatum(password)); else { - if (!EncryptMD5(password, stmt->role, strlen(stmt->role), - encrypted_password)) + if (!pg_md5_encrypt(password, stmt->role, strlen(stmt->role), + encrypted_password)) elog(ERROR, "password encryption failed"); new_record[Anum_pg_authid_rolpassword - 1] = DirectFunctionCall1(textin, CStringGetDatum(encrypted_password)); |